[2] | 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 | -I$(top_srcdir)/dep/include \ |
---|
| 27 | -I$(top_srcdir)/src/framework \ |
---|
| 28 | -I$(top_srcdir)/src/shared \ |
---|
| 29 | -D_TRINITY_REALM_CONFIG='"$(sysconfdir)/trinityrealm.conf"' |
---|
| 30 | |
---|
| 31 | ## Sources |
---|
| 32 | trinity_realm_SOURCES = \ |
---|
| 33 | $(srcdir)/AuthCodes.h \ |
---|
| 34 | $(srcdir)/AuthSocket.cpp \ |
---|
| 35 | $(srcdir)/AuthSocket.h \ |
---|
| 36 | $(srcdir)/Main.cpp \ |
---|
| 37 | $(srcdir)/RealmList.cpp \ |
---|
| 38 | $(srcdir)/RealmList.h |
---|
| 39 | |
---|
| 40 | ## Convenience libs to add |
---|
| 41 | trinity_realm_LDADD = \ |
---|
| 42 | $(top_builddir)/src/shared/libshared.a \ |
---|
| 43 | $(top_builddir)/src/framework/libmangosframework.a \ |
---|
| 44 | $(top_builddir)/dep/src/sockets/libmangossockets.a \ |
---|
| 45 | $(top_builddir)/dep/src/zthread/libZThread.la |
---|
| 46 | |
---|
| 47 | ## Linker flags |
---|
[8] | 48 | trinity_realm_LDFLAGS = $(MYSQL_LIBS) $(POSTGRE_LIBS) $(ZLIB) $(COMPATLIB) $(SSLLIB) $(ACE_LIBS) |
---|
[2] | 49 | |
---|
| 50 | ## Additional files to install |
---|
| 51 | sysconf_DATA = \ |
---|
| 52 | trinityrealm.conf.dist |
---|
| 53 | |
---|
| 54 | ## Prevend overwrite of the config file, if its already installed |
---|
| 55 | install-data-hook: |
---|
| 56 | @list='$(sysconf_DATA)'; for p in $$list; do \ |
---|
| 57 | dest=`echo $$p | sed -e s/.dist//`; \ |
---|
| 58 | if test -f $(DESTDIR)$(sysconfdir)/$$dest; then \ |
---|
| 59 | echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/$$dest"; \ |
---|
| 60 | else \ |
---|
| 61 | echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$dest"; \ |
---|
| 62 | $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$dest; \ |
---|
| 63 | fi; \ |
---|
| 64 | done |
---|
| 65 | |
---|
| 66 | ## Additional files to include when running 'make dist' |
---|
| 67 | # Include realm list daemon configuration |
---|
| 68 | # EXTRA_DIST = |
---|
| 69 | |
---|