summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: fbd3bd8b07ae08f37f27faf120a6f526913feaba (plain) (blame)
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
# $Id$

AUTOMAKE_OPTIONS = subdir-objects

bin_PROGRAMS = tmwclient tmwserv

tmwclient_SOURCES = client.cpp \
		    defines.h \
		    messageout.h \
		    messageout.cpp \
		    messagein.h \
		    messagein.cpp

tmwserv_SOURCES = main.cpp \
		  being.h \
		  being.cpp \
		  account.h \
		  account.cpp \
		  accountclient.h \
		  accountclient.cpp \
		  accounthandler.h \
		  accounthandler.cpp \
		  chathandler.h \
		  chathandler.cpp \
		  chatchannel.h \
		  chatchannel.cpp \
		  chatchannelmanager.h \
		  chatchannelmanager.cpp \
		  configuration.h \
		  configuration.cpp \
		  connectionhandler.h \
		  connectionhandler.cpp \
		  controller.h \
		  controller.cpp \
		  debug.h \
		  debug.cpp \
		  defines.h \
		  gameclient.h \
		  gameclient.cpp \
		  gamehandler.h \
		  gamehandler.cpp \
		  inventory.h \
		  inventory.cpp \
		  item.h \
		  item.cpp \
		  itemmanager.h \
		  itemmanager.cpp \
		  map.h \
		  map.cpp \
		  mapcomposite.h \
		  mapcomposite.cpp \
		  mapmanager.h \
		  mapmanager.cpp \
		  mapreader.cpp \
		  mapreader.h \
		  messagein.h \
		  messagein.cpp \
		  messageout.h \
		  messageout.cpp \
		  netcomputer.h \
		  netcomputer.cpp \
		  object.h \
		  object.cpp \
		  player.h \
		  player.cpp \
		  point.h \
		  properties.h \
		  resourcemanager.cpp \
		  resourcemanager.h \
		  skill.h \
		  skill.cpp \
		  state.h \
		  state.cpp \
		  storage.h \
		  storage.cpp \
		  dalstorage.h \
		  dalstorage.cpp \
		  dal/dalexcept.h \
		  dal/dataprovider.h \
		  dal/dataprovider.cpp \
		  dal/dataproviderfactory.h \
		  dal/dataproviderfactory.cpp \
		  dal/recordset.h \
		  dal/recordset.cpp \
		  utils/base64.h \
		  utils/base64.cpp \
		  utils/countedptr.h \
		  utils/functors.h \
		  utils/singleton.h \
		  utils/cipher.h \
		  utils/cipher.cpp \
		  utils/logger.h \
		  utils/logger.cpp \
		  utils/stringfilter.h \
		  utils/stringfilter.cpp \
		  utils/timer.h \
		  utils/timer.cpp

if BUILD_MYSQL
tmwserv_SOURCES += dal/mysqldataprovider.h \
		   dal/mysqldataprovider.cpp
endif

if BUILD_POSTGRESQL
tmwserv_SOURCES += dal/pqdataprovider.h \
		   dal/pqdataprovider.cpp
endif

if BUILD_SQLITE
tmwserv_SOURCES += dal/sqlitedataprovider.h \
		   dal/sqlitedataprovider.cpp
endif

if BUILD_SQUIRREL
tmwserv_SOURCES += script.h \
		   script.cpp \
		   script-squirrel.h \
		   script-squirrel.cpp
endif

if BUILD_RUBY
tmwserv_SOURCES += bindings_wrap.cpp
bindings_wrap.cpp: bindings.i
	$(SWIG) $(SWIGFLAGS) -o bindings_wrap.cpp bindings.i
endif


# do not remove the 'dot', it is a hint for Automake.
# it causes a prefix ordering of directories.
SUBDIRS = . tests