-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (29 loc) · 1.25 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: abezanni <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/22 14:41:16 by glebouch #+# #+# #
# Updated: 2017/11/29 12:08:02 by abezanni ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = fillit.c ft_create_maill.c resolve.c gestion_pos.c
FLAG = -Wall -Wextra -Werror
OBJ = $(SRC:.c=.o)
LIB = -L ./libft/ -lft
all : $(NAME)
$(NAME) : $(OBJ)
make -C ./libft/
gcc $(FLAG) -o $@ $^ $(LIB)
%.o : %.c
gcc $(FLAG) -c $< -I.
clean :
make clean -C ./libft/
/bin/rm -f $(OBJ)
fclean : clean
/bin/rm -f libft/libft.a
/bin/rm -f $(NAME)
re : fclean all