-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 1.43 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pkerckho <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/02/11 11:40:18 by pkerckho #+# #+# #
# Updated: 2016/03/02 13:05:16 by pkerckho ### ########.fr #
# #
# **************************************************************************** #
CFLAGS = -Wall -Wextra -Werror -I $(INC_DIR) $(INCL_DIR)
NAME = fdf
INC_DIR = includes
INCL = libft/includes/libft.h
SRC = main.c \
ft_parse.c \
ft_draw.c \
ft_settings.c
LIB = libft/libft.a
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
@make -C libft/
@gcc -o $(NAME) $(CFLAGS) $(SRC) $(LIB) -lmlx -framework OpenGL -framework AppKit libft/libft.a
@echo "$(NAME) created"
clean:
@rm -f $(OBJ)
@echo "$(NAME) OBJ deleted"
fclean: clean
@rm -f $(NAME)
@make fclean -C libft/
@echo "$(NAME) deleted"
re: fclean all
.PHONY: all, clean, fclean, re