-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (38 loc) · 1.41 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
53
54
55
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: qdegraev <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/12/07 08:41:32 by qdegraev #+# #+# #
# Updated: 2016/02/04 12:39:16 by qdegraev ### ########.fr #
# #
# **************************************************************************** #
LIBFTPATH = libft
LIBFT = $(LIBFTPATH)/libft.a
MLXPATH = minilibx
MLX = $(MLXPATH)/mlx.a
NAME = fdf
CC = clang
CFLAGS = -Wall -Wextra -Werror -I libft
LDFLAGS = -framework OpenGL -framework AppKit -L minilibx -lmlx -L libft -lft
SRC = \
./draw.c \
./main.c \
./pixel.c \
./read_map.c
OBJ = $(SRC:.c=.o)
all: $(LIBFT) $(MLX) $(NAME)
$(NAME): $(OBJ)
$(CC) $(LDFLAGS) -o $@ $^
$(LIBFT):
make -C $(LIBFTPATH)
$(MLX):
make -C $(MLXPATH)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re