From a92013c92bfcd50b0e2561280c9eaa604843ade0 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 17 Nov 2020 16:51:56 +0100 Subject: Fixing missleading indentation error from clang++ on Linux --- cpp00/ex00/Makefile | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'cpp00/ex00') diff --git a/cpp00/ex00/Makefile b/cpp00/ex00/Makefile index 2bfc080..668507b 100644 --- a/cpp00/ex00/Makefile +++ b/cpp00/ex00/Makefile @@ -6,32 +6,27 @@ # By: cacharle +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/11/09 09:16:44 by cacharle #+# #+# # -# Updated: 2020/11/09 09:16:45 by cacharle ### ########.fr # +# Updated: 2020/11/17 16:41:44 by charles ### ########.fr # # # # ############################################################################ # RM = rm -f -CC = clang++ -CCFLAGS = -Wall -Wextra -Werror +CXX = clang++ +CXXFLAGS = -Wall -Wextra -Werror NAME = megaphone SRC = megaphone.cpp -OBJ = $(SRC:.cpp=.o) all: $(NAME) -$(NAME): $(OBJ) - $(CC) $(CCFLAGS) -o $@ $^ - -%.o: %.c - $(CC) $(CCFLAGS) -o $@ $< +$(NAME): $(SRC) + $(CXX) $(CXXFLAGS) -o $@ $^ clean: - $(RM) $(OBJ) + $(RM) $(NAME) fclean: clean - $(RM) $(NAME) re: fclean all -- cgit