-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (38 loc) · 1.48 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
51
52
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: sdarron <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/01/31 19:46:13 by sdarron #+# #+# #
# Updated: 2020/02/03 22:28:40 by sdarron ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
FRAMEWORK = -framework OpenGL -framework AppKit
GCC = gcc
LIB = libft/libft.a minilibx_macos/libmlx.a
SRCS = picture.c \
func.c \
main.c \
readmap.c \
free.c \
FLAGS = -Wall -Wextra -Werror
OBJ = $(patsubst %.c, %.o, $(SRCS))
all: $(NAME)
$(OBJ): $(SRCS)
@$(GCC) $(FLAGS) -c $(SRCS)
$(NAME): $(OBJ)
make -C ./libft/
make -C ./minilibx_macos/
@$(GCC) $(OBJ) $(LIB) $(FRAMEWORK) -o $(NAME)
clean:
@/bin/rm -f $(OBJ)
@/bin/rm -f libft/*.o
@/bin/rm -f minilibx_macos/*.o
fclean: clean
@/bin/rm -f $(NAME)
@/bin/rm -f libft/libft.a
re: fclean all
.PHONY: all clean fclean re