-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (33 loc) · 1.46 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ssong <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/01/20 14:47:28 by ssong #+# #+# #
# Updated: 2018/02/17 11:07:43 by ssong ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
FLAGS = -Wall -Werror -Wextra
SRCS = ./
INCLUDE = ./
FILES = readmap get_next_line line line2 line3 image mouse_hook transform main transform2
LIB = libft/libft.a miniLibX/libmlx.a
MLXLINK = -framework OpenGl -framework Appkit
CFILES = $(patsubst %, $(SRCS)%.c, $(FILES))
OFILES = $(patsubst %, $(SRCS)%.c, $(FILES))
all: $(LIB) $(MLXLINK) $(NAME)
$(LIB):
make -C libft/.
$(MLXLINK):
make -C miniLibX/.
$(NAME):
gcc $(FLAGS) $(CFILES) $(LIB) -I. -I miniLibX/. $(MLXLINK) -o $(NAME)
clean:
rm -f fdf
fclean: clean
make fclean -C ./libft
make clean -C ./miniLibX
re: fclean all