This repository has been archived by the owner on Apr 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (41 loc) · 1.63 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tferrieu <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/02/16 17:28:51 by tferrieu #+# #+# #
# Updated: 2019/03/05 11:28:27 by tferrieu ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
LIB = ./Libft/libft.a
SRC-C = ./srcs/calculate_flat.c \
./srcs/calculate_tilt.c \
./srcs/camera_movement.c \
./srcs/clean_free.c \
./srcs/draw_line.c \
./srcs/init_mlx.c \
./srcs/input_hook.c \
./srcs/loop_hook.c \
./srcs/mlxmain.c \
./srcs/parsing.c \
./srcs/program_close.c \
./srcs/order_drawer.c \
SRC-O = $(patsubst ./srcs/%.c, %.o, $(SRC-C))
FLAG = -Wall -Wextra -Werror
FMLX = -lmlx -framework OpenGL -framework AppKit -o
all: $(NAME)
$(NAME): $(SRC-C)
make -C Libft
gcc $(FLAG) -c $(SRC-C)
gcc $(FLAG) $(FMLX) $(NAME) $(SRC-O) $(LIB)
clean:
make -C Libft clean
rm -rf $(SRC-O)
fclean:
make -C Libft fclean
rm -rf $(SRC-O) $(NAME)
re: fclean all
.PHONY : all clean fclean re clib fclib