1
AUTOMAKE_OPTIONS = subdir-objects
2
3
bin_PROGRAMS = tmw
4
5
tmw_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\"      \
6
	       -DLOCALEDIR=\""$(localedir)"\"
7
8
tmw_SOURCES = gui/widgets/avatar.cpp \
9
	      gui/widgets/avatar.h \
10
	      gui/widgets/browserbox.cpp \
11
	      gui/widgets/browserbox.h \
12
	      gui/widgets/button.cpp \
13
	      gui/widgets/button.h \
14
	      gui/widgets/channeltab.cpp \
15
	      gui/widgets/channeltab.h \
16
	      gui/widgets/chattab.cpp \
17
	      gui/widgets/chattab.h \
18
	      gui/widgets/checkbox.cpp \
19
	      gui/widgets/checkbox.h \
20
	      gui/widgets/container.cpp \
21
	      gui/widgets/container.h \
22
	      gui/widgets/desktop.cpp \
23
	      gui/widgets/desktop.h \
24
	      gui/widgets/dropdown.cpp \
25
	      gui/widgets/dropdown.h \
26
	      gui/widgets/flowcontainer.cpp \
27
	      gui/widgets/flowcontainer.h \
28
	      gui/widgets/icon.cpp \
29
	      gui/widgets/icon.h \
30
	      gui/widgets/inttextfield.cpp \
31
	      gui/widgets/inttextfield.h \
32
	      gui/widgets/label.cpp \
33
	      gui/widgets/label.h \
34
	      gui/widgets/layout.cpp \
35
	      gui/widgets/layout.h \
36
	      gui/widgets/layouthelper.cpp \
37
	      gui/widgets/layouthelper.h \
38
	      gui/widgets/listbox.cpp \
39
	      gui/widgets/listbox.h \
40
	      gui/widgets/passwordfield.cpp \
41
	      gui/widgets/passwordfield.h \
42
	      gui/widgets/popup.cpp \
43
	      gui/widgets/popup.h \
44
	      gui/widgets/progressbar.cpp \
45
	      gui/widgets/progressbar.h \
46
	      gui/widgets/radiobutton.cpp \
47
	      gui/widgets/radiobutton.h \
48
	      gui/widgets/resizegrip.cpp \
49
	      gui/widgets/resizegrip.h \
50
	      gui/widgets/scrollarea.cpp \
51
	      gui/widgets/scrollarea.h \
52
	      gui/widgets/slider.cpp \
53
	      gui/widgets/slider.h \
54
	      gui/widgets/tab.cpp \
55
	      gui/widgets/tab.h \
56
	      gui/widgets/tabbedarea.cpp \
57
	      gui/widgets/tabbedarea.h \
58
	      gui/widgets/textbox.cpp \
59
	      gui/widgets/textbox.h \
60
	      gui/widgets/textfield.cpp \
61
	      gui/widgets/textfield.h \
62
	      gui/widgets/textpreview.cpp \
63
	      gui/widgets/textpreview.h \
64
	      gui/widgets/vertcontainer.cpp \
65
	      gui/widgets/vertcontainer.h \
66
	      gui/widgets/whispertab.cpp \
67
	      gui/widgets/whispertab.h \
68
	      gui/widgets/window.cpp \
69
	      gui/widgets/window.h \
70
	      gui/widgets/windowcontainer.cpp \
71
	      gui/widgets/windowcontainer.h \
72
	      gui/buy.cpp \
73
	      gui/buy.h \
74
	      gui/buysell.cpp \
75
	      gui/buysell.h \
76
	      gui/changeemaildialog.cpp \
77
	      gui/changeemaildialog.h \
78
	      gui/changepassworddialog.cpp \
79
	      gui/changepassworddialog.h \
80
	      gui/charselectdialog.cpp \
81
	      gui/charselectdialog.h \
82
	      gui/charcreatedialog.cpp \
83
	      gui/charcreatedialog.h \
84
	      gui/chat.cpp \
85
	      gui/chat.h \
86
	      gui/confirmdialog.cpp \
87
	      gui/confirmdialog.h \
88
	      gui/connectiondialog.cpp \
89
	      gui/connectiondialog.h \
90
	      gui/debugwindow.cpp \
91
	      gui/debugwindow.h \
