aboutsummaryrefslogtreecommitdiff
path: root/cpp00/ex01/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-13 09:18:30 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-13 09:18:30 +0200
commit629d52b1262879a346e9ca17567a8f483c60ba0a (patch)
treeb6d32f764980b08cea6327e9b8a472d88331aae9 /cpp00/ex01/Makefile
parent8fc4395b9a61416e9bfee500e064dce7be9c8d7c (diff)
downloadpiscine_cpp-629d52b1262879a346e9ca17567a8f483c60ba0a.tar.gz
piscine_cpp-629d52b1262879a346e9ca17567a8f483c60ba0a.tar.bz2
piscine_cpp-629d52b1262879a346e9ca17567a8f483c60ba0a.zip
Fixed cpp00/ex01
Diffstat (limited to 'cpp00/ex01/Makefile')
-rw-r--r--cpp00/ex01/Makefile22
1 files changed, 17 insertions, 5 deletions
diff --git a/cpp00/ex01/Makefile b/cpp00/ex01/Makefile
index a69e4f5..a21d79f 100644
--- a/cpp00/ex01/Makefile
+++ b/cpp00/ex01/Makefile
@@ -1,20 +1,32 @@
+# **************************************************************************** #
+# #
+# ::: :::::::: #
+# Makefile :+: :+: :+: #
+# +:+ +:+ +:+ #
+# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
+# +#+#+#+#+#+ +#+ #
+# Created: 2020/04/13 08:32:50 by charles #+# #+# #
+# Updated: 2020/04/13 08:42:09 by charles ### ########.fr #
+# #
+# **************************************************************************** #
+
RM = rm -f
-CC = clang++
-CCFLAGS = -Wall -Wextra -Werror
+CXX = clang++
+CXXFLAGS = -Wall -Wextra -Werror
NAME = crapyphonebook
-SRC = main.cpp PhoneBook.cpp Contact.cpp
+SRC = main.cpp PhoneBook.cpp Contact.cpp utils.cpp
OBJ = $(SRC:.cpp=.o)
all: $(NAME)
$(NAME): $(OBJ)
- $(CC) $(CCFLAGS) -o $@ $^
+ $(CXX) $(CXXFLAGS) -o $@ $^
%.o: %.c
- $(CC) $(CCFLAGS) -o $@ $<
+ $(CXX) $(CXXFLAGS) -o $@ $<
clean:
$(RM) $(OBJ)