[10134] MaNGOS 0.16 release.
[getmangos.git] / src / realmd / Makefile.am
bloba660351eff269457bd568e3e9e941826f6282a8b
1 # Copyright (C) 2005-2010 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) -DSYSCONFDIR=\"$(sysconfdir)/\"
22 ## Build realm list daemon as standalone program
23 bin_PROGRAMS = mangos-realmd
24 mangos_realmd_SOURCES = \
25         AuthCodes.h \
26         AuthSocket.cpp \
27         AuthSocket.h \
28         BufferedSocket.h \
29         BufferedSocket.cpp \
30         Main.cpp \
31         PatchHandler.h \
32         PatchHandler.cpp \
33         RealmList.cpp \
34         RealmList.h
36 ## Link realm list daemon against the shared library
37 mangos_realmd_LDADD = \
38         ../shared/Database/libmangosdatabase.a \
39         ../shared/Config/libmangosconfig.a \
40         ../shared/Auth/libmangosauth.a \
41         ../shared/libmangosshared.a \
42         ../framework/libmangosframework.a
44 mangos_realmd_LDFLAGS = -L$(libdir) $(MANGOS_LIBS)
46 ## Additional files to include when running 'make dist'
47 #  Include realm list daemon configuration
48 EXTRA_DIST = \
49         realmd.conf.dist
51 ## Additional files to install
52 sysconf_DATA = \
53         realmd.conf.dist
55 install-data-hook:
56         @list='$(sysconf_DATA)'
57         for p in $$list; do \
58                 dest=`echo $$p | sed -e s/.dist//`; \
59                 if test -f $(DESTDIR)$(sysconfdir)/$$dest; then \
60                         echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/$$dest"; \
61                 else \
62                         echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$dest"; \
63                         $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$dest; \
64                 fi; \
65         done
67 clean-local:
68         rm -f $(sysconf_DATA)