-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (43 loc) · 896 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
52
53
54
55
##
## Makefile for Makefile in /home/TiphaineLaurent/PSU_2016_my_popup
##
## Made by Tiphaine LAURENT
## Login <[email protected]>
##
## Started on Mon Dec 12 12:19:25 2016 Tiphaine LAURENT
## Last update Thu May 25 16:22:45 2017 Tiphaine LAURENT
##
CC = gcc -o
CFLAGS = -Wall -Wextra -Werror
##CFLAGS += -g3
CPPFLAGS += -I ./include
LDFLAGS = -lncurses
NAME = my_sokoban
SRC_DIR = src/
SRC_FILES = sokobanV3.c \
my_strlen.c \
my_popup.c \
screen.c \
get_map.c \
disp_map.c \
movement.c \
fct_move.c \
box_move.c \
time.c \
menu.c \
help.c \
check_map.c \
path.c \
score.c
SRCS = $(addprefix $(SRC_DIR), $(SRC_FILES))
RM = rm -f
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(NAME) $(OBJS) $(LDFLAGS)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re