-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·50 lines (37 loc) · 1.41 KB
/
Makefile
File metadata and controls
executable file
·50 lines (37 loc) · 1.41 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mvelluet <mvelluet@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/02/27 16:44:56 by mvelluet #+# #+# #
# Updated: 2017/03/23 23:52:14 by mvelluet ### ########.fr #
# #
# **************************************************************************** #
NAME = fdf
SRCS = main.c \
ft_read.c \
ft_malloc.c \
ft_draw.c \
ft_utils.c \
ft_command.c
CFLAGS = -Wall -Werror -Wextra
INCLUDE = fdf.h
OBJ = $(SRCS:.c=.o)
CC = gcc
MINILIB = minilibx_macos/libmlx.a
all: $(NAME) $(INCLUDE)
$(NAME): $(MINILIB) $(OBJ)
make -C libft
$(CC) -o $(NAME) $(CFLAGS) $(OBJ) $(MINILIB) -framework OpenGL -framework Appkit libft/libft.a
echo "Fdf done" $@
$(MINILIB):
make -C minilibx_macos
clean:
make clean -C libft
rm -f $(OBJ)
fclean: clean
make fclean -C libft
rm -f $(NAME)
re: fclean all