ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/Makefile.am
Revision: 1.40
Committed: Wed Dec 5 21:46:55 2018 UTC (5 years, 4 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.39: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

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