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


bin_PROGRAMS = tmwserv

tmwserv_SOURCES = main.cpp \
				  configuration.h \
				  configuration.cpp \
				  accounthandler.h \
				  accounthandler.cpp \
				  chathandler.h \
				  chathandler.cpp \
				  connectionhandler.h \
				  connectionhandler.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 \
				  messagehandler.h \
				  messagehandler.cpp \
				  messagein.h \
				  messagein.cpp \
				  messageout.h \
				  messageout.cpp \
				  netcomputer.h \
				  netcomputer.cpp \
				  netsession.h \
				  netsession.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/slangsfilter.h \
				  utils/slangsfilter.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

tmwserv_CXXFLAGS = -Wall -fno-inline


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