aboutsummaryrefslogtreecommitdiff
path: root/cpp06/ex02/Makefile
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-18 10:30:31 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-18 10:30:31 +0100
commit6169d697a5be59426d034b878bffc848de49491d (patch)
treeea339e67a4814a04ada4c5c0a1c3cdfc2bc7b6fa /cpp06/ex02/Makefile
parent452e6bfa7bb4bca75dc4659bf9d707101b411977 (diff)
downloadpiscine_cpp-6169d697a5be59426d034b878bffc848de49491d.tar.gz
piscine_cpp-6169d697a5be59426d034b878bffc848de49491d.tar.bz2
piscine_cpp-6169d697a5be59426d034b878bffc848de49491d.zip
Added cpp06/ex01 and ex02
Diffstat (limited to 'cpp06/ex02/Makefile')
-rw-r--r--cpp06/ex02/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp06/ex02/Makefile b/cpp06/ex02/Makefile
index b68a586..8a8ffca 100644
--- a/cpp06/ex02/Makefile
+++ b/cpp06/ex02/Makefile
@@ -6,7 +6,7 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/04/15 09:59:30 by charles #+# #+# #
-# Updated: 2020/04/15 10:00:05 by charles ### ########.fr #
+# Updated: 2020/11/18 09:22:44 by charles ### ########.fr #
# #
# **************************************************************************** #
@@ -15,21 +15,21 @@ NAME = identify_real_type
CXX = clang++
CXXFLAGS = -std=c++98 -Wall -Wextra -Werror
-SRC = main.cpp
+SRC = main.cpp A.cpp B.cpp C.cpp Base.cpp
OBJ = $(SRC:.cpp=.o)
all: $(NAME)
$(NAME): $(OBJ)
- $(CXX) -o $@ $<
+ $(CXX) -o $@ $^
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $^
clean:
- rm -rf $(OBJ)
+ rm -f $(OBJ)
fclean: clean
- rm -rf $(NAME)
+ rm -f $(NAME)
re: fclean all