ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/Makefile.am
(Generate patch)

Comparing deliantra/server/Makefile.am (file contents):
Revision 1.30 by root, Thu Nov 17 23:28:04 2016 UTC vs.
Revision 1.36 by root, Sat Sep 16 22:45:22 2017 UTC

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
25SUBDIRS = include lib ext utils pod doc 25pkgstatedir = @pkgstatedir@
26pkgconfdir = @pkgconfdir@
27PERL = @PERL@
28
29SUBDIRS = lib
26 30
27EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \ 31EXTRA_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
33CLEANFILES = server/const_iv.h server/perlxsi.c 41CLEANFILES = server/const_iv.h server/perlxsi.c
34 42
35MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile 43MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile \
44 utils/cfutil utils/Makefile.in \
45 include/keyword.h include/kw_hash.h
36 46
37DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man 47DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man
38 48
39AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ 49AM_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
45bin_PROGRAMS = server/deliantra-server 55bin_PROGRAMS = server/deliantra-server utils/cfhq2xa
56nodist_bin_SCRIPTS = utils/cfutil
46 57
47############################################################################# 58#############################################################################
59# server/, socket/, common/, random_maps/
48 60
49server_deliantra_server_LDFLAGS= 61server_deliantra_server_LDFLAGS=
50server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) 62server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) $(EXTRA_LDADD)
51 63
52server_deliantra_server_SOURCES = \ 64server_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
144SUFFIXES = .xs 156SUFFIXES = .xs
145 157
146CONST_SRC = include/define.h include/spells.h include/attack.h \ 158CONST_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
151server/const_iv.h: server/genconst $(CONST_SRC) 163server/const_iv.h: server/genconst $(CONST_SRC)
152 $(PERL) server/genconst $(CONST_SRC) >$@~ && mv $@~ $@ 164 $(PERL) $(srcdir)/server/genconst $(CONST_SRC) >$@~ && mv $@~ $@
153 165
154server/cfperl.C: server/cfperl.xs server/typemap server/genacc 166server/cfperl.C: server/cfperl.xs server/typemap server/genacc
155server/cfperl.C: server/const_iv.h 167server/cfperl.C: server/const_iv.h
156server/cfperl.C: include/object.h include/client.h include/player.h 168server/cfperl.C: include/object.h include/client.h include/player.h
157server/cfperl.C: include/map.h include/living.h include/global.h 169server/cfperl.C: include/map.h include/living.h include/global.h
159server/cfperl.C: include/define.h 171server/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
185poddir=$(pkgdatadir)/pod
186dist_pod_DATA = pod/command_help.pod pod/dmcommand_help.pod pod/emote_help.pod pod/books.pod pod/generic_help.pod
187
188dist_noinst_DATA = pod/events.pod
189
190#############################################################################
191# utils/
192
193utils_cfhq2xa_SOURCES = utils/cfhq2xa.C
194
195#############################################################################
196# doc/
197
198dist-hook:
199 rm -rf `find $(distdir)/doc -name CVS`
200
201#############################################################################
202# ext/
203
204OLDEXT = 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
207PERL = @PERL@
208
209install-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
219uninstall-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
228noinst_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
241BUILT_SOURCES = include/eventinc.h include/keyword.h include/kw_hash.h
242
243include/eventinc.h: pod/events.pod include/event2inc
244 $(PERL) $(srcdir)/include/event2inc $< >$@
245
246include/keyword.h: include/genkeywords
247 $(PERL) $(srcdir)/include/genkeywords GPERF '$(GPERF)'
248
249include/kw_hash.h: include/keyword.h
250
165 251
166############################################################################# 252#############################################################################
167 253
168tags: ctags 254tags: ctags
169 255

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines