-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (37 loc) · 1.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mgo <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/07/07 09:23:07 by mgo #+# #+# #
# Updated: 2022/07/26 18:20:23 by mgo ### ########.fr #
# #
# **************************************************************************** #
NAME = my_tester
CXX = c++
CXXFLAGS = -Wall -Wextra -Werror -std=c++98
#CXXFLAGS += -fsanitize=address -g
rm = rm -f
INC = -I./include -I./test
SRC = main.cpp \
./test/get_time.cpp \
./test/test_vector.cpp \
./test/test_stack.cpp \
./test/test_map.cpp \
./test/test_set.cpp
OBJ = $(SRC:.cpp=.o)
%.o : %.cpp
$(CXX) $(CXXFLAGS) $(INC) -c $< -o $@
$(NAME) : $(OBJ)
$(CXX) $(CXXFLAGS) $^ -o $@
all : $(NAME)
clean :
$(RM) $(OBJ)
fclean : clean
$(RM) $(NAME)
re :
make fclean
make all
.PHONY : all clean fclean re