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