#
# This file is part of Deliantra, the Roguelike Realtime MMORPG.
#
# Copyright (©) 2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
# Copyright (©) 1992 Frank Tore Johansen
# Copyright (©) 2001 Mark Wedel
# Copyright (©) 2007 Marc Alexander Lehmann
#
# 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
#
bin_PROGRAMS = deliantra-server
MAINTAINERCLEANFILES = Makefile.in
deliantra_server_SOURCES = \
alchemy.C\
apply.C\
attack.C\
build_map.C\
c_misc.C\
c_move.C\
c_object.C\
c_party.C\
c_range.C\
c_wiz.C\
commands.C\
disease.C\
egoitem.C \
gods.C\
init.C\
main.C\
monster.C\
move.C\
pets.C\
player.C\
resurrection.C\
rune.C\
shop.C\
skills.C\
skill_util.C\
spell_attack.C\
spell_effect.C\
spell_util.C\
swamp.C\
time.C\
dynbuf.C\
freezethaw.C\
quadland.C\
cfperl.xs\
evthread.C
SUFFIXES = .xs
EXTRA_DIST = typemap genacc genconst
CLEANFILES = const_iv.h perlxsi.c
CONST_SRC = ../include/define.h ../include/spells.h ../include/attack.h \
../include/skills.h ../include/material.h ../include/sounds.h \
../include/object.h ../include/treasure.h ../include/client.h \
../include/logger.h ../include/rmg.h ../include/map.h
const_iv.h: genconst $(CONST_SRC)
$(PERL) genconst $(CONST_SRC)
cfperl.C: cfperl.xs typemap genacc
cfperl.C: const_iv.h
cfperl.C: ../include/object.h ../include/client.h ../include/player.h
cfperl.C: ../include/map.h ../include/living.h ../include/global.h
cfperl.C: ../include/region.h ../include/cfperl.h ../include/rmg.h
cfperl.C: ../include/define.h
.xs.C: typemap
$(PERL) -MExtUtils::Embed -e xsinit -- -std cf
PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@~ && mv $@~ $@
AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \
-DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \
-DPLUGIN_SUFFIX=\".so\"
LIBDL=
deliantra_server_LDFLAGS=
deliantra_server_LDADD = \
../common/libcross.a \
../random_maps/librandom_map.a \
../socket/libsocket.a $(LIBDL) $(PERLLIB)
../common/libcross.a:
( cd ../common ; $(MAKE) libcross.a )
../random_maps/librandom_map.a:
( cd ../random_maps ; $(MAKE) librandom_map.a )
../socket/libsocket.a:
( cd ../socket ; $(MAKE) libsocket.a )