1 | # Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> |
---|
2 | # |
---|
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. |
---|
7 | # |
---|
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. |
---|
12 | # |
---|
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 |
---|
16 | |
---|
17 | ## Process this file with automake to produce Makefile.in |
---|
18 | |
---|
19 | ## Build realm list daemon as standalone program |
---|
20 | bin_PROGRAMS = trinity-realm |
---|
21 | |
---|
22 | ## Preprocessor flags |
---|
23 | trinity_realm_CPPFLAGS = \ |
---|
24 | $(MYSQL_INCLUDES) \ |
---|
25 | $(POSTGRE_INCLUDES) \ |
---|
26 | $(TRINI_INCLUDES) \ |
---|
27 | -I$(top_srcdir)/dep/include \ |
---|
28 | -I$(top_srcdir)/src/framework \ |
---|
29 | -I$(top_srcdir)/src/shared \ |
---|
30 | -D_TRINITY_REALM_CONFIG='"$(sysconfdir)/trinityrealm.conf"' |
---|
31 | |
---|
32 | ## Sources |
---|
33 | trinity_realm_SOURCES = \ |
---|
34 | $(srcdir)/AuthCodes.h \ |
---|
35 | $(srcdir)/AuthSocket.cpp \ |
---|
36 | $(srcdir)/AuthSocket.h \ |
---|
37 | $(srcdir)/Main.cpp \ |
---|
38 | $(srcdir)/RealmList.cpp \ |
---|
39 | $(srcdir)/RealmList.h |
---|
40 | |
---|
41 | ## Convenience libs to add |
---|
42 | trinity_realm_LDADD = \ |
---|
43 | $(top_builddir)/src/shared/libshared.a \ |
---|
44 | $(top_builddir)/src/framework/libmangosframework.a \ |
---|
45 | $(top_builddir)/dep/src/sockets/libmangossockets.a \ |
---|
46 | $(top_builddir)/dep/src/zthread/libZThread.la |
---|
47 | |
---|
48 | ## Linker flags |
---|
49 | trinity_realm_LDFLAGS = $(MYSQL_LIBS) $(POSTGRE_LIBS) $(ZLIB) $(COMPATLIB) $(SSLLIB) $(TRINI_LIBS) |
---|
50 | |
---|
51 | ## Additional files to install |
---|
52 | sysconf_DATA = \ |
---|
53 | trinityrealm.conf.dist |
---|
54 | |
---|
55 | ## Prevend overwrite of the config file, if its already installed |
---|
56 | install-data-hook: |
---|
57 | @list='$(sysconf_DATA)'; 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) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$dest"; \ |
---|
63 | $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$dest; \ |
---|
64 | fi; \ |
---|
65 | done |
---|
66 | |
---|
67 | ## Additional files to include when running 'make dist' |
---|
68 | EXTRA_DIST = trinityrealm.conf.dist |
---|
69 | |
---|