* Fixed build on linux
[getmangos.git] / src / mangosd / Makefile.am
blobf876d08f42f79b50df4449155e622e468707cc90
1 # Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17 ## Process this file with automake to produce Makefile.in
19 ## CPP flags for includes, defines, etc.
20 AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared  -I$(srcdir)/../game -I$(srcdir)
22 ## Build world list daemon as standalone program
23 bin_PROGRAMS = mangos-worldd
24 mangos_worldd_SOURCES = \
25     CliRunnable.cpp \
26     CliRunnable.h \
27     Main.cpp \
28     Master.cpp \
29     Master.h \
30     RASocket.cpp \
31     RASocket.h \
32     WorldRunnable.cpp \
33     WorldRunnable.h
35 ## Link world daemon against the shared library
36 mangos_worldd_LDADD = ../bindings/universal/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a  ../../dep/src/zthread/libZThread.la ../../dep/src/g3dlite/libg3dlite.a
37 mangos_worldd_LDFLAGS = -L../../dep/src/sockets -L../../dep/src/zthread -L../../dep/src/g3dlite -L../bindings/universal/ -L$(libdir) $(MANGOS_LIBS) -export-dynamic
39 ## Additional files to include when running 'make dist'
40 #  Include world daemon configuration
41 EXTRA_DIST = \
42     mangosd.conf.dist
44 ## Additional files to install
45 sysconf_DATA = \
46     mangosd.conf.dist
48 install-data-hook:
49         @list='$(sysconf_DATA)'; for p in $$list; do \
50       dest=`echo $$p | sed -e s/.dist//`; \
51       if test -f $(DESTDIR)$(sysconfdir)/$$dest; then \
52         echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/$$dest"; \
53       else \
54         echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$dest"; \
55         $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$dest; \
56       fi; \
57     done
59 clean-local:
60         rm -f $(sysconf_DATA)