… | |
… | |
20 | # <http://www.gnu.org/licenses/>. |
20 | # <http://www.gnu.org/licenses/>. |
21 | # |
21 | # |
22 | # The authors can be reached via e-mail to <support@deliantra.net> |
22 | # The authors can be reached via e-mail to <support@deliantra.net> |
23 | # |
23 | # |
24 | |
24 | |
25 | SUBDIRS = include lib ext utils pod doc |
25 | pkgstatedir = @pkgstatedir@ |
|
|
26 | pkgconfdir = @pkgconfdir@ |
|
|
27 | PERL = @PERL@ |
|
|
28 | |
|
|
29 | SUBDIRS = lib |
26 | |
30 | |
27 | EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \ |
31 | EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \ |
28 | common/README \ |
32 | common/README \ |
29 | socket/README \ |
33 | socket/README \ |
30 | random_maps/Notes \ |
34 | random_maps/Notes \ |
31 | server/typemap server/genacc server/genconst |
35 | server/typemap server/genacc server/genconst \ |
|
|
36 | utils/metaserver.pl.in utils/player_dl.pl.in utils/player_dl.html utils/cfutil.in \ |
|
|
37 | doc/historic doc/development \ |
|
|
38 | ext/*.pm ext/*.ext \ |
|
|
39 | include/event2inc include/genkeywords include/callback.pl |
32 | |
40 | |
33 | CLEANFILES = server/const_iv.h server/perlxsi.c |
41 | CLEANFILES = server/const_iv.h server/perlxsi.c |
34 | |
42 | |
35 | MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile |
43 | MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile \ |
|
|
44 | utils/cfutil utils/Makefile.in \ |
|
|
45 | include/keyword.h include/kw_hash.h |
36 | |
46 | |
37 | DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man |
47 | DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man |
38 | |
48 | |
39 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
49 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
40 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
50 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
41 | -DPLUGIN_SUFFIX=\".so\" |
51 | -DPLUGIN_SUFFIX=\".so\" |
42 | |
52 | |
43 | ############################################################################# |
53 | ############################################################################# |
44 | |
54 | |
45 | bin_PROGRAMS = server/deliantra-server |
55 | bin_PROGRAMS = server/deliantra-server utils/cfhq2xa |
|
|
56 | nodist_bin_SCRIPTS = utils/cfutil |
46 | |
57 | |
47 | ############################################################################# |
58 | ############################################################################# |
|
|
59 | # server/, socket/, common/, random_maps/ |
48 | |
60 | |
49 | server_deliantra_server_LDFLAGS= |
61 | server_deliantra_server_LDFLAGS= |
50 | server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) |
62 | server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) $(EXTRA_LDADD) |
51 | |
63 | |
52 | server_deliantra_server_SOURCES = \ |
64 | server_deliantra_server_SOURCES = \ |
53 | socket/image.C \ |
65 | socket/image.C \ |
54 | socket/info.C \ |
66 | socket/info.C \ |
55 | socket/init.C \ |
67 | socket/init.C \ |
… | |
… | |
141 | server/cfperl.xs \ |
153 | server/cfperl.xs \ |
142 | server/evthread.C |
154 | server/evthread.C |
143 | |
155 | |
144 | SUFFIXES = .xs |
156 | SUFFIXES = .xs |
145 | |
157 | |
146 | CONST_SRC = include/define.h include/spells.h include/attack.h \ |
158 | CONST_SRC = $(top_srcdir)/include/define.h $(top_srcdir)/include/spells.h $(top_srcdir)/include/attack.h \ |
147 | include/skills.h include/material.h include/sounds.h \ |
159 | $(top_srcdir)/include/skills.h $(top_srcdir)/include/material.h $(top_srcdir)/include/sounds.h \ |
148 | include/object.h include/treasure.h include/client.h \ |
160 | $(top_srcdir)/include/object.h $(top_srcdir)/include/treasure.h $(top_srcdir)/include/client.h \ |
149 | include/logger.h include/rmg.h include/map.h |
161 | $(top_srcdir)/include/logger.h $(top_srcdir)/include/rmg.h $(top_srcdir)/include/map.h |
150 | |
162 | |
151 | server/const_iv.h: server/genconst $(CONST_SRC) |
163 | server/const_iv.h: server/genconst $(CONST_SRC) |
152 | $(PERL) server/genconst $(CONST_SRC) >$@~ && mv $@~ $@ |
164 | $(PERL) $(srcdir)/server/genconst $(CONST_SRC) >$@~ && mv $@~ $@ |
153 | |
165 | |
154 | server/cfperl.C: server/cfperl.xs server/typemap server/genacc |
166 | server/cfperl.C: server/cfperl.xs server/typemap server/genacc |
155 | server/cfperl.C: server/const_iv.h |
167 | server/cfperl.C: server/const_iv.h |
156 | server/cfperl.C: include/object.h include/client.h include/player.h |
168 | server/cfperl.C: include/object.h include/client.h include/player.h |
157 | server/cfperl.C: include/map.h include/living.h include/global.h |
169 | server/cfperl.C: include/map.h include/living.h include/global.h |
… | |
… | |
159 | server/cfperl.C: include/define.h |
171 | server/cfperl.C: include/define.h |
160 | |
172 | |
161 | .xs.C: server/typemap |
173 | .xs.C: server/typemap |
162 | cd server || exit 1; \ |
174 | cd server || exit 1; \ |
163 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf; \ |
175 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf; \ |
164 | PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap -prototypes $(abs_top_srcdir)/server/cfperl.xs >cfperl.C~ && mv cfperl.C~ cfperl.C |
176 | 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 | |
|
|
182 | ############################################################################# |
|
|
183 | # pod/ |
|
|
184 | |
|
|
185 | 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 | # 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 | # 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 | # include/ |
|
|
227 | |
|
|
228 | noinst_HEADERS = \ |
|
|
229 | include/devel.h include/libproto.h include/sounds.h include/attack.h \ |
|
|
230 | include/Makefile.in include/config.h include/living.h include/player.h include/slotinc.h \ |
|
|
231 | 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 | |
165 | |
251 | |
166 | ############################################################################# |
252 | ############################################################################# |
167 | |
253 | |
168 | tags: ctags |
254 | tags: ctags |
169 | |
255 | |