-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 1.35 KB
/
Makefile
File metadata and controls
50 lines (36 loc) · 1.35 KB
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
50
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: smia <smia@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/12/30 05:01:40 by smia #+# #+# #
# Updated: 2022/12/30 06:32:39 by smia ### ########.fr #
# #
# **************************************************************************** #
NAME = Containers
SRCS = main.cpp\
CC = c++
FLAGS = -Wall -Wextra -Werror -std=c++98
RM = rm -f
LIB = AvlTree.hpp \
is_integral.hpp \
pair.hpp \
lexicographical_compare.hpp \
iterator.hpp \
vector.hpp \
stack.hpp \
map.hpp
OBJT = $(SRCS:.cpp=.o)
$(NAME): $(OBJT) $(LIB)
$(CC) $(OBJT) $(FLAGS) -o $(NAME)
%.o : %.cpp $(LIB)
$(CC) $(FLAGS) -o $@ -c $<
all : $(NAME)
clean:
$(RM) $(OBJT)
fclean:
$(RM) $(OBJT) $(NAME)
re: fclean all
.PHONY: all fclean clean re