92
	      gui/emotepopup.cpp \
93
	      gui/emotepopup.h \
94
	      gui/emoteshortcutcontainer.cpp \
95
	      gui/emoteshortcutcontainer.h \
96
	      gui/equipmentwindow.cpp \
97
	      gui/equipmentwindow.h \
98
	      gui/focushandler.cpp \
99
	      gui/focushandler.h \
100
	      gui/gui.cpp \
101
	      gui/gui.h \
102
	      gui/help.cpp \
103
	      gui/help.h \
104
	      gui/inventorywindow.cpp \
105
	      gui/inventorywindow.h \
106
	      gui/itemamount.cpp \
107
	      gui/itemamount.h \
108
	      gui/itemcontainer.cpp \
109
	      gui/itemcontainer.h \
110
	      gui/itemlinkhandler.cpp \
111
	      gui/itemlinkhandler.h \
112
	      gui/itempopup.cpp \
113
	      gui/itempopup.h \
114
	      gui/itemshortcutcontainer.cpp \
115
	      gui/itemshortcutcontainer.h \
116
	      gui/linkhandler.h \
117
	      gui/login.cpp \
118
	      gui/login.h \
119
	      gui/minimap.cpp \
120
	      gui/minimap.h \
121
	      gui/ministatus.cpp \
122
	      gui/ministatus.h \
123
	      gui/npcdialog.cpp \
124
	      gui/npcdialog.h \
125
	      gui/npcpostdialog.cpp \
126
	      gui/npcpostdialog.h \
127
	      gui/okdialog.cpp \
128
	      gui/okdialog.h \
129
	      gui/outfitwindow.cpp \
130
	      gui/outfitwindow.h \
131
	      gui/palette.cpp \
132
	      gui/palette.h \
133
	      gui/partywindow.cpp \
134
	      gui/partywindow.h \
135
	      gui/playerbox.cpp \
136
	      gui/playerbox.h \
137
	      gui/popupmenu.cpp \
138
	      gui/popupmenu.h \
139
	      gui/quitdialog.cpp \
140
	      gui/quitdialog.h \
141
	      gui/recorder.cpp \
142
	      gui/recorder.h \
143
	      gui/register.cpp \
144
	      gui/register.h \
145
	      gui/sdlinput.cpp \
146
	      gui/sdlinput.h \
147
	      gui/sell.cpp \
148
	      gui/sell.h \
149
	      gui/serverdialog.cpp \
150
	      gui/serverdialog.h \
151
	      gui/setup.cpp \
152
	      gui/setup.h \
153
	      gui/setup_audio.cpp \
154
	      gui/setup_audio.h \
155
	      gui/setup_colors.cpp \
156
	      gui/setup_colors.h \
157
	      gui/setup_joystick.cpp \
158
	      gui/setup_joystick.h \
159
	      gui/setup_keyboard.cpp \
160
	      gui/setup_keyboard.h \
161
	      gui/setup_players.cpp \
162
	      gui/setup_players.h \
163
	      gui/setup_video.cpp \
164
	      gui/setup_video.h \
165
	      gui/setuptab.cpp \
166
	      gui/setuptab.h \
167
	      gui/shop.cpp \
168
	      gui/shop.h \
169
	      gui/shoplistbox.cpp \
170
	      gui/shoplistbox.h \
171
	      gui/shortcutcontainer.cpp \
172
	      gui/shortcutcontainer.h \
173
	      gui/shortcutwindow.cpp \
174
	      gui/shortcutwindow.h \
175
	      gui/skilldialog.cpp \
176
	      gui/skilldialog.h \
177
	      gui/skin.cpp \
178
	      gui/skin.h \
179
	      gui/speechbubble.cpp \
180
	      gui/speechbubble.h \
181
	      gui/specialswindow.cpp \
182
	      gui/specialswindow.h \
183
	      gui/statuswindow.cpp \
184
	      gui/statuswindow.h \
185
	      gui/storagewindow.cpp \
186
	      gui/storagewindow.h \
187
	      gui/table.cpp \
188
	      gui/table.h \
189
	      gui/tablemodel.cpp \
190
	      gui/tablemodel.h \
191
	      gui/textdialog.cpp \
192
	      gui/textdialog.h \
193
	      gui/textrenderer.h \
