-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
38 lines (35 loc) · 1.36 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
# **************************************************************************** #
# #
# ::: :::::::: #
# makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dspyrydo <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/07/22 17:57:29 by dspyrydo #+# #+# #
# Updated: 2017/07/22 17:57:33 by dspyrydo ### ########.fr #
# #
# **************************************************************************** #
NAME = filler
CC = gcc
CFLAGS =
LIBFT = ./libft/libft.a
OBJECTS = ./filler.o \
./findplace.o \
./findplace2.o \
./place_t.o \
./tools.o \
.PHONY: libft
all: $(NAME)
$(NAME) : $(OBJECTS) libft
$(CC) $(CFLAGS) -o $(NAME) $(OBJECTS) $(LIBFT)
libft:
make -C ./libft
%.o : %.c
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -rf $(OBJECTS)
make clean -C ./libft
fclean: clean
rm -rf $(NAME)
make fclean -C ./libft
re: fclean all