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

AUTOMAKE_OPTIONS = subdir-objects

bin_PROGRAMS = tmwclient tmwserv

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

tmwserv_SOURCES = main.cpp \
		  configuration.h \
		  configuration.cpp \
		  accountclient.h \
		  accountclient.cpp \
		  accounthandler.h \
		  accounthandler.cpp \
		  chathandler.h \
		  chathandler.cpp \
		  chatchannel.h \
		  chatchannel.cpp \
		  chatchannelmanager.h \
		  chatchannelmanager.cpp \
		  connectionhandler.h \
		  connectionhandler.cpp \
		  gameclient.h \
		  gameclient.cpp \
		  gamehandler.h \
		  gamehandler.cpp \
		  state.h \
		  state.cpp \
		  debug.h \
		  debug.cpp \
		  defines.h \
		  items.h \
		  items.cpp \
		  map.cpp \
		  map.h \
		  mapmanager.h \
		  mapmanager.cpp \
		  mapreader.cpp \
		  mapreader.h \
		  messagein.h \
		  messagein.cpp \
		  messageout.h \
		  messageout.cpp \
		  netcomputer.h \
		  netcomputer.cpp \
		  packet.h \
		  packet.cpp \
		  skill.h \
		  skill.cpp \
		  resourcemanager.cpp \
		  resourcemanager.h \
		  storage.h \
		  storage.cpp \
		  account.h \
		  account.cpp \
		  object.h \
		  object.cpp \
		  being.h \
		  being.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