-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (27 loc) · 1.26 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: omeyer <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/07/02 14:51:42 by omeyer #+# #+# #
# Updated: 2017/09/21 12:16:36 by ckatz ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
SRC = read_map.c draw.c main.c
OBJ = read_map.o draw.o main.o
FLAGS = -Wall -Wextra -Werror -lmlx -framework OpenGL -framework AppKit
FETCHLIB = -L libft/ -lft
all: $(NAME)
$(NAME):
@$(MAKE) -C libft/ all
@gcc -o $(NAME) $(SRC) $(FLAGS) $(FETCHLIB)
clean:
@$(MAKE) -C libft/ clean
@/bin/rm -f $(OBJ)
fclean: clean
@/bin/rm -f $(NAME)
@$(MAKE) -C libft/ fclean
re: fclean all