#
# This file is part of Deliantra, the Roguelike Realtime MMORPG.
#
# Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team
# Copyright (©) 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
# Copyright (©) 2001 Mark Wedel & Crossfire Development Team
# Copyright (©) 1992 Frank Tore Johansen
#
# Deliantra is free software: you can redistribute it and/or modify it under
# the terms of the Affero GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the Affero GNU General Public License
# and the GNU General Public License along with this program. If not, see
# .
#
# The authors can be reached via e-mail to
#
pkgstatedir = @pkgstatedir@
pkgconfdir = @pkgconfdir@
PERL = @PERL@
SUBDIRS = lib
EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \
common/README \
socket/README \
random_maps/Notes \
server/typemap server/genacc server/genconst \
utils/metaserver.pl.in utils/player_dl.pl.in utils/player_dl.html utils/cfutil.in \
doc/historic doc/development \
ext/*.pm ext/*.ext \
include/event2inc include/genkeywords include/callback.pl
CLEANFILES = server/const_iv.h server/perlxsi.c
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile \
utils/cfutil utils/Makefile.in \
include/keyword.h include/kw_hash.h
DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man
AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \
-DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \
-DPLUGIN_SUFFIX=\".so\"
#############################################################################
bin_PROGRAMS = server/deliantra-server utils/cfhq2xa
nodist_bin_SCRIPTS = utils/cfutil
#############################################################################
# server/, socket/, common/, random_maps/
server_deliantra_server_LDFLAGS=
server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) $(EXTRA_LDADD)
server_deliantra_server_SOURCES = \
socket/image.C \
socket/info.C \
socket/init.C \
socket/item.C \
socket/loop.C \
socket/lowlevel.C \
socket/request.C \
socket/sounds.C \
\
common/anim.C \
common/arch.C \
common/button.C \
common/compat.C \
common/exp.C \
common/friend.C \
common/holy.C \
common/image.C \
common/init.C \
common/item.C \
common/links.C \
common/living.C \
common/loader.C \
common/logger.C \
common/los.C \
common/map.C \
common/object.C \
common/player.C \
common/readable.C \
common/recipe.C \
common/region.C \
common/shstr.C \
common/time.C \
common/treasure.C \
common/utils.C \
common/rng.C \
common/noise.C \
common/material.C \
\
random_maps/random_map.C \
random_maps/room_gen_onion.C \
random_maps/room_gen_spiral.C \
random_maps/maze_gen.C \
random_maps/floor.C \
random_maps/wall.C \
random_maps/monster.C \
random_maps/door.C \
random_maps/decor.C \
random_maps/exit.C \
random_maps/treasure.C \
random_maps/special.C \
random_maps/rogue_layout.C \
random_maps/snake.C \
random_maps/square_spiral.C \
random_maps/layout.C \
\
server/alchemy.C \
server/apply.C \
server/attack.C \
server/build_map.C \
server/c_misc.C \
server/c_move.C \
server/c_object.C \
server/c_party.C \
server/c_range.C \
server/c_wiz.C \
server/commands.C \
server/disease.C \
server/egoitem.C \
server/gods.C \
server/init.C \
server/main.C \
server/monster.C \
server/move.C \
server/pets.C \
server/player.C \
server/resurrection.C \
server/rune.C \
server/shop.C \
server/skills.C \
server/skill_util.C \
server/spell_attack.C \
server/spell_effect.C \
server/spell_util.C \
server/swamp.C \
server/time.C \
server/dynbuf.C \
server/freezethaw.C \
server/quadland.C \
server/cfperl.xs \
server/evthread.C
SUFFIXES = .xs
CONST_SRC = $(top_srcdir)/include/define.h $(top_srcdir)/include/spells.h $(top_srcdir)/include/attack.h \
$(top_srcdir)/include/skills.h $(top_srcdir)/include/material.h $(top_srcdir)/include/sounds.h \
$(top_srcdir)/include/object.h $(top_srcdir)/include/treasure.h $(top_srcdir)/include/client.h \
$(top_srcdir)/include/logger.h $(top_srcdir)/include/rmg.h $(top_srcdir)/include/map.h
server/const_iv.h: server/genconst $(CONST_SRC)
$(PERL) $(srcdir)/server/genconst $(CONST_SRC) >$@~ && mv $@~ $@
server/cfperl.C: server/cfperl.xs server/typemap server/genacc
server/cfperl.C: server/const_iv.h
server/cfperl.C: include/object.h include/client.h include/player.h
server/cfperl.C: include/map.h include/living.h include/global.h
server/cfperl.C: include/region.h include/cfperl.h include/rmg.h
server/cfperl.C: include/define.h
.xs.C: server/typemap
cd server || exit 1; \
$(PERL) -MExtUtils::Embed -e xsinit -- -std cf; \
PERL="$(PERL)" srcdir="$(abs_top_srcdir)/server" \
$(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
#############################################################################
# pod/
poddir=$(pkgdatadir)/pod
dist_pod_DATA = pod/command_help.pod pod/dmcommand_help.pod pod/emote_help.pod pod/books.pod pod/generic_help.pod
dist_noinst_DATA = pod/events.pod
#############################################################################
# utils/
utils_cfhq2xa_SOURCES = utils/cfhq2xa.C
#############################################################################
# doc/
dist-hook:
rm -rf `find $(distdir)/doc -name CVS`
#############################################################################
# ext/
OLDEXT = 00_map_handling.ext cfplus_build.ext clientchk.ext db-scheduler.ext \
guildrules.ext map-prefetch.ext schmorp-clientchk.ext schmorp.irc.ext slag_ex.ext
PERL = @PERL@
install-data-local:
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/ext
for i in $(srcdir)/ext/*.pm $(srcdir)/ext/*.ext; do \
$(INSTALL_DATA) "$$i" $(DESTDIR)$(pkgdatadir)/ext; \
done
(cd $(DESTDIR)$(pkgdatadir)/ext/ && rm -f $(OLDEXT))
# Uninstall unchanged config/var files so make distcheck is happy
# but leave changed file, so no configuration/game state is lost
uninstall-local:
-cd $(srcdir)/ext && \
for i in *.pm *.ext; do \
rm -f $(DESTDIR)$(pkgdatadir)/ext/"$$i"; \
done
#############################################################################
# include/
noinst_HEADERS = \
include/devel.h include/libproto.h include/sounds.h include/attack.h \
include/config.h include/living.h include/player.h include/slotinc.h \
include/define.h include/race.h include/material.h include/spells.h include/rproto.h \
include/face.h include/logger.h include/sproto.h include/region.h include/rmg.h \
include/artifact.h include/map.h include/recipe.h include/treasure.h include/noise.h \
include/global.h include/client.h include/path.h include/shstr.h include/tod.h \
include/god.h include/network.h include/crc.h include/shstrinc.h include/layout.h \
include/book.h include/includes.h include/object.h include/skills.h include/sockproto.h \
include/cfperl.h include/eventinc.h include/attackinc.h include/compiler.h include/rng.h \
include/kw_hash.h include/keyword.h include/traits.h include/dynbuf.h include/util.h \
include/skillinc.h include/callback.h include/evthread.h include/freezethaw.h include/quadland.h
BUILT_SOURCES = include/eventinc.h include/keyword.h include/kw_hash.h
include/eventinc.h: pod/events.pod include/event2inc
$(PERL) $(srcdir)/include/event2inc $< >$@
include/keyword.h: include/genkeywords
$(PERL) $(srcdir)/include/genkeywords GPERF '$(GPERF)'
include/kw_hash.h: include/keyword.h
#############################################################################
tags: ctags