summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 25db7f80fd62e8115850998a51176a0648a473db (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190

#CC = /usr/local/gcc/bin/gcc
CC = gcc

#CFLAGS = -O2 -DSUPPORT_NET_SDL_UDP  -I../include -Wall `sdl-config --cflags`
CFLAGS = -g -O0 -std=c99 -I../include -Wall `sdl-config --cflags`
#CFLAGS = -O2 -DDESTDIR=\"$(DESTDIR)\" `sdl-config --cflags` -I../include -Wall

BUILD_DIR = .
LIBS = `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_net

FILES = interface.o idManager.o checkFront.o font.o list.o modules.o image.o layer.o director.o\
	configFile.o tux.o main.o \
	screen.o screen_world.o shot.o myTimer.o panel.o net_multiplayer.o \
	buffer.o arena.o arenaFile.o textFile.o audio.o sound.o music.o gun.o \
	item.o widget_label.o screen_mainMenu.o widget_button.o screen_analyze.o widget_textfield.o \
	widget_check.o widget_image.o screen_setting.o screen_gameType.o screen_choiceArena.o \
	widget_buttonimage.o screen_credits.o homeDirector.o screen_table.o \
	sdl_udp.o proto.o server.o client.o term.o keytable.o language.o game.o
 
tuxanci-ng: $(FILES)
	$(CC) $(CFLAGS) $(LIBS) -o $(BUILD_DIR)/tuxanci-ng $(BUILD_DIR)/*.o

main.o: main.c 
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/main.o -c main.c

interface.o: interface.c ../include/interface.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/interface.o -c interface.c

modules.o: modules.c ../include/modules.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/modules.o -c modules.c

idManager.o: idManager.c ../include/idManager.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/idManager.o -c idManager.c

checkFront.o: checkFront.c ../include/checkFront.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/checkFront.o -c checkFront.c

font.o: font.c ../include/font.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/font.o -c font.c

list.o: list.c ../include/list.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/list.o -c list.c

image.o: image.c ../include/image.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/image.o -c image.c

layer.o: layer.c ../include/layer.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/layer.o -c layer.c

director.o: director.c ../include/director.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/director.o -c director.c

configFile.o: configFile.c ../include/configFile.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/configFile.o -c configFile.c

tux.o: tux.c ../include/tux.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/tux.o -c tux.c

screen.o: screen.c ../include/screen.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen.o -c screen.c

screen_world.o: screen_world.c ../include/screen_world.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_world.o -c screen_world.c

#wall.o: wall.c ../include/wall.h
#	$(CC) $(CFLAGS) -o $(BUILD_DIR)/wall.o -c wall.c

shot.o: shot.c ../include/shot.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/shot.o -c shot.c

myTimer.o: myTimer.c ../include/myTimer.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/myTimer.o -c myTimer.c

panel.o: panel.c ../include/panel.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/panel.o -c panel.c

buffer.o: buffer.c ../include/buffer.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/buffer.o -c buffer.c

tcp.o: tcp.c ../include/tcp.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/tcp.o -c tcp.c

udp.o: udp.c ../include/udp.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/udp.o -c udp.c

sdl_udp.o: sdl_udp.c ../include/sdl_udp.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/sdl_udp.o -c sdl_udp.c

proto.o: proto.c ../include/proto.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/proto.o -c proto.c

server.o: server.c ../include/server.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/server.o -c server.c

client.o: client.c ../include/client.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/client.o -c client.c

network.o: network.c ../include/network.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/network.o -c network.c

net_multiplayer.o: net_multiplayer.c ../include/net_multiplayer.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/net_multiplayer.o -c net_multiplayer.c

arena.o: arena.c ../include/arena.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/arena.o -c arena.c

textFile.o: textFile.c ../include/textFile.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/textFile.o -c textFile.c

arenaFile.o: arenaFile.c ../include/arenaFile.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/arenaFile.o -c arenaFile.c

audio.o: audio.c ../include/audio.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/audio.o -c audio.c

sound.o: sound.c ../include/sound.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/sound.o -c sound.c

music.o: music.c ../include/music.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/music.o -c music.c

gun.o: gun.c ../include/gun.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/gun.o -c gun.c

item.o: item.c ../include/item.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/item.o -c item.c

screen_mainMenu.o: screen_mainMenu.c ../include/screen_mainMenu.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_mainMenu.o -c screen_mainMenu.c

screen_analyze.o: screen_analyze.c ../include/screen_analyze.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_analyze.o -c screen_analyze.c

screen_setting.o: screen_setting.c ../include/screen_setting.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_setting.o -c screen_setting.c

screen_gameType.o: screen_gameType.c ../include/screen_gameType.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_gameType.o -c screen_gameType.c

screen_choiceArena.o: screen_choiceArena.c ../include/screen_choiceArena.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_choiceArena.o -c screen_choiceArena.c

screen_credits.o: screen_credits.c ../include/screen_credits.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_credits.o -c screen_credits.c

widget_label.o: widget_label.c ../include/widget_label.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_label.o -c widget_label.c

widget_button.o: widget_button.c ../include/widget_button.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_button.o -c widget_button.c

widget_buttonimage.o: widget_buttonimage.c ../include/widget_buttonimage.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_buttonimage.o -c widget_buttonimage.c

widget_textfield.o: widget_textfield.c ../include/widget_textfield.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_textfield.o -c widget_textfield.c

widget_check.o: widget_check.c ../include/widget_check.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_check.o -c widget_check.c

widget_image.o: widget_image.c ../include/widget_image.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_image.o -c widget_image.c

#teleport.o: teleport.c ../include/teleport.h
#	$(CC) $(CFLAGS) -o $(BUILD_DIR)/teleport.o -c teleport.c

#pipe.o: pipe.c ../include/pipe.h
#	$(CC) $(CFLAGS) -o $(BUILD_DIR)/pipe.o -c pipe.c

homeDirector.o: homeDirector.c ../include/homeDirector.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/homeDirector.o -c homeDirector.c

screen_table.o: screen_table.c ../include/screen_table.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_table.o -c screen_table.c

term.o: term.c ../include/term.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/term.o -c term.c

keytable.o: keytable.c ../include/keytable.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/keytable.o -c keytable.c

language.o: language.c ../include/language.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/language.o -c language.c

game.o: game.c ../include/game.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/game.o -c game.c

clean:
	rm -rf *.o *.c~ ../include/*.h~ Makefile~