-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (35 loc) · 1.45 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: obelouch <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/10/06 14:55:40 by obelouch #+# #+# #
# Updated: 2018/12/20 00:48:22 by obelouch ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
LIBFT = libft/libft.a
SRC = src/*.c
LIBFT_SRC = libft/*.c
LIBFT_OBJ = *.o
LIBFT_H = libft/libft.h
HEAD = include/fdf.h
OBJ = *.o
LIB = -L ./mlx -lmlx -L ./libft -lft
FRAME = -framework OpenGL -framework Appkit
FLAG = -Wall -Wextra -Werror
all: $(LIB_NAME) $(NAME)
$(LIBFT): $(LIBFT_H)
@cc -c $(FLAG) $(LIBFT_SRC)
@ar rc $(LIBFT) $(LIBFT_OBJ)
@ranlib $(LIBFT)
$(NAME): $(HEAD) $(LIBFT)
@cc -c -I mlx/ -I include/ $(SRC)
@cc $(OBJ) $(FRAME) $(FLAG) $(LIB) -o $(NAME)
clean:
@/bin/rm -f $(OBJ) $(LIBFT_OBJ)
fclean: clean
@/bin/rm -f $(NAME) $(LIBFT)
re: fclean all