aboutsummaryrefslogtreecommitdiff
path: root/cpp00/ex01/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cpp00/ex01/Makefile')
-rw-r--r--cpp00/ex01/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/cpp00/ex01/Makefile b/cpp00/ex01/Makefile
new file mode 100644
index 0000000..a69e4f5
--- /dev/null
+++ b/cpp00/ex01/Makefile
@@ -0,0 +1,25 @@
+RM = rm -f
+
+CC = clang++
+CCFLAGS = -Wall -Wextra -Werror
+
+NAME = crapyphonebook
+SRC = main.cpp PhoneBook.cpp Contact.cpp
+OBJ = $(SRC:.cpp=.o)
+
+
+all: $(NAME)
+
+$(NAME): $(OBJ)
+ $(CC) $(CCFLAGS) -o $@ $^
+
+%.o: %.c
+ $(CC) $(CCFLAGS) -o $@ $<
+
+clean:
+ $(RM) $(OBJ)
+
+fclean: clean
+ $(RM) $(NAME)
+
+re: fclean all