diff options
Diffstat (limited to 'cpp01/ex07/Makefile')
| -rw-r--r-- | cpp01/ex07/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/cpp01/ex07/Makefile b/cpp01/ex07/Makefile new file mode 100644 index 0000000..7a649fc --- /dev/null +++ b/cpp01/ex07/Makefile @@ -0,0 +1,35 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle <marvin@42.fr> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2020/02/02 17:05:31 by cacharle #+# #+# # +# Updated: 2020/02/02 17:58:08 by cacharle ### ########.fr # +# # +# **************************************************************************** # + +CXX = clang++ +CXXFLAGS= -Wall -Wextra #-Werror + +SRC = $(shell find . -type f -name "*.cpp") +OBJ = $(SRC:.cpp=.o) + +NAME = replace + +all: $(NAME) + +$(NAME): $(OBJ) + $(CXX) -o $@ $^ + +%.o: %.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +clean: + $(RM) $(OBJ) + +fclean: clean + $(RM) $(NAME) + +re: fclean all |
