# Copyright (C) 1992 Frank Tore Johansen # Copyright (C) 2001 Mark Wedel # Copyright (C) 2007 Marc Alexander Lehmann # # This program 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 2 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, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # The author can be reached via e-mail to mwedel@scruz.net bin_PROGRAMS = crossfire MAINTAINERCLEANFILES = Makefile.in crossfire_SOURCES = \ alchemy.C\ apply.C\ attack.C\ ban.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\ daemon.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: ../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