ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/Makefile.am
(Generate patch)

Comparing deliantra/server/server/Makefile.am (file contents):
Revision 1.15 by root, Wed Dec 13 02:55:51 2006 UTC vs.
Revision 1.26 by root, Thu Apr 19 16:23:48 2007 UTC

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 1# Copyright (C) 1992 Frank Tore Johansen
8# Copyright (C) 2001 Mark Wedel 2# Copyright (C) 2001 Mark Wedel
3# Copyright (C) 2007 Marc Alexander Lehmann
9# 4#
10# This program is free software; you can redistribute it and/or modify 5# 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 6# 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 7# the Free Software Foundation; either version 2 of the License, or
13# (at your option) any later version. 8# (at your option) any later version.
30 25
31crossfire_SOURCES = \ 26crossfire_SOURCES = \
32 alchemy.C\ 27 alchemy.C\
33 apply.C\ 28 apply.C\
34 attack.C\ 29 attack.C\
35 ban.C\
36 build_map.C\ 30 build_map.C\
37 c_chat.C\
38 c_misc.C\ 31 c_misc.C\
39 c_move.C\ 32 c_move.C\
40 c_new.C\ 33 c_new.C\
41 c_object.C\ 34 c_object.C\
42 c_party.C\ 35 c_party.C\
47 disease.C\ 40 disease.C\
48 egoitem.C \ 41 egoitem.C \
49 hiscore.C\ 42 hiscore.C\
50 gods.C\ 43 gods.C\
51 init.C\ 44 init.C\
52 login.C\
53 main.C\ 45 main.C\
54 monster.C\ 46 monster.C\
55 move.C\ 47 move.C\
56 pets.C\ 48 pets.C\
57 player.C\ 49 player.C\
67 swamp.C\ 59 swamp.C\
68 swap.C\ 60 swap.C\
69 time.C\ 61 time.C\
70 weather.C\ 62 weather.C\
71 dynbuf.C\ 63 dynbuf.C\
72 cfperl.xs ../plugins/common/plugin_common.C 64 freezethaw.C\
65 cfperl.xs plugin_common.C
73 66
74SUFFIXES = .xs 67SUFFIXES = .xs
75 68
76EXTRA_DIST = typemap 69EXTRA_DIST = typemap genacc
77 70
78cfperl.C: cfperl.xs genacc 71cfperl.C: cfperl.xs genacc typemap
79cfperl.C: ../include/object.h ../include/newserver.h ../include/player.h 72cfperl.C: ../include/object.h ../include/client.h ../include/player.h
80cfperl.C: ../include/map.h ../include/living.h ../include/global.h 73cfperl.C: ../include/map.h ../include/living.h ../include/global.h
74cfperl.C: ../include/region.h ../random_maps/random_map.h
81 75
82.xs.C: typemap 76.xs.C: typemap
83 $(PERL) -MExtUtils::Embed -e xsinit -- -std cf 77 $(PERL) -MExtUtils::Embed -e xsinit -- -std cf
84 PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap -prototypes cfperl.xs >$@ 78 PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@
85 79
86AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ 80AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \
87 -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ 81 -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \
88 -DPLUGIN_SUFFIX=\".so\" \ 82 -DPLUGIN_SUFFIX=\".so\"
89 -I$(top_srcdir)/plugins/common/include
90 83
91LIBDL= 84LIBDL=
92crossfire_LDFLAGS= 85crossfire_LDFLAGS=
93crossfire_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \ 86crossfire_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \
94 ../socket/libsocket.a $(LIBDL) $(PERLLIB) 87 ../socket/libsocket.a $(LIBDL) $(PERLLIB)
95 88
96../common/libcross.a: 89../common/libcross.a:
97 ( cd ../common ; make libcross.a ) 90 ( cd ../common ; $(MAKE) libcross.a )
98 91
99../random_maps/librandom_map.a: 92../random_maps/librandom_map.a:
100 ( cd ../random_maps ; make librandom_map.a ) 93 ( cd ../random_maps ; $(MAKE) librandom_map.a )
101 94
102../socket/libsocket.a: 95../socket/libsocket.a:
103 ( cd ../socket ; make libsocket.a ) 96 ( cd ../socket ; $(MAKE) libsocket.a )
104 97
105# Check if everything is installed as it should 98# Check if everything is installed as it should
106installcheck-local: 99#installcheck-local:
107 $(bindir)/crossfire -o 100# $(bindir)/crossfire -o
108 101
109proto:
110 cproto -D__CEXTRACT__ -o ../include/sproto.h $(CPPFLAGS) $(AM_CPPFLAGS) \
111 `echo $(SOURCES) " " | $(AWK) -v RS=" " '/.C$$/ { print }'`
112 chmod 644 ../include/sproto.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines