-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (40 loc) · 1.51 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
43
44
45
46
47
48
49
50
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: adu-pelo <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/03/28 15:36:47 by adu-pelo #+# #+# #
# Updated: 2016/11/09 13:45:04 by adu-pelo ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
SRC = sources/parsing.c \
sources/put_map.c \
sources/do_map.c \
sources/color.c \
sources/error.c \
sources/main.c \
sources/hook.c
OBJ = $(SRC:.c=.o)
FLAGS = -Wall -Wextra -Werror
LIBS = -L./libft -lft -lmlx -framework OpenGL -framework AppKit
$(NAME): $(OBJ)
@echo "Creating $(NAME)"
@make -C ./libft
@gcc $(FLAGS) $(OBJ) $(LIBS) -o $(NAME)
all: $(NAME)
%.o: %.c
@echo "Creating object : $@"
@gcc $(FLAGS) -o $@ -c $<
clean :
@echo "Deleting objects"
@rm -f $(OBJ)
@make -C libft/ clean
fclean: clean
@echo "Deleting $(NAME)"
@rm -rf $(NAME)
@make fclean -C libft
re: fclean all
.PHONY : all clean fclean re