-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (37 loc) · 841 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
##
## Makefile for make in /home/gwendal.bazin/PSU_2016_my_ls
##
## Made by Gwendal Bazin
## Login <[email protected]>
##
## Started on Sat Dec 3 22:47:42 2016 Gwendal Bazin
## Last update Tue Jan 10 18:24:19 2017 Gwendal Bazin
##
NAME = wolf3d
DIR = src/
SRC = $(DIR)map.c \
$(DIR)map_new.c \
$(DIR)my_draw_line.c \
$(DIR)raycast.c \
$(DIR)ray.c \
$(DIR)my_put_pixel.c \
$(DIR)window.c \
$(DIR)frame_buffer.c \
$(DIR)square.c \
$(DIR)wolf3d.c \
$(DIR)wall.c \
$(DIR)move_forward.c \
$(DIR)move.c
OBJ = $(SRC:.c=.o)
CFLAGS += -Wall -Wextra -Wpedantic #-Werror
CFLAGS += -I./include/
CC = gcc -g
RM = rm -f
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(OBJ) -o $(NAME) -L./$(DIR)my/ -lmy -lc_graph_prog -lm
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all