1 |
# |
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> |
23 |
# |
24 |
|
25 |
bin_PROGRAMS = deliantra-server |
26 |
|
27 |
MAINTAINERCLEANFILES = Makefile.in |
28 |
|
29 |
deliantra_server_SOURCES = \ |
30 |
alchemy.C\ |
31 |
apply.C\ |
32 |
attack.C\ |
33 |
build_map.C\ |
34 |
c_misc.C\ |
35 |
c_move.C\ |
36 |
c_new.C\ |
37 |
c_object.C\ |
38 |
c_party.C\ |
39 |
c_range.C\ |
40 |
c_wiz.C\ |
41 |
commands.C\ |
42 |
disease.C\ |
43 |
egoitem.C \ |
44 |
hiscore.C\ |
45 |
gods.C\ |
46 |
init.C\ |
47 |
main.C\ |
48 |
monster.C\ |
49 |
move.C\ |
50 |
pets.C\ |
51 |
player.C\ |
52 |
resurrection.C\ |
53 |
rune.C\ |
54 |
shop.C\ |
55 |
skills.C\ |
56 |
skill_util.C\ |
57 |
spell_attack.C\ |
58 |
spell_effect.C\ |
59 |
spell_util.C\ |
60 |
swamp.C\ |
61 |
time.C\ |
62 |
dynbuf.C\ |
63 |
freezethaw.C\ |
64 |
cfperl.xs\ |
65 |
evthread.C |
66 |
|
67 |
SUFFIXES = .xs |
68 |
|
69 |
EXTRA_DIST = typemap genacc |
70 |
|
71 |
cfperl.C: cfperl.xs genacc typemap |
72 |
cfperl.C: ../include/object.h ../include/client.h ../include/player.h |
73 |
cfperl.C: ../include/map.h ../include/living.h ../include/global.h |
74 |
cfperl.C: ../include/region.h ../include/cfperl.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 >$@ |
79 |
|
80 |
AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
81 |
-DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
82 |
-DPLUGIN_SUFFIX=\".so\" |
83 |
|
84 |
LIBDL= |
85 |
deliantra_server_LDFLAGS= |
86 |
deliantra_server_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \ |
87 |
../socket/libsocket.a $(LIBDL) $(PERLLIB) |
88 |
|
89 |
../common/libcross.a: |
90 |
( cd ../common ; $(MAKE) libcross.a ) |
91 |
|
92 |
../random_maps/librandom_map.a: |
93 |
( cd ../random_maps ; $(MAKE) librandom_map.a ) |
94 |
|
95 |
../socket/libsocket.a: |
96 |
( cd ../socket ; $(MAKE) libsocket.a ) |
97 |
|
98 |
|