-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 782 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (31 loc) · 782 Bytes
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
NAME = fdf
CC = gcc
CC_LIB = -L libft/ -lft
CFLAGS = -Wall -Wextra -Werror
CFLAGSLBX = -lmlx -framework OpenGL -framework Appkit
X = /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/
HEADER = fdf.h
INCL = -I libft/includes -I$(X)
SRCS = main.c map_reader.c get_coord.c init.c ft_draw_line.c image_iso.c ft_put_pixel.c\
event.c ft_event.c if_color.c
OBJS = $(SRCS:.c=.o)
.PHONY: all
all: $(NAME)
$(NAME): $(OBJS) $(HEADER)
make -C minilibx_macos/
make -C libft/
$(CC) -o $(NAME) $(CFLAGS) $(CFLAGSLBX) $(OBJS) $(INCL) $(CC_LIB)
%.o: %.c
$(CC) $(CFLAGS) $(INCL) -c -o $@ $<
.PHONY: clean
clean:
rm -f $(OBJS)
.PHONY: fclean
fclean: clean
rm -f $(NAME)
.PHONY: re
re: fclean
make -C libft/ re
make all
test : all
@./fdf ~/Documents/fdf_maps/42.fdf