-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1.46 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
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kprytkov <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/05/22 15:23:05 by kprytkov #+# #+# #
# Updated: 2018/05/22 15:23:06 by kprytkov ### ########.fr #
# #
#******************************************************************************#
NAME = fdf
CC = gcc
FLAG = -Wall -Werror -Wextra
SRC = fdf.c error_manager.c bresenham_line.c actions.c \
ft_atoi_base.c ft_split.c get_next_line.c next_drawing.c \
reader.c transformations.c
INCLUDE = ./includes
SRO = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(SRO)
make -C ./libft/
$(CC) $(FLAG) -I$(INCLUDE) $(SRC) -lmlx -framework OpenGL -framework Appkit ./libft/libft.a -o $(NAME)
# ar rc $(NAME) $(SRO)
%.o: %.c ./includes/fdf.h
$(CC) $(FLAG) -c -Wextra -Wall -Werror -o $@ $<
clean:
make -C libft/ clean
rm -f $(SRO)
fclean: clean
make -C libft/ fclean
rm -Rf $(NAME)
re: fclean all