194
	      gui/trade.cpp \
195
	      gui/trade.h \
196
	      gui/truetypefont.cpp \
197
	      gui/truetypefont.h \
198
	      gui/unregisterdialog.cpp \
199
	      gui/unregisterdialog.h \
200
	      gui/updatewindow.cpp \
201
	      gui/updatewindow.h \
202
	      gui/viewport.cpp \
203
	      gui/viewport.h \
204
	      gui/windowmenu.cpp \
205
	      gui/windowmenu.h \
206
	      gui/worldselectdialog.cpp \
207
	      gui/worldselectdialog.h \
208
	      net/adminhandler.h \
209
	      net/charhandler.h \
210
	      net/chathandler.h \
211
	      net/download.cpp \
212
	      net/download.h \
213
	      net/gamehandler.h \
214
	      net/generalhandler.h \
215
	      net/guildhandler.h \
216
	      net/inventoryhandler.h \
217
	      net/logindata.h \
218
	      net/loginhandler.h \
219
	      net/messagehandler.cpp \
220
	      net/messagehandler.h \
221
	      net/messagein.cpp \
222
	      net/messagein.h \
223
	      net/messageout.cpp \
224
	      net/messageout.h \
225
	      net/npchandler.h \
226
	      net/net.cpp \
227
	      net/net.h \
228
	      net/partyhandler.h \
229
	      net/playerhandler.h \
230
	      net/serverinfo.h \
231
	      net/specialhandler.h \
232
	      net/tradehandler.h \
233
	      net/worldinfo.h \
234
	      resources/action.cpp \
235
	      resources/action.h \
236
	      resources/ambientoverlay.cpp \
237
	      resources/ambientoverlay.h \
238
	      resources/animation.cpp \
239
	      resources/animation.h \
240
	      resources/colordb.cpp \
241
	      resources/colordb.h \
242
	      resources/dye.cpp \
243
	      resources/dye.h \
244
	      resources/emotedb.cpp \
245
	      resources/emotedb.h \
246
	      resources/image.cpp \
247
	      resources/image.h \
248
	      resources/imageloader.cpp \
249
	      resources/imageloader.h \
250
	      resources/imageset.h \
251
	      resources/imageset.cpp \
252
	      resources/imagewriter.cpp \
253
	      resources/imagewriter.h \
254
	      resources/itemdb.cpp \
255
	      resources/itemdb.h \
256
	      resources/iteminfo.h \
257
	      resources/iteminfo.cpp \
258
	      resources/mapreader.cpp \
259
	      resources/mapreader.h \
260
	      resources/monsterdb.cpp \
261
	      resources/monsterdb.h \
262
	      resources/monsterinfo.cpp \
263
	      resources/monsterinfo.h \
264
	      resources/music.cpp \
265
	      resources/music.h \
266
	      resources/npcdb.cpp \
267
	      resources/npcdb.h \
268
	      resources/resource.cpp \
269
	      resources/resource.h \
270
	      resources/resourcemanager.cpp \
271
	      resources/resourcemanager.h \
272
	      resources/sdlrescalefacility.cpp \
273
	      resources/sdlrescalefacility.h \
274
	      resources/soundeffect.h \
275
	      resources/soundeffect.cpp \
276
	      resources/spritedef.h \
277
	      resources/spritedef.cpp \
278
	      resources/wallpaper.cpp \
279
	      resources/wallpaper.h \
280
	      utils/base64.cpp \
281
	      utils/base64.h \
282
	      utils/dtor.h \
283
	      utils/gettext.h \
284
	      utils/mathutils.h \
285
	      utils/sha256.cpp \
286
	      utils/sha256.h \
287
	      utils/stringutils.cpp \
288
	      utils/stringutils.h \
289
	      utils/mutex.h \
290
	      utils/xml.cpp \
291
	      utils/xml.h \
292
	      animatedsprite.cpp \
293
	      animatedsprite.h \
294
	      animationparticle.cpp \
295
	      animationparticle.h \
296
	      being.cpp \
297
	      being.h \
298
	      beingmanager.cpp \
299
	      beingmanager.h \
300
	      channel.cpp \
301
	      channel.h \
302
	      channelmanager.cpp \
303
	      channelmanager.h \
304
	      commandhandler.cpp \
305
	      commandhandler.h \
