root/trunk/src/trinitycore/Makefile.am @ 17

Revision 17, 2.7 kB (checked in by yumileroy, 17 years ago)

[svn] * Restore make dist.

Original author: derex_tri
Date: 2008-10-06 04:27:18-05:00

Line 
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 world list daemon as standalone program
20bin_PROGRAMS = trinity-core
21
22## Preprocessor flags
23trinity_core_CPPFLAGS = \
24$(MYSQL_INCLUDES) \
25$(POSTGRE_INCLUDES) \
26$(TRINI_INCLUDES) \
27-I$(top_srcdir)/dep/include \
28-I$(top_srcdir)/src/shared \
29-I$(top_srcdir)/src/framework \
30-I$(top_srcdir)/src/game \
31-D_TRINITY_CORE_CONFIG='"$(sysconfdir)/trinitycore.conf"'
32
33## Sources
34trinity_core_SOURCES = \
35$(srcdir)/CliRunnable.cpp \
36$(srcdir)/CliRunnable.h \
37$(srcdir)/Main.cpp \
38$(srcdir)/Master.cpp \
39$(srcdir)/Master.h \
40$(srcdir)/RASocket.cpp \
41$(srcdir)/RASocket.h \
42$(srcdir)/WorldRunnable.cpp \
43$(srcdir)/WorldRunnable.h
44
45## Convenience libs to add
46trinity_core_LDADD = \
47$(top_builddir)/src/game/libgame.a \
48$(top_builddir)/src/shared/libshared.a \
49$(top_builddir)/src/shared/vmap/libvmaps.a \
50$(top_builddir)/src/framework/libmangosframework.a \
51$(top_builddir)/dep/src/sockets/libmangossockets.a \
52$(top_builddir)/dep/src/zthread/libZThread.la \
53$(top_builddir)/dep/src/g3dlite/libg3dlite.a
54
55if USE_TSCRIPTS
56trinity_core_LDADD += $(top_builddir)/src/bindings/scripts/libtrinityscript.la
57else
58trinity_core_LDADD += $(top_builddir)/src/bindings/interface/libtrinityscript.la
59endif
60
61## Linker flags
62trinity_core_LDFLAGS = $(MYSQL_LIBS) $(POSTGRE_LIBS) $(ZLIB) $(COMPATLIB) $(SSLLIB) $(TRINI_LIBS) -export-dynamic
63
64## Additional files to install
65sysconf_DATA = \
66        trinitycore.conf.dist
67
68EXTRA_DIST =  \
69        trinitycore.conf.dist
70
71## Prevend overwrite of the config file, if its already installed
72install-data-hook:
73        @list='$(sysconf_DATA)'; for p in $$list; do \
74      dest=`echo $$p | sed -e s/.dist//`; \
75          if test -f $(DESTDIR)$(sysconfdir)/$$dest; then \
76        echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/$$dest"; \
77      else \
78            echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$dest"; \
79            $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$dest; \
80          fi; \
81        done
82
Note: See TracBrowser for help on using the browser.