-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·40 lines (32 loc) · 1.32 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: staeter <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/10/04 18:32:35 by staeter #+# #+# #
# Updated: 2018/10/04 18:32:47 by staeter ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = $(wildcard ./*.c)
INCLUDES = $(wildcard ./*.h)
OBJ = $(SRC:.c=.o)
PATH_LIB = libft/
LIBFT = $(PATH_LIB)libft.a
CC = gcc
FLAG = -Wall -Wextra -Werror
.PHONY : all clean fclean re lib
all: $(NAME)
$(NAME):
make -C $(PATH_LIB)
$(CC) $(FLAG) -c $(SRC) -I $(INCLUDES)
$(CC) $(FLAG) $(OBJ) $(LIBFT) -o $(NAME)
clean:
make clean -C $(PATH_LIB)
/bin/rm -f $(OBJ)
fclean: clean
/bin/rm -f $(NAME)
make fclean -C $(PATH_LIB)
re: fclean all