ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/Makefile.am
Revision: 1.23
Committed: Mon Mar 5 20:07:04 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.22: +6 -12 lines
Log Message:
more cleanups for dist

File Contents

# Content
1 # Copyright (C) 1992 Frank Tore Johansen
2 # Copyright (C) 2001 Mark Wedel
3 # Copyright (C) 2007 Marc Alexander Lehmann
4 #
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 MAINTAINERCLEANFILES = Makefile.in
25
26 crossfire_SOURCES = \
27 alchemy.C\
28 apply.C\
29 attack.C\
30 ban.C\
31 build_map.C\
32 c_misc.C\
33 c_move.C\
34 c_new.C\
35 c_object.C\
36 c_party.C\
37 c_range.C\
38 c_wiz.C\
39 commands.C\
40 daemon.C\
41 disease.C\
42 egoitem.C \
43 hiscore.C\
44 gods.C\
45 init.C\
46 main.C\
47 monster.C\
48 move.C\
49 pets.C\
50 player.C\
51 plugins.C\
52 resurrection.C\
53 rune.C\
54 shop.C\
55 skills.C\
56 skill_util.C\
57 spell_attack.C\
58 spell_effect.C\
59 spell_util.C\
60 swamp.C\
61 swap.C\
62 time.C\
63 weather.C\
64 dynbuf.C\
65 freezethaw.C\
66 cfperl.xs plugin_common.C
67
68 SUFFIXES = .xs
69
70 EXTRA_DIST = typemap genacc
71
72 cfperl.C: cfperl.xs genacc typemap
73 cfperl.C: ../include/object.h ../include/client.h ../include/player.h
74 cfperl.C: ../include/map.h ../include/living.h ../include/global.h
75 cfperl.C: ../random_maps/random_map.h
76
77 .xs.C: typemap
78 $(PERL) -MExtUtils::Embed -e xsinit -- -std cf
79 PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@
80
81 AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \
82 -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \
83 -DPLUGIN_SUFFIX=\".so\"
84
85 LIBDL=
86 crossfire_LDFLAGS=
87 crossfire_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \
88 ../socket/libsocket.a $(LIBDL) $(PERLLIB)
89
90 ../common/libcross.a:
91 ( cd ../common ; $(MAKE) libcross.a )
92
93 ../random_maps/librandom_map.a:
94 ( cd ../random_maps ; $(MAKE) librandom_map.a )
95
96 ../socket/libsocket.a:
97 ( cd ../socket ; $(MAKE) libsocket.a )
98
99 # Check if everything is installed as it should
100 installcheck-local:
101 $(bindir)/crossfire -o
102