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.2 by pippijn, Sun Jul 2 15:05:17 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.
27bin_PROGRAMS = crossfire 22bin_PROGRAMS = crossfire
28 23
29MAINTAINERCLEANFILES = Makefile.in 24MAINTAINERCLEANFILES = Makefile.in
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\
43 c_range.c\ 36 c_range.C\
44 c_wiz.c\ 37 c_wiz.C\
45 commands.c\ 38 commands.C\
46 daemon.c\ 39 daemon.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\
58 plugins.c\ 50 plugins.C\
59 resurrection.c\ 51 resurrection.C\
60 rune.c\ 52 rune.C\
61 shop.c\ 53 shop.C\
62 skills.c\ 54 skills.C\
63 skill_util.c\ 55 skill_util.C\
64 spell_attack.c\ 56 spell_attack.C\
65 spell_effect.c\ 57 spell_effect.C\
66 spell_util.c\ 58 spell_util.C\
67 swamp.c\ 59 swamp.C\
68 swap.c\ 60 swap.C\
69 time.c\ 61 time.C\
70 timers.c\
71 weather.c 62 weather.C\
63 dynbuf.C\
64 freezethaw.C\
65 cfperl.xs plugin_common.C
66
67SUFFIXES = .xs
68
69EXTRA_DIST = typemap genacc
70
71cfperl.C: cfperl.xs genacc typemap
72cfperl.C: ../include/object.h ../include/client.h ../include/player.h
73cfperl.C: ../include/map.h ../include/living.h ../include/global.h
74cfperl.C: ../include/region.h ../random_maps/random_map.h
75
76.xs.C: typemap
77 $(PERL) -MExtUtils::Embed -e xsinit -- -std cf
78 PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@
72 79
73AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ 80AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \
74 -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ 81 -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \
75 -DPLUGIN_SUFFIX=\".so\" 82 -DPLUGIN_SUFFIX=\".so\"
76 83
77if HAVE_LIBDL
78LIBDL=-ldl
79crossfire_LDFLAGS=-export-dynamic
80else
81LIBDL= 84LIBDL=
82crossfire_LDFLAGS= 85crossfire_LDFLAGS=
83endif
84crossfire_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \ 86crossfire_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \
85 ../socket/libsocket.a $(LIBDL) 87 ../socket/libsocket.a $(LIBDL) $(PERLLIB)
86 88
87../common/libcross.a: 89../common/libcross.a:
88 ( cd ../common ; make libcross.a ) 90 ( cd ../common ; $(MAKE) libcross.a )
89 91
90../random_maps/librandom_map.a: 92../random_maps/librandom_map.a:
91 ( cd ../random_maps ; make librandom_map.a ) 93 ( cd ../random_maps ; $(MAKE) librandom_map.a )
92 94
93../socket/libsocket.a: 95../socket/libsocket.a:
94 ( cd ../socket ; make libsocket.a ) 96 ( cd ../socket ; $(MAKE) libsocket.a )
95 97
96# Check if everything is installed as it should 98# Check if everything is installed as it should
97installcheck-local: 99#installcheck-local:
98 $(bindir)/crossfire -o 100# $(bindir)/crossfire -o
99 101
100proto:
101 cproto -D__CEXTRACT__ -o ../include/sproto.h $(CPPFLAGS) $(AM_CPPFLAGS) \
102 `echo $(SOURCES) " " | $(AWK) -v RS=" " '/.c$$/ { print }'`
103 chmod 644 ../include/sproto.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines