-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (33 loc) · 1.33 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: mhedeon <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/05/26 17:25:08 by mhedeon #+# #+# #
# Updated: 2018/07/03 17:14:52 by mhedeon ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
SRC = main.c map.c \
draw_line.c draw_map.c \
rotation.c other.c \
init.c error.c key.c
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
@make -C libft
@gcc $(FLAGS) -c $(SRC)
@gcc -g -o $(NAME) $(OBJ) -L ./libft -lft -lmlx -framework OpenGL -framework AppKit
%.o: %.c
@gcc $(FLAGS) -c $< -I $@
clean:
@make -C libft clean
@rm -f $(OBJ)
fclean: clean
@make -C libft fclean
@rm -f $(NAME)
@rm -f $(OBJ)
re: fclean all
@make -C libft re