1 | # |
1 | # |
2 | # This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | # This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | # |
3 | # |
4 | # Copyright (©) 2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | # Copyright (©) 2006,2007,2008,2009,2010,2011,2012 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 | # Deliantra 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 | # |
21 | # <http://www.gnu.org/licenses/>. |
|
|
22 | # |
22 | # The authors can be reached via e-mail to <support@deliantra.net> |
23 | # The authors can be reached via e-mail to <support@deliantra.net> |
23 | # |
24 | # |
24 | |
25 | |
25 | bin_PROGRAMS = deliantra-server |
26 | bin_PROGRAMS = deliantra-server |
26 | |
27 | |
… | |
… | |
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\ |
35 | c_move.C\ |
36 | c_move.C\ |
36 | c_new.C\ |
|
|
37 | c_object.C\ |
37 | c_object.C\ |
38 | c_party.C\ |
38 | c_party.C\ |
39 | c_range.C\ |
39 | c_range.C\ |
40 | c_wiz.C\ |
40 | c_wiz.C\ |
41 | commands.C\ |
41 | commands.C\ |
42 | disease.C\ |
42 | disease.C\ |
43 | egoitem.C \ |
43 | egoitem.C \ |
44 | hiscore.C\ |
|
|
45 | gods.C\ |
44 | gods.C\ |
46 | init.C\ |
45 | init.C\ |
47 | main.C\ |
46 | main.C\ |
48 | monster.C\ |
47 | monster.C\ |
49 | move.C\ |
48 | move.C\ |
… | |
… | |
56 | skill_util.C\ |
55 | skill_util.C\ |
57 | spell_attack.C\ |
56 | spell_attack.C\ |
58 | spell_effect.C\ |
57 | spell_effect.C\ |
59 | spell_util.C\ |
58 | spell_util.C\ |
60 | swamp.C\ |
59 | swamp.C\ |
61 | swap.C\ |
|
|
62 | time.C\ |
60 | time.C\ |
63 | weather.C\ |
|
|
64 | dynbuf.C\ |
61 | dynbuf.C\ |
65 | freezethaw.C\ |
62 | freezethaw.C\ |
|
|
63 | quadland.C\ |
66 | cfperl.xs |
64 | cfperl.xs\ |
|
|
65 | evthread.C |
67 | |
66 | |
68 | SUFFIXES = .xs |
67 | SUFFIXES = .xs |
69 | |
68 | |
70 | EXTRA_DIST = typemap genacc |
69 | EXTRA_DIST = typemap genacc genconst |
71 | |
70 | |
|
|
71 | CLEANFILES = const_iv.h perlxsi.c |
|
|
72 | |
|
|
73 | CONST_SRC = ../include/define.h ../include/spells.h ../include/attack.h \ |
|
|
74 | ../include/skills.h ../include/material.h ../include/sounds.h \ |
|
|
75 | ../include/object.h ../include/treasure.h ../include/client.h \ |
|
|
76 | ../include/logger.h ../include/rmg.h ../include/map.h |
|
|
77 | |
|
|
78 | const_iv.h: genconst $(CONST_SRC) |
|
|
79 | $(PERL) genconst $(CONST_SRC) |
|
|
80 | |
72 | cfperl.C: cfperl.xs genacc typemap |
81 | cfperl.C: cfperl.xs typemap genacc |
|
|
82 | cfperl.C: const_iv.h |
73 | cfperl.C: ../include/object.h ../include/client.h ../include/player.h |
83 | cfperl.C: ../include/object.h ../include/client.h ../include/player.h |
74 | cfperl.C: ../include/map.h ../include/living.h ../include/global.h |
84 | cfperl.C: ../include/map.h ../include/living.h ../include/global.h |
75 | cfperl.C: ../include/region.h ../include/cfperl.h ../random_maps/random_map.h |
85 | cfperl.C: ../include/region.h ../include/cfperl.h ../include/rmg.h |
|
|
86 | cfperl.C: ../include/define.h |
76 | |
87 | |
77 | .xs.C: typemap |
88 | .xs.C: typemap |
78 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf |
89 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf |
79 | PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@ |
90 | PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@~ && mv $@~ $@ |
80 | |
91 | |
81 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
92 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
82 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
93 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
83 | -DPLUGIN_SUFFIX=\".so\" |
94 | -DPLUGIN_SUFFIX=\".so\" |
84 | |
95 | |
85 | LIBDL= |
96 | LIBDL= |
86 | deliantra_server_LDFLAGS= |
97 | deliantra_server_LDFLAGS= |
87 | deliantra_server_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \ |
98 | deliantra_server_LDADD = \ |
|
|
99 | ../common/libcross.a \ |
|
|
100 | ../random_maps/librandom_map.a \ |
88 | ../socket/libsocket.a $(LIBDL) $(PERLLIB) |
101 | ../socket/libsocket.a $(LIBDL) $(PERLLIB) |
89 | |
102 | |
90 | ../common/libcross.a: |
103 | ../common/libcross.a: |
91 | ( cd ../common ; $(MAKE) libcross.a ) |
104 | ( cd ../common ; $(MAKE) libcross.a ) |
92 | |
105 | |
93 | ../random_maps/librandom_map.a: |
106 | ../random_maps/librandom_map.a: |