-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
51 lines (36 loc) · 859 Bytes
/
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
SRC = ./sources/gnl/get_next_line.c \
./sources/gnl/get_next_line_fd.c \
./sources/my_puterror.c \
./sources/get_wolf_map.c \
./sources/build_img.c \
./sources/calc.c \
./sources/move_keys.c \
./sources/get_background.c \
./sources/change_wall_color.c \
./sources/check_map.c \
./sources/show_target.c \
./sources/loop_hook.c \
./sources/get_score.c \
./sources/main.c
CFLAGS += -Wextra -Wall -Werror
CFLAGS += -ansi -pedantic
CFLAGS += -I./include
## LINUX
#LDFLAGS = -L /usr/lib64/X11 -L /usr/lib64
## MAC
CFLAGS += -I /usr/X11/include
LDFLAGS = -L /usr/X11/lib
LDFLAGS += -l Xext -l X11 -l mlx -lm
NAME = worldOfWalls
RM = rm -f
CC = gcc
OBJS= $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(CC) -o $(NAME) $(OBJS) $(LDFLAGS)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re