ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/Makefile.am
Revision: 1.37
Committed: Sat Jul 7 17:05:55 2018 UTC (5 years, 10 months ago) by root
Branch: MAIN
Changes since 1.36: +1 -1 lines
Log Message:
found and fixed by Jesse Gibbons <jgibbons2357@gmail.com>

File Contents

# User Rev Content
1 root 1.18 #
2 root 1.20 # This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 root 1.28 #
4 root 1.29 # Copyright (©) 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 root 1.22 # Copyright (©) 2001 Mark Wedel & Crossfire Development Team
6     # Copyright (©) 1992 Frank Tore Johansen
7 root 1.28 #
8 root 1.22 # Deliantra is free software: you can redistribute it and/or modify it under
9     # the terms of the Affero GNU General Public License as published by the
10     # Free Software Foundation, either version 3 of the License, or (at your
11     # option) any later version.
12 root 1.28 #
13 root 1.19 # This program is distributed in the hope that it will be useful,
14     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     # GNU General Public License for more details.
17 root 1.28 #
18 root 1.22 # You should have received a copy of the Affero GNU General Public License
19     # and the GNU General Public License along with this program. If not, see
20     # <http://www.gnu.org/licenses/>.
21 root 1.28 #
22 root 1.20 # The authors can be reached via e-mail to <support@deliantra.net>
23 root 1.18 #
24    
25 root 1.34 pkgstatedir = @pkgstatedir@
26     pkgconfdir = @pkgconfdir@
27     PERL = @PERL@
28    
29 root 1.35 SUBDIRS = lib
30 root 1.1
31 root 1.30 EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \
32     common/README \
33     socket/README \
34     random_maps/Notes \
35 root 1.33 server/typemap server/genacc server/genconst \
36     utils/metaserver.pl.in utils/player_dl.pl.in utils/player_dl.html utils/cfutil.in \
37 root 1.34 doc/historic doc/development \
38 root 1.35 ext/*.pm ext/*.ext \
39     include/event2inc include/genkeywords include/callback.pl
40 root 1.26
41 root 1.30 CLEANFILES = server/const_iv.h server/perlxsi.c
42 root 1.1
43 root 1.35 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile \
44     utils/cfutil utils/Makefile.in \
45     include/keyword.h include/kw_hash.h
46 pippijn 1.3
47 root 1.1 DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man
48    
49 root 1.30 AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \
50     -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \
51     -DPLUGIN_SUFFIX=\".so\"
52    
53     #############################################################################
54    
55 root 1.33 bin_PROGRAMS = server/deliantra-server utils/cfhq2xa
56     nodist_bin_SCRIPTS = utils/cfutil
57 root 1.30
58     #############################################################################
59 root 1.33 # server/, socket/, common/, random_maps/
60 root 1.30
61     server_deliantra_server_LDFLAGS=
62 root 1.36 server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) $(EXTRA_LDADD)
63 root 1.30
64     server_deliantra_server_SOURCES = \
65     socket/image.C \
66     socket/info.C \
67     socket/init.C \
68     socket/item.C \
69     socket/loop.C \
70     socket/lowlevel.C \
71     socket/request.C \
72     socket/sounds.C \
73     \
74     common/anim.C \
75     common/arch.C \
76     common/button.C \
77     common/compat.C \
78     common/exp.C \
79     common/friend.C \
80     common/holy.C \
81     common/image.C \
82     common/init.C \
83     common/item.C \
84     common/links.C \
85     common/living.C \
86     common/loader.C \
87     common/logger.C \
88     common/los.C \
89     common/map.C \
90     common/object.C \
91     common/player.C \
92     common/readable.C \
93     common/recipe.C \
94     common/region.C \
95     common/shstr.C \
96     common/time.C \
97     common/treasure.C \
98     common/utils.C \
99     common/rng.C \
100     common/noise.C \
101     common/material.C \
102     \
103     random_maps/random_map.C \
104     random_maps/room_gen_onion.C \
105     random_maps/room_gen_spiral.C \
106     random_maps/maze_gen.C \
107     random_maps/floor.C \
108     random_maps/wall.C \
109     random_maps/monster.C \
110     random_maps/door.C \
111     random_maps/decor.C \
112     random_maps/exit.C \
113     random_maps/treasure.C \
114     random_maps/special.C \
115     random_maps/rogue_layout.C \
116     random_maps/snake.C \
117     random_maps/square_spiral.C \
118     random_maps/layout.C \
119     \
120     server/alchemy.C \
121     server/apply.C \
122     server/attack.C \
123     server/build_map.C \
124     server/c_misc.C \
125     server/c_move.C \
126     server/c_object.C \
127     server/c_party.C \
128     server/c_range.C \
129     server/c_wiz.C \
130     server/commands.C \
131     server/disease.C \
132     server/egoitem.C \
133     server/gods.C \
134     server/init.C \
135     server/main.C \
136     server/monster.C \
137     server/move.C \
138     server/pets.C \
139     server/player.C \
140     server/resurrection.C \
141     server/rune.C \
142     server/shop.C \
143     server/skills.C \
144     server/skill_util.C \
145     server/spell_attack.C \
146     server/spell_effect.C \
147     server/spell_util.C \
148     server/swamp.C \
149     server/time.C \
150     server/dynbuf.C \
151     server/freezethaw.C \
152     server/quadland.C \
153     server/cfperl.xs \
154     server/evthread.C
155    
156     SUFFIXES = .xs
157    
158 root 1.31 CONST_SRC = $(top_srcdir)/include/define.h $(top_srcdir)/include/spells.h $(top_srcdir)/include/attack.h \
159     $(top_srcdir)/include/skills.h $(top_srcdir)/include/material.h $(top_srcdir)/include/sounds.h \
160     $(top_srcdir)/include/object.h $(top_srcdir)/include/treasure.h $(top_srcdir)/include/client.h \
161     $(top_srcdir)/include/logger.h $(top_srcdir)/include/rmg.h $(top_srcdir)/include/map.h
162 root 1.30
163     server/const_iv.h: server/genconst $(CONST_SRC)
164 root 1.31 $(PERL) $(srcdir)/server/genconst $(CONST_SRC) >$@~ && mv $@~ $@
165 root 1.30
166     server/cfperl.C: server/cfperl.xs server/typemap server/genacc
167     server/cfperl.C: server/const_iv.h
168     server/cfperl.C: include/object.h include/client.h include/player.h
169     server/cfperl.C: include/map.h include/living.h include/global.h
170     server/cfperl.C: include/region.h include/cfperl.h include/rmg.h
171     server/cfperl.C: include/define.h
172    
173     .xs.C: server/typemap
174     cd server || exit 1; \
175     $(PERL) -MExtUtils::Embed -e xsinit -- -std cf; \
176 root 1.31 PERL="$(PERL)" srcdir="$(abs_top_srcdir)/server" \
177     $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp \
178     -C++ -csuffix .C \-typemap @PERLPRIVLIBEXP@/ExtUtils/typemap \
179     -typemap typemap -prototypes \
180     $(abs_top_srcdir)/server/cfperl.xs >cfperl.C~ && mv cfperl.C~ cfperl.C
181 root 1.30
182     #############################################################################
183 root 1.33 # pod/
184 root 1.30
185 root 1.32 poddir=$(pkgdatadir)/pod
186     dist_pod_DATA = pod/command_help.pod pod/dmcommand_help.pod pod/emote_help.pod pod/books.pod pod/generic_help.pod
187    
188     dist_noinst_DATA = pod/events.pod
189    
190     #############################################################################
191 root 1.33 # utils/
192    
193     utils_cfhq2xa_SOURCES = utils/cfhq2xa.C
194    
195     #############################################################################
196     # doc/
197    
198     dist-hook:
199     rm -rf `find $(distdir)/doc -name CVS`
200    
201     #############################################################################
202 root 1.34 # ext/
203    
204     OLDEXT = 00_map_handling.ext cfplus_build.ext clientchk.ext db-scheduler.ext \
205     guildrules.ext map-prefetch.ext schmorp-clientchk.ext schmorp.irc.ext slag_ex.ext
206    
207     PERL = @PERL@
208    
209     install-data-local:
210     @$(NORMAL_INSTALL)
211     $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/ext
212     for i in $(srcdir)/ext/*.pm $(srcdir)/ext/*.ext; do \
213     $(INSTALL_DATA) "$$i" $(DESTDIR)$(pkgdatadir)/ext; \
214     done
215     (cd $(DESTDIR)$(pkgdatadir)/ext/ && rm -f $(OLDEXT))
216    
217     # Uninstall unchanged config/var files so make distcheck is happy
218     # but leave changed file, so no configuration/game state is lost
219     uninstall-local:
220     -cd $(srcdir)/ext && \
221     for i in *.pm *.ext; do \
222     rm -f $(DESTDIR)$(pkgdatadir)/ext/"$$i"; \
223     done
224    
225     #############################################################################
226 root 1.35 # include/
227    
228     noinst_HEADERS = \
229     include/devel.h include/libproto.h include/sounds.h include/attack.h \
230 root 1.37 include/config.h include/living.h include/player.h include/slotinc.h \
231 root 1.35 include/define.h include/race.h include/material.h include/spells.h include/rproto.h \
232     include/face.h include/logger.h include/sproto.h include/region.h include/rmg.h \
233     include/artifact.h include/map.h include/recipe.h include/treasure.h include/noise.h \
234     include/global.h include/client.h include/path.h include/shstr.h include/tod.h \
235     include/god.h include/network.h include/crc.h include/shstrinc.h include/layout.h \
236     include/book.h include/includes.h include/object.h include/skills.h include/sockproto.h \
237     include/cfperl.h include/eventinc.h include/attackinc.h include/compiler.h include/rng.h \
238     include/kw_hash.h include/keyword.h include/traits.h include/dynbuf.h include/util.h \
239     include/skillinc.h include/callback.h include/evthread.h include/freezethaw.h include/quadland.h
240    
241     BUILT_SOURCES = include/eventinc.h include/keyword.h include/kw_hash.h
242    
243     include/eventinc.h: pod/events.pod include/event2inc
244     $(PERL) $(srcdir)/include/event2inc $< >$@
245    
246     include/keyword.h: include/genkeywords
247     $(PERL) $(srcdir)/include/genkeywords GPERF '$(GPERF)'
248    
249     include/kw_hash.h: include/keyword.h
250    
251    
252     #############################################################################
253 root 1.32
254 root 1.21 tags: ctags
255