306
	      configlistener.h \
307
	      configuration.cpp \
308
	      configuration.h \
309
	      effectmanager.cpp \
310
	      effectmanager.h \
311
	      emoteshortcut.cpp \
312
	      emoteshortcut.h \
313
	      engine.cpp \
314
	      engine.h \
315
	      equipment.cpp \
316
	      equipment.h \
317
	      flooritem.cpp \
318
	      flooritem.h \
319
	      flooritemmanager.cpp \
320
	      flooritemmanager.h \
321
	      game.cpp \
322
	      game.h \
323
	      graphics.cpp \
324
	      graphics.h \
325
	      guichanfwd.h \
326
	      imageparticle.cpp \
327
	      imageparticle.h \
328
	      inventory.cpp \
329
	      inventory.h \
330
	      item.cpp \
331
	      item.h \
332
	      itemshortcut.cpp \
333
	      itemshortcut.h \
334
	      joystick.cpp \
335
	      joystick.h \
336
	      keyboardconfig.cpp \
337
	      keyboardconfig.h \
338
	      localplayer.cpp \
339
	      localplayer.h \
340
	      lockedarray.h \
341
	      log.cpp \
342
	      log.h \
343
	      main.cpp \
344
	      main.h \
345
	      map.cpp\
346
	      map.h \
347
	      monster.cpp\
348
	      monster.h \
349
	      npc.cpp \
350
	      npc.h \
351
	      openglgraphics.cpp\
352
	      openglgraphics.h \
353
	      particle.cpp \
354
	      particle.h \
355
	      particlecontainer.cpp \
356
	      particlecontainer.h \
357
	      particleemitter.cpp \
358
	      particleemitter.h \
359
	      particleemitterprop.h \
360
	      player.cpp \
361
	      player.h \
362
	      playerrelations.cpp \
363
	      playerrelations.h \
364
	      position.cpp \
365
	      position.h \
366
	      properties.h \
367
	      rotationalparticle.cpp \
368
	      rotationalparticle.h \
369
	      shopitem.cpp \
370
	      shopitem.h \
371
	      simpleanimation.cpp \
372
	      simpleanimation.h \
373
	      sound.cpp \
374
	      sound.h \
375
	      sprite.h \
376
	      statuseffect.cpp \
377
	      statuseffect.h \
378
	      text.cpp \
379
	      text.h \
380
	      textmanager.cpp \
381
	      textmanager.h \
382
	      textparticle.cpp \
383
	      textparticle.h \
384
	      tileset.h \
385
	      units.cpp \
386
	      units.h \
387
	      vector.cpp \
388
	      vector.h
389
390
if SERVER_TMWSERV
391
tmw_CXXFLAGS += -DTMWSERV_SUPPORT
392
tmw_SOURCES += \
393
	      gui/buddywindow.cpp \
394
	      gui/buddywindow.h \
395
	      gui/guildlistbox.cpp \
396
	      gui/guildlistbox.h \
397
	      gui/guildwindow.cpp \
398
	      gui/guildwindow.h \
399
	      net/tmwserv/accountserver/account.cpp \
400
	      net/tmwserv/accountserver/account.h \
401
	      net/tmwserv/accountserver/accountserver.cpp \
402
	      net/tmwserv/accountserver/accountserver.h \
403
	      net/tmwserv/accountserver/internal.cpp \
404
	      net/tmwserv/accountserver/internal.h \
405
	      net/tmwserv/chatserver/chatserver.cpp \
406
	      net/tmwserv/chatserver/chatserver.h \
407
	      net/tmwserv/chatserver/guild.cpp \
408
	      net/tmwserv/chatserver/guild.h \
409
	      net/tmwserv/chatserver/internal.cpp \
410
	      net/tmwserv/chatserver/internal.h \
411
	      net/tmwserv/chatserver/party.cpp \
412
	      net/tmwserv/chatserver/party.h \
413
	      net/tmwserv/gameserver/gameserver.cpp \
414
	      net/tmwserv/gameserver/gameserver.h \
415
	      net/tmwserv/gameserver/internal.cpp \
416
	      net/tmwserv/gameserver/internal.h \
417
	      net/tmwserv/gameserver/player.cpp \
418
	      net/tmwserv/gameserver/player.h \
