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