-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 1.3 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: nolakim <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/07/28 09:17:30 by nolakim #+# #+# #
# Updated: 2019/08/27 02:01:11 by nolakim ### ########.fr #
# #
# **************************************************************************** #
libx_flags = -L minilibx -lmlx -framework OpenGL -framework AppKit -g
cflags = -Wall -Wextra -Werror
make_lib = @make -C ./libft/
header = fdf.h
includes = ./libft/libft.a ./minilibx/libmlx.a
SRC = *.c
OBJ = *.o
cc = @gcc
name = fdf
$(name) :
@make -C libft/
$(cc) $(cflags) $(libx_flags) $(SRC) $(includes) -o $(name)
clean:
@make -C libft/ clean
@/bin/rm -rf $(name)
fclean: clean
@make -C libft/ fclean
re: fclean all