419
	      net/tmwserv/adminhandler.cpp \
420
	      net/tmwserv/adminhandler.h \
421
	      net/tmwserv/beinghandler.cpp \
422
	      net/tmwserv/beinghandler.h \
423
	      net/tmwserv/buysellhandler.cpp \
424
	      net/tmwserv/buysellhandler.h \
425
	      net/tmwserv/charhandler.cpp \
426
	      net/tmwserv/charhandler.h \
427
	      net/tmwserv/chathandler.cpp \
428
	      net/tmwserv/chathandler.h \
429
	      net/tmwserv/connection.cpp \
430
	      net/tmwserv/connection.h \
431
	      net/tmwserv/effecthandler.cpp \
432
	      net/tmwserv/effecthandler.h \
433
	      net/tmwserv/gamehandler.cpp \
434
	      net/tmwserv/gamehandler.h \
435
	      net/tmwserv/generalhandler.cpp \
436
	      net/tmwserv/generalhandler.h \
437
	      net/tmwserv/guildhandler.cpp \
438
	      net/tmwserv/guildhandler.h \
439
	      net/tmwserv/internal.cpp \
440
	      net/tmwserv/internal.h \
441
	      net/tmwserv/inventoryhandler.cpp \
442
	      net/tmwserv/inventoryhandler.h \
443
	      net/tmwserv/itemhandler.h \
444
	      net/tmwserv/itemhandler.cpp \
445
	      net/tmwserv/loginhandler.cpp \
446
	      net/tmwserv/loginhandler.h \
447
	      net/tmwserv/network.cpp \
448
	      net/tmwserv/network.h \
449
	      net/tmwserv/npchandler.cpp \
450
	      net/tmwserv/npchandler.h \
451
	      net/tmwserv/partyhandler.cpp \
452
	      net/tmwserv/partyhandler.h \
453
	      net/tmwserv/playerhandler.cpp \
454
	      net/tmwserv/playerhandler.h \
455
	      net/tmwserv/protocol.h \
456
	      net/tmwserv/specialhandler.cpp \
457
	      net/tmwserv/specialhandler.h \
458
	      net/tmwserv/tradehandler.cpp \
459
	      net/tmwserv/tradehandler.h \
460
	      guild.cpp \
461
	      guild.h
462
endif
463
464
if SERVER_EATHENA
465
tmw_CXXFLAGS += -DEATHENA_SUPPORT
466
tmw_SOURCES += \
467
	      net/ea/gui/partytab.cpp \
468
	      net/ea/gui/partytab.h \
469
	      net/ea/adminhandler.cpp \
470
	      net/ea/adminhandler.h \
471
	      net/ea/beinghandler.cpp \
472
	      net/ea/beinghandler.h \
473
	      net/ea/buysellhandler.cpp \
474
	      net/ea/buysellhandler.h \
475
	      net/ea/charserverhandler.cpp \
476
	      net/ea/charserverhandler.h \
477
	      net/ea/chathandler.cpp \
478
	      net/ea/chathandler.h \
479
	      net/ea/equipmenthandler.cpp \
480
	      net/ea/equipmenthandler.h \
481
	      net/ea/gamehandler.cpp \
482
	      net/ea/gamehandler.h \
483
	      net/ea/generalhandler.cpp \
484
	      net/ea/generalhandler.h \
485
	      net/ea/inventoryhandler.cpp \
486
	      net/ea/inventoryhandler.h \
487
	      net/ea/itemhandler.cpp \
488
	      net/ea/itemhandler.h \
489
	      net/ea/loginhandler.cpp \
490
	      net/ea/loginhandler.h \
491
	      net/ea/network.cpp \
492
	      net/ea/network.h \
493
	      net/ea/npchandler.cpp \
494
	      net/ea/npchandler.h \
495
	      net/ea/partyhandler.cpp \
496
	      net/ea/partyhandler.h \
497
	      net/ea/playerhandler.cpp \
498
	      net/ea/playerhandler.h \
499
	      net/ea/protocol.h \
500
	      net/ea/specialhandler.cpp \
501
	      net/ea/specialhandler.h \
502
	      net/ea/tradehandler.cpp \
503
	      net/ea/tradehandler.h
504
endif
505
506
# set the include path found by configure
507
INCLUDES = $(all_includes)