-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·67 lines (55 loc) · 1.82 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
55
56
57
58
59
60
61
62
63
64
65
66
67
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: stherman <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2013/11/20 14:58:54 by stherman #+# #+# #
# Updated: 2014/11/11 18:07:04 by ngouy ### ########.fr #
# #
#******************************************************************************#
CC = gcc
NAME = fdf
SRC = \
./get_next_line/get_next_line.c\
./Sources/ft_color.c\
./Sources/ft_get_tab.c\
./Sources/ft_get_tab_aux1.c\
./Sources/ft_hooks1.c\
./Sources/ft_is_hexa.c\
./Sources/ft_window.c\
./Sources/ft_window_aux1.c\
./Sources/ft_window_aux2.c\
./Sources/ft_window_aux3.c\
./Sources/main.c\
OBJ = ./get_next_line.o\
./ft_color.o\
./ft_get_tab.o\
./ft_get_tab_aux1.o\
./ft_hooks1.o\
./ft_is_hexa.o\
./ft_window.o\
./ft_window_aux1.o\
./ft_window_aux2.o\
./ft_window_aux3.o\
./main.o\
OBJI =$(OBJ:./=./Ofiles/)
CFLAGS = -Wall -Werror -Wextra -ansi -pedantic
OFLAGS = -O3
MAKELIBFT = make -C ./libft/
LIBS = ./libft/libft.a ./mlx/libmlx.a -framework OpenGl -framework AppKit
RM = rm -rf
all: $(NAME)
$(NAME):
$(MAKELIBFT)
gcc $(CFLAGS) -c -I ./Include/ $(SRC)
gcc $(OBJ) $(LIBS) -o $(NAME)
clean:
$(RM) $(OBJ)
$(MAKELIBFT) clean
fclean: clean
$(RM) $(NAME)
$(MAKELIBFT) fclean
re: fclean all
norminette :
norminette $(SRC) Include/*.h
.PHONY: all clean re fclean