summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 6ffe719c40b7b26989e652f20ef484b75cc4427e (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
bin_PROGRAMS = tmwserv
tmwserv_SOURCES = main.cpp \
		  accounthandler.h \
		  accounthandler.cpp \
		  connectionhandler.h \
		  connectionhandler.cpp \
		  debug.h \
		  debug.cpp \
		  defines.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 \
		  log.h \
		  log.cpp \
		  skill.h \
		  skill.cpp \
		  script.h \
		  script.cpp \
		  script-squirrel.h \
		  script-squirrel.cpp \
		  storage.cpp storage.h \
		  account.h \
		  account.cpp \
		  object.h \
		  object.cpp


if BUILD_SQLITE
tmwserv_SOURCES += sqlite/SQLiteWrapper.cpp \
	           sqlite/SQLiteWrapper.h \
		   sqlitestorage.cpp \
		   sqlitestorage.h
endif

# set the include path found by configure
INCLUDES= $(all_includes) $(SQLITE_CFLAGS)
LIBS = $(SQLITE_LIBS)

# the library search path.
tmwserv_LDFLAGS = $(all_libraries) -lSDL_net `sdl-config --libs` `pkg-config --libs libxml-2.0` -lphysfs
tmwserv_CXXFLAGS = -g -Wall `sdl-config --cflags` `pkg-config --cflags libxml-2.0` -fno-inline $(SCRIPT_CFLAGS)
#tmwserv_LDADD = $(LIBSDL_LIBS) -lphysfs
tmwserv_LDADD = $(SCRIPT_LIBS)
tmwserv_TARGET = ../tmwserv