-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (36 loc) · 1.47 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: sdunckel <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/12/06 18:09:59 by sdunckel #+# #+# #
# Updated: 2021/04/12 14:02:17 by sdunckel ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_containers_test
CC = clang++
CFLAGS = -g -fsanitize=address -Wall -Wextra -Werror -std=c++98
LFLAGS = -I includes/ -I tests/
RM = rm -f
OBJS = $(SRCS:.cpp=.o)
SRCS = tests/vector.cpp \
tests/map.cpp \
tests/list.cpp \
tests/stack.cpp \
tests/queue.cpp \
main.cpp
all: $(NAME)
$(NAME): $(OBJS)
${CC} ${CFLAGS} $(OBJS) -o $(NAME)
print: $(OBJS)
${CC} ${CFLAGS} $(OBJS) -o $(NAME)
%.o: %.cpp
${CC} $(CFLAGS) $(LFLAGS) -o $@ -c $<
clean:
${RM} $(OBJS)
fclean: clean
${RM} $(NAME)
re: fclean all
.PHONY: all fclean clean re