#
# This file is part of Crossfire TRT, the Roguelike Realtime MORPG.
#
# Copyright (©) 2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
# Copyright (©) 1992,2007 Frank Tore Johansen
# Copyright (©) 2001,2007 Mark Wedel
# Copyright (©) 2007 Marc Alexander Lehmann
#
# Crossfire TRT is free software: you can redistribute it and/or modify
# it under the terms of the 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 GNU General Public License
# along with this program. If not, see .
#
# The authors can be reached via e-mail to
#
bin_PROGRAMS = crossfire
MAINTAINERCLEANFILES = Makefile.in
crossfire_SOURCES = \
alchemy.C\
apply.C\
attack.C\
build_map.C\
c_misc.C\
c_move.C\
c_new.C\
c_object.C\
c_party.C\
c_range.C\
c_wiz.C\
commands.C\
disease.C\
egoitem.C \
hiscore.C\
gods.C\
init.C\
main.C\
monster.C\
move.C\
pets.C\
player.C\
plugins.C\
resurrection.C\
rune.C\
shop.C\
skills.C\
skill_util.C\
spell_attack.C\
spell_effect.C\
spell_util.C\
swamp.C\
swap.C\
time.C\
weather.C\
dynbuf.C\
freezethaw.C\
cfperl.xs plugin_common.C
SUFFIXES = .xs
EXTRA_DIST = typemap genacc
cfperl.C: cfperl.xs genacc typemap
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 ../random_maps/random_map.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 >$@
AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \
-DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \
-DPLUGIN_SUFFIX=\".so\"
LIBDL=
crossfire_LDFLAGS=
crossfire_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 )
# Check if everything is installed as it should
#installcheck-local:
# $(bindir)/crossfire -o