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