-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (42 loc) · 1.84 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mbutt <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/06/06 22:08:05 by mbutt #+# #+# #
# Updated: 2019/08/06 13:51:46 by mbutt ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
CC = gcc
CFLAG = -Wall -Wextra -Werror
SRC = srcs/bresenham_line_algorithm.c \
srcs/error_messages.c \
srcs/main_and_solve_driver.c \
srcs/menu.c \
srcs/parse_and_store.c \
srcs/program_control_events1.c srcs/program_control_events2.c \
srcs/render_map.c \
srcs/rotate_matrix1.c srcs/rotate_matrix2.c srcs/rotate_matrix3.c \
srcs/utility_functions1.c srcs/utility_functions2.c
OBJ = $(SRC:.c=.o)
MLXLINK = -L resources/minilibx_macos
MINILIBX = -I resources/minilibx_macos
LIBFT = srcs/libft/libft.a
OPENGL = -lmlx -framework OpenGL -framework AppKit
all: $(NAME)
$(NAME): $(OBJ)
make -C resources/minilibx_macos/
make -C srcs/libft/
$(CC) $(CFLAG) $(MLXLINK) $(MINILIBX) $(LIBFT) $(OPENGL) $^ -o $(NAME)
clean:
make clean -C resources/minilibx_macos/
make clean -C srcs/libft/
/bin/rm -f srcs/*.o
fclean: clean
make fclean -C srcs/libft/
/bin/rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re