-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (32 loc) · 1.39 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: amkhuma <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/10/16 10:17:19 by amkhuma #+# #+# #
# Updated: 2017/11/05 14:14:19 by amkhuma ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
SOURCES = sources/main.c\
sources/image.c\
sources/keyboard.c\
sources/fractols.c\
sources/init.c
HEADER = -I include
LFLAGS = -L./libft/ -lft
FLAGS = -o fractol -Wall -Werror -Wextra
all:
@make -C libft/
@gcc $(FLAGS) $(SOURCES) $(HEADER) $(LFLAGS) -lmlx -framework OpenGL -framework AppKit
@echo "\033[00;32mMade '$(NAME)'\033[0m"
clean:
@rm $(NAME)
@make -C libft/ clean
fclean: clean
@rm -rf $(NAME)
@rm -rf libft/libft.a
@echo "\033[00;32mRemoved '$(NAME)'"
re: fclean all