1 |
# |
2 |
# This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game. |
3 |
# |
4 |
# Copyright (©) 2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team |
5 |
# Copyright (©) 1992,2007 Frank Tore Johansen |
6 |
# Copyright (©) 2001,2007 Mark Wedel |
7 |
# Copyright (©) 2007 Marc Alexander Lehmann |
8 |
# |
9 |
# Crossfire TRT is free software; you can redistribute it and/or modify it |
10 |
# under the terms of the GNU General Public License as published by the Free |
11 |
# Software Foundation; either version 2 of the License, or (at your option) |
12 |
# any later version. |
13 |
# |
14 |
# This program is distributed in the hope that it will be useful, but |
15 |
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
16 |
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
17 |
# for more details. |
18 |
# |
19 |
# You should have received a copy of the GNU General Public License along |
20 |
# with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51 |
21 |
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
22 |
# |
23 |
# The authors can be reached via e-mail to <crossfire@schmorp.de> |
24 |
# |
25 |
|
26 |
bin_PROGRAMS = crossfire |
27 |
|
28 |
MAINTAINERCLEANFILES = Makefile.in |
29 |
|
30 |
crossfire_SOURCES = \ |
31 |
alchemy.C\ |
32 |
apply.C\ |
33 |
attack.C\ |
34 |
build_map.C\ |
35 |
c_misc.C\ |
36 |
c_move.C\ |
37 |
c_new.C\ |
38 |
c_object.C\ |
39 |
c_party.C\ |
40 |
c_range.C\ |
41 |
c_wiz.C\ |
42 |
commands.C\ |
43 |
disease.C\ |
44 |
egoitem.C \ |
45 |
hiscore.C\ |
46 |
gods.C\ |
47 |
init.C\ |
48 |
main.C\ |
49 |
monster.C\ |
50 |
move.C\ |
51 |
pets.C\ |
52 |
player.C\ |
53 |
plugins.C\ |
54 |
resurrection.C\ |
55 |
rune.C\ |
56 |
shop.C\ |
57 |
skills.C\ |
58 |
skill_util.C\ |
59 |
spell_attack.C\ |
60 |
spell_effect.C\ |
61 |
spell_util.C\ |
62 |
swamp.C\ |
63 |
swap.C\ |
64 |
time.C\ |
65 |
weather.C\ |
66 |
dynbuf.C\ |
67 |
freezethaw.C\ |
68 |
cfperl.xs plugin_common.C |
69 |
|
70 |
SUFFIXES = .xs |
71 |
|
72 |
EXTRA_DIST = typemap genacc |
73 |
|
74 |
cfperl.C: cfperl.xs genacc typemap |
75 |
cfperl.C: ../include/object.h ../include/client.h ../include/player.h |
76 |
cfperl.C: ../include/map.h ../include/living.h ../include/global.h |
77 |
cfperl.C: ../include/region.h ../random_maps/random_map.h |
78 |
|
79 |
.xs.C: typemap |
80 |
$(PERL) -MExtUtils::Embed -e xsinit -- -std cf |
81 |
PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@ |
82 |
|
83 |
AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
84 |
-DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
85 |
-DPLUGIN_SUFFIX=\".so\" |
86 |
|
87 |
LIBDL= |
88 |
crossfire_LDFLAGS= |
89 |
crossfire_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \ |
90 |
../socket/libsocket.a $(LIBDL) $(PERLLIB) |
91 |
|
92 |
../common/libcross.a: |
93 |
( cd ../common ; $(MAKE) libcross.a ) |
94 |
|
95 |
../random_maps/librandom_map.a: |
96 |
( cd ../random_maps ; $(MAKE) librandom_map.a ) |
97 |
|
98 |
../socket/libsocket.a: |
99 |
( cd ../socket ; $(MAKE) libsocket.a ) |
100 |
|
101 |
# Check if everything is installed as it should |
102 |
#installcheck-local: |
103 |
# $(bindir)/crossfire -o |
104 |
|