-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·58 lines (42 loc) · 1.55 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
50
51
52
53
54
55
56
57
58
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lpan <lpan@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/05/10 18:26:42 by lpan #+# #+# #
# Updated: 2019/05/11 00:30:55 by lpan ### ########.fr #
# #
# **************************************************************************** #
NAME = lpan.filler
CC = gcc
CFLAGS = -Wall -Wextra -Werror #-g3 #-fsanitize=address
SRC = main.c\
parse_info_piece.c\
player.c\
place.c\
checkplace.c\
utilities.c\
free_var_arr.c
OBJ = $(patsubst %.c, %.o, $(SRC))
HEADER = ./libft/libft.h \
./includes/filler.h
INCLUDE_PATH = -I libft -I includes
$(NAME) : ./libft/libft.a $(OBJ)
$(CC) $(CFLAGS) -c $(SRC)
$(CC) $(CFLAGS) $(OBJ) -o $(NAME) -L ./libft -lft
./libft/libft.a :
make -C libft
all : $(NAME)
%.o: %.c $(HEADER)
$(CC) $(CFLAGS) -c $< $(INCLUDE_PATH)
clean :
rm -f $(OBJ)
make -C ./libft/ clean
fclean : clean
make -C ./libft/ fclean
rm -f $(NAME)
re : all
make re -C ./libft/
.PHONY : all clean fclean re