-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (40 loc) · 1.38 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: qdegraev <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/12/07 08:41:32 by qdegraev #+# #+# #
# Updated: 2015/12/17 17:11:37 by afillion ### ########.fr #
# #
# **************************************************************************** #
LIBPATH = libft
LIB = $(LIBPATH)/libft.a
NAME= fillit
CC = gcc
CFLAGS = -Wall -Wextra -Werror -I libft
LDFLAGS = -L libft -lft
SRC = \
0main.c \
1record_check_file.c \
2make_pieces.c \
ft_lstlen.c \
ft_small_square.c \
ft_taballoc.c \
3list.c \
ft_fill_board.c \
ft_free.c
OBJ = $(SRC:.c=.o)
all: $(LIB) $(NAME)
$(NAME): $(OBJ)
$(CC) $(LDFLAGS) -o $@ $^
$(LIB):
make -C $(LIBPATH)
clean:
rm -f $(OBJ)
make clean -C $(LIBPATH)
fclean: clean
rm -f $(NAME)
make fclean -C $(LIBPATH)
re: fclean all