-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
88 lines (59 loc) · 2.88 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#------------------------------------------------------------------------------#
# This makefile was generated by 'cbp2make' tool rev.147 #
#------------------------------------------------------------------------------#
WORKDIR = `pwd`
CC = gcc
CXX = g++
AR = ar
LD = g++
WINDRES = windres
INC =
CFLAGS = -Wall -I`sdl2-config --prefix`/include
RESINC =
LIBDIR =
LIB =
LDFLAGS = -L`sdl2-config --prefix`/lib -lSDL2 -lSDL2_image -lSDL2_ttf
INC_RELEASE = $(INC)
CFLAGS_RELEASE = $(CFLAGS) -O2
RESINC_RELEASE = $(RESINC)
RCFLAGS_RELEASE = $(RCFLAGS)
LIBDIR_RELEASE = $(LIBDIR)
LIB_RELEASE = $(LIB)
LDFLAGS_RELEASE = $(LDFLAGS) -s
OBJDIR_RELEASE = obj/Release
DEP_RELEASE =
OUT_RELEASE = ./Wonsz1.x
OBJ_RELEASE = $(OBJDIR_RELEASE)/spider.o $(OBJDIR_RELEASE)/snake.o $(OBJDIR_RELEASE)/particle.o $(OBJDIR_RELEASE)/main.o $(OBJDIR_RELEASE)/level.o $(OBJDIR_RELEASE)/game_gui.o $(OBJDIR_RELEASE)/ANZ_Image.o $(OBJDIR_RELEASE)/entitySpawner.o $(OBJDIR_RELEASE)/apple.o $(OBJDIR_RELEASE)/AbstractEntity.o $(OBJDIR_RELEASE)/ANZ_Sprite.o
before_release:
test -d . || mkdir -p .
test -d $(OBJDIR_RELEASE) || mkdir -p $(OBJDIR_RELEASE)
after_release:
all: before_release out_release after_release
out_release: before_release $(OBJ_RELEASE) $(DEP_RELEASE)
$(LD) $(LIBDIR_RELEASE) -o $(OUT_RELEASE) $(OBJ_RELEASE) $(LDFLAGS_RELEASE) $(LIB_RELEASE)
$(OBJDIR_RELEASE)/spider.o: spider.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c spider.c -o $(OBJDIR_RELEASE)/spider.o
$(OBJDIR_RELEASE)/snake.o: snake.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c snake.c -o $(OBJDIR_RELEASE)/snake.o
$(OBJDIR_RELEASE)/particle.o: particle.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c particle.c -o $(OBJDIR_RELEASE)/particle.o
$(OBJDIR_RELEASE)/main.o: main.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c main.c -o $(OBJDIR_RELEASE)/main.o
$(OBJDIR_RELEASE)/level.o: level.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c level.c -o $(OBJDIR_RELEASE)/level.o
$(OBJDIR_RELEASE)/game_gui.o: game_gui.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c game_gui.c -o $(OBJDIR_RELEASE)/game_gui.o
$(OBJDIR_RELEASE)/ANZ_Image.o: ANZ_Image.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c ANZ_Image.c -o $(OBJDIR_RELEASE)/ANZ_Image.o
$(OBJDIR_RELEASE)/entitySpawner.o: entitySpawner.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c entitySpawner.c -o $(OBJDIR_RELEASE)/entitySpawner.o
$(OBJDIR_RELEASE)/apple.o: apple.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c apple.c -o $(OBJDIR_RELEASE)/apple.o
$(OBJDIR_RELEASE)/AbstractEntity.o: AbstractEntity.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c AbstractEntity.c -o $(OBJDIR_RELEASE)/AbstractEntity.o
$(OBJDIR_RELEASE)/ANZ_Sprite.o: ANZ_Sprite.c
$(CC) $(CFLAGS_RELEASE) $(INC_RELEASE) -c ANZ_Sprite.c -o $(OBJDIR_RELEASE)/ANZ_Sprite.o
clean:
rm -f $(OBJ_RELEASE) $(OUT_RELEASE)
rm -rf $(OBJDIR_RELEASE)
.PHONY: before_debug after_debug clean_debug before_release after_release clean_release