-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (35 loc) · 1.37 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: knarwhal <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/10/12 18:00:02 by knarwhal #+# #+# #
# Updated: 2019/10/12 18:53:33 by knarwhal ### ########.fr #
# #
# **************************************************************************** #
# program name
NAME = fillit
# compilation flags
FLAGS = -Wall -Wextra -Werror
# source files
SRCS = $(wildcard proj_fillit/*.c)
# object files
OBJS = $(wildcard proj_fillit/*.o)
# headers
HDRS = $(wildcard proj_fillit/*.h)
# libft
LIB = ./libft/libft.a
all: $(NAME)
$(NAME): $(SRCS) $(OBJS) $(HDRS)
make -C libft/ all
gcc $(FLAGS) -o $(NAME) $(SRCS) $(OBJS) $(LIB)
clean:
make -C libft/ clean
rm -f $(OBJS)
fclean: clean
make -C libft/ fclean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re