-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (31 loc) · 1.59 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mpaziuk <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/12/13 17:34:54 by mpaziuk #+# #+# #
# Updated: 2016/12/13 17:34:57 by mpaziuk ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = ft_fltalg.c ft_func.c main.c make_fig.c read_add.c
OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -Wextra -Werror
all: $(NAME)
$(NAME): libft/libft.a $(OBJ)
gcc $(OBJ) libft/libft.a -I libft -o $(NAME)
%.o: %.c fillit.h
gcc $(CFLAGS) -c -o $@ $<
clean:
rm -f $(OBJ)
make clean -C libft
fclean: clean
rm -f $(NAME)
rm -f libft/libft.a
re: fclean all
analize: libft/libft.a
gcc -Wall -Wextra -pedantic -Werror -Winit-self -Wunreachable-code -Wformat-y2k -Wformat-nonliteral -Wformat-security -Wformat=2 -Wmissing-include-dirs -Wswitch-default -Wtrigraphs -Wstrict-overflow=5 -Wfloat-equal -Wundef -Wshadow -Wbad-function-cast $(CFLAGS) $(SRC) libft/libft.a -I libft/libft.h -o fillit
libft/libft.a:
make -C libft