ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/Makefile.am
Revision: 1.14
Committed: Mon Dec 11 18:59:18 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.13: +3 -1 lines
Log Message:
hopefully fix dependencies

File Contents

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