-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (30 loc) · 1.26 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: fcil <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/08/03 11:41:37 by fcil #+# #+# #
# Updated: 2022/11/27 14:23:33 by fcil ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_container
CC = c++ -g -std=c++98
FLAGS = -Wall -Wextra -Werror
SRC_DIR = ./src
SRC := $(shell find $(SRC_DIR) -type f -name "*.cpp")
OBJ = $(SRC:.cpp=.o)
$(NAME): $(OBJ)
$(CC) $(FLAGS) -o $(NAME) $(OBJ)
%.o : %.cpp
$(CC) $(FLAGS) -I./include/ -o $@ -c $<
all: $(NAME)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re:
make fclean
make all
.PHONY: all clean fclean re