summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-01 20:58:10 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-01 21:42:50 +0200
commit954ceb91ddd94985594996d6d3c50be7b5652626 (patch)
tree95b9a13368a5c561b380f34df95850276ec205ac /src/Makefile.am
parentba1c188f7a1850761eb7d63fbaaeece6dfb2a256 (diff)
downloadmanaplus-954ceb91ddd94985594996d6d3c50be7b5652626.tar.gz
manaplus-954ceb91ddd94985594996d6d3c50be7b5652626.tar.bz2
manaplus-954ceb91ddd94985594996d6d3c50be7b5652626.tar.xz
manaplus-954ceb91ddd94985594996d6d3c50be7b5652626.zip
Add ability to enable/disable manaserv with embedded enet.
Set manaserv disabled in automake and cmake by default but enabled in build scripts.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am43
1 files changed, 22 insertions, 21 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 29520258b..4ff75d1a0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,26 +6,7 @@ manaplus_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\" \
-DLOCALEDIR=\""$(localedir)"\" \
-Wall
-manaplus_SOURCES = enet/callbacks.c \
- enet/compress.c \
- enet/host.c \
- enet/list.c \
- enet/packet.c \
- enet/peer.c \
- enet/protocol.c \
- enet/unix.c \
- enet/win32.c \
- enet/callbacks.h \
- enet/enet.h \
- enet/list.h \
- enet/protocol.h \
- enet/time.h \
- enet/types.h \
- enet/unix.h \
- enet/utility.h \
- enet/win32.h
-
-manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
+manaplus_SOURCES = gui/widgets/avatarlistbox.cpp \
gui/widgets/avatarlistbox.h \
gui/widgets/battletab.cpp \
gui/widgets/battletab.h \
@@ -482,7 +463,26 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
vector.h \
winver.h
-manaplus_SOURCES += \
+if ENABLE_MANASERV
+manaplus_CXXFLAGS += -DMANASERV_SUPPORT
+manaplus_SOURCES += enet/callbacks.c \
+ enet/compress.c \
+ enet/host.c \
+ enet/list.c \
+ enet/packet.c \
+ enet/peer.c \
+ enet/protocol.c \
+ enet/unix.c \
+ enet/win32.c \
+ enet/callbacks.h \
+ enet/enet.h \
+ enet/list.h \
+ enet/protocol.h \
+ enet/time.h \
+ enet/types.h \
+ enet/unix.h \
+ enet/utility.h \
+ enet/win32.h \
net/manaserv/attributes.cpp \
net/manaserv/attributes.h \
net/manaserv/adminhandler.cpp \
@@ -533,6 +533,7 @@ manaplus_SOURCES += \
net/manaserv/specialhandler.h \
net/manaserv/tradehandler.cpp \
net/manaserv/tradehandler.h
+endif
manaplus_SOURCES += \
net/tmwa/gui/guildtab.cpp \