-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (33 loc) · 1.58 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
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: asulliva <[email protected]> +#+ #
# +#+ #
# Created: 2019/05/10 16:19:10 by asulliva #+# #+# #
# Updated: 2019/05/10 17:33:44 by asulliva ######## odam.nl #
# #
# **************************************************************************** #
NAME = fdf
SRCS = main.c draw.c helper.c read.c mlx.c extra.c colour.c
OBJ = main.o draw.o helper.o read.o mlx.o extra.o colour.o
FLAGS = -L minilibx_macos/ -lmlx -framework OpenGL -framework AppKit -o $(NAME)
GCC = gcc
LIBS = ./libft/libft.a
all: $(NAME)
$(NAME):
@make -C libft/ > /dev/null
@make -C minilibx_macos re > /dev/null
@$(GCC) -g $(SRCS) -I /usr/X11/includes $(FLAGS) $(LIBS) > /dev/null
@echo "\033[32mFDF READY\033[0m"
clean:
@rm -rf $(OBJ) > /dev/null
@make clean -C libft/ > /dev/null
@make clean -C minilibx_macos/ > /dev/null
@echo "\033[33mOBJ FILES REMOVED\033[0m"
fclean: clean
@rm -rf $(NAME) > /dev/null
@make fclean -C libft/ > /dev/null
@echo "\033[31mFDF REMOVED\033[0m"
re: fclean all