-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (46 loc) · 1.71 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ysonmez <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/08/19 11:02:47 by ysonmez #+# #+# #
# Updated: 2021/10/22 13:53:17 by ysonmez ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
SRCS = srcs/fdf.c \
srcs/get_data.c \
srcs/get_next_line.c \
srcs/utils.c \
srcs/transform_data.c \
srcs/draw.c \
srcs/overlay.c \
srcs/event_k.c \
srcs/event_m.c \
OBJS = $(SRCS:.c=.o)
LIB = make bonus -C ./libft
MLX = make -C ./minilibx_macos
CC = gcc
CFLAGS = -Wall -Werror -Wextra
MLXFLAGS = -framework OpenGL -framework AppKit
RM = rm -f
$(NAME) : $(OBJS)
$(LIB)
$(MLX)
$(CC) $(CFLAGS) $(OBJS) libft/libft.a minilibx_macos/libmlx.a $(MLXFLAGS) -o $(NAME)
lib :
$(LIB)
mlx :
$(MLX)
clean :
$(RM) $(OBJS)
fclean : clean
$(RM) $(NAME)
cd ./libft && make fclean
cd ./minilibx_macos && make clean
all : $(NAME)
bonus : all
re : fclean all
.PHONY : clean fclean all re bonus