-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (63 loc) · 1.98 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: okuznets <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/09/26 15:48:43 by okuznets #+# #+# #
# Updated: 2018/09/26 15:48:45 by okuznets ### ########.fr #
# #
#******************************************************************************#
NAME = fractol
CC = gcc
CFLAGS = -Wall -Werror -Wextra
INC = Includes
SDIR = Srcs
SRCS = burning_ship.c\
burning_ship_point.c\
drawing.c\
errors.c\
fish_point.c\
main.c\
julia.c\
julia_key_hook.c\
julia_point.c\
key_hook.c\
mandelbrot.c\
mandelbrot_key_hook.c\
mandelbrot_point.c\
new_image.c\
ancients.c\
ancients_point.c\
fish.c\
rose_point.c\
rose.c\
web_point.c\
web.c\
HEADERS = fractol.h
ODIR = Objects
OBJ = $(SRCS:.c=.o)
OBJ_R = $(OBJ:%.o=$(ODIR)/%.o)
all : $(NAME)
$(NAME) : $(ODIR)/ $(OBJ_R)
make -C ./libft
$(CC) $(CFLAGS) -o $(NAME) $(OBJ_R) ./libft/libft.a -L ./minilibx_macos/ -lmlx -framework OpenGL -framework AppKit
.PHONY: clean fclean re
clean :
rm -f $(OBJ_R)
fclean : clean
rm -f $(NAME)
re : fclean $(NAME)
norm:
make norm -C libft
norminette $(SRCS:%.c=$(SDIR)/%.c) $(HEADERS:%.h=$(INC)/%.h)
add:
make add -C ./libft
git add $(SRCS:%.c=$(SDIR)/%.c) $(HEADERS:%.h=$(INC)/%.h) .gitignore Makefile CMakeLists.txt author
test1: $(NAME)
./$(NAME)
$(ODIR)/ :
mkdir -p $@
$(ODIR)/%.o : $(SDIR)/%.c
$(CC) $(CFLAGS) -c $< -o $@ -I ./libft -I $(INC)