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 (©) 2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | # Copyright (©) 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | # Copyright (©) 2001,2007 Mark Wedel & Crossfire Development Team |
5 | # Copyright (©) 2001 Mark Wedel & Crossfire Development Team |
6 | # Copyright (©) 1992,2007 Frank Tore Johansen |
6 | # Copyright (©) 1992 Frank Tore Johansen |
7 | # |
7 | # |
8 | # Deliantra is free software: you can redistribute it and/or modify |
8 | # Deliantra is free software: you can redistribute it and/or modify it under |
9 | # it under the terms of the GNU General Public License as published by |
9 | # the terms of the Affero GNU General Public License as published by the |
10 | # the Free Software Foundation, either version 3 of the License, or |
10 | # Free Software Foundation, either version 3 of the License, or (at your |
11 | # (at your option) any later version. |
11 | # option) any later version. |
12 | # |
12 | # |
13 | # This program is distributed in the hope that it will be useful, |
13 | # This program is distributed in the hope that it will be useful, |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | # GNU General Public License for more details. |
16 | # GNU General Public License for more details. |
17 | # |
17 | # |
18 | # You should have received a copy of the GNU General Public License |
18 | # You should have received a copy of the Affero GNU General Public License |
19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | # and the GNU General Public License along with this program. If not, see |
20 | # |
20 | # <http://www.gnu.org/licenses/>. |
|
|
21 | # |
21 | # The authors can be reached via e-mail to <support@deliantra.net> |
22 | # The authors can be reached via e-mail to <support@deliantra.net> |
22 | # |
23 | # |
23 | |
24 | |
24 | AUTOMAKE_OPTIONS = foreign dist-bzip2 |
25 | SUBDIRS = include lib ext utils pod doc |
25 | |
26 | |
26 | SUBDIRS = include common random_maps socket server lib ext utils pod doc |
27 | EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \ |
|
|
28 | common/README \ |
|
|
29 | socket/README \ |
|
|
30 | random_maps/Notes \ |
|
|
31 | server/typemap server/genacc server/genconst |
27 | |
32 | |
28 | EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO |
33 | CLEANFILES = server/const_iv.h server/perlxsi.c |
29 | |
34 | |
30 | MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile |
35 | MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile |
31 | |
36 | |
32 | DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man |
37 | DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man |
33 | |
38 | |
|
|
39 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
|
|
40 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
|
|
41 | -DPLUGIN_SUFFIX=\".so\" |
|
|
42 | |
|
|
43 | ############################################################################# |
|
|
44 | |
|
|
45 | bin_PROGRAMS = server/deliantra-server |
|
|
46 | |
|
|
47 | ############################################################################# |
|
|
48 | |
|
|
49 | server_deliantra_server_LDFLAGS= |
|
|
50 | server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) |
|
|
51 | |
|
|
52 | server_deliantra_server_SOURCES = \ |
|
|
53 | socket/image.C \ |
|
|
54 | socket/info.C \ |
|
|
55 | socket/init.C \ |
|
|
56 | socket/item.C \ |
|
|
57 | socket/loop.C \ |
|
|
58 | socket/lowlevel.C \ |
|
|
59 | socket/request.C \ |
|
|
60 | socket/sounds.C \ |
|
|
61 | \ |
|
|
62 | common/anim.C \ |
|
|
63 | common/arch.C \ |
|
|
64 | common/button.C \ |
|
|
65 | common/compat.C \ |
|
|
66 | common/exp.C \ |
|
|
67 | common/friend.C \ |
|
|
68 | common/holy.C \ |
|
|
69 | common/image.C \ |
|
|
70 | common/init.C \ |
|
|
71 | common/item.C \ |
|
|
72 | common/links.C \ |
|
|
73 | common/living.C \ |
|
|
74 | common/loader.C \ |
|
|
75 | common/logger.C \ |
|
|
76 | common/los.C \ |
|
|
77 | common/map.C \ |
|
|
78 | common/object.C \ |
|
|
79 | common/player.C \ |
|
|
80 | common/readable.C \ |
|
|
81 | common/recipe.C \ |
|
|
82 | common/region.C \ |
|
|
83 | common/shstr.C \ |
|
|
84 | common/time.C \ |
|
|
85 | common/treasure.C \ |
|
|
86 | common/utils.C \ |
|
|
87 | common/rng.C \ |
|
|
88 | common/noise.C \ |
|
|
89 | common/material.C \ |
|
|
90 | \ |
|
|
91 | random_maps/random_map.C \ |
|
|
92 | random_maps/room_gen_onion.C \ |
|
|
93 | random_maps/room_gen_spiral.C \ |
|
|
94 | random_maps/maze_gen.C \ |
|
|
95 | random_maps/floor.C \ |
|
|
96 | random_maps/wall.C \ |
|
|
97 | random_maps/monster.C \ |
|
|
98 | random_maps/door.C \ |
|
|
99 | random_maps/decor.C \ |
|
|
100 | random_maps/exit.C \ |
|
|
101 | random_maps/treasure.C \ |
|
|
102 | random_maps/special.C \ |
|
|
103 | random_maps/rogue_layout.C \ |
|
|
104 | random_maps/snake.C \ |
|
|
105 | random_maps/square_spiral.C \ |
|
|
106 | random_maps/layout.C \ |
|
|
107 | \ |
|
|
108 | server/alchemy.C \ |
|
|
109 | server/apply.C \ |
|
|
110 | server/attack.C \ |
|
|
111 | server/build_map.C \ |
|
|
112 | server/c_misc.C \ |
|
|
113 | server/c_move.C \ |
|
|
114 | server/c_object.C \ |
|
|
115 | server/c_party.C \ |
|
|
116 | server/c_range.C \ |
|
|
117 | server/c_wiz.C \ |
|
|
118 | server/commands.C \ |
|
|
119 | server/disease.C \ |
|
|
120 | server/egoitem.C \ |
|
|
121 | server/gods.C \ |
|
|
122 | server/init.C \ |
|
|
123 | server/main.C \ |
|
|
124 | server/monster.C \ |
|
|
125 | server/move.C \ |
|
|
126 | server/pets.C \ |
|
|
127 | server/player.C \ |
|
|
128 | server/resurrection.C \ |
|
|
129 | server/rune.C \ |
|
|
130 | server/shop.C \ |
|
|
131 | server/skills.C \ |
|
|
132 | server/skill_util.C \ |
|
|
133 | server/spell_attack.C \ |
|
|
134 | server/spell_effect.C \ |
|
|
135 | server/spell_util.C \ |
|
|
136 | server/swamp.C \ |
|
|
137 | server/time.C \ |
|
|
138 | server/dynbuf.C \ |
|
|
139 | server/freezethaw.C \ |
|
|
140 | server/quadland.C \ |
|
|
141 | server/cfperl.xs \ |
|
|
142 | server/evthread.C |
|
|
143 | |
|
|
144 | SUFFIXES = .xs |
|
|
145 | |
|
|
146 | CONST_SRC = include/define.h include/spells.h include/attack.h \ |
|
|
147 | include/skills.h include/material.h include/sounds.h \ |
|
|
148 | include/object.h include/treasure.h include/client.h \ |
|
|
149 | include/logger.h include/rmg.h include/map.h |
|
|
150 | |
|
|
151 | server/const_iv.h: server/genconst $(CONST_SRC) |
|
|
152 | $(PERL) server/genconst $(CONST_SRC) >$@~ && mv $@~ $@ |
|
|
153 | |
|
|
154 | server/cfperl.C: server/cfperl.xs server/typemap server/genacc |
|
|
155 | server/cfperl.C: server/const_iv.h |
|
|
156 | server/cfperl.C: include/object.h include/client.h include/player.h |
|
|
157 | server/cfperl.C: include/map.h include/living.h include/global.h |
|
|
158 | server/cfperl.C: include/region.h include/cfperl.h include/rmg.h |
|
|
159 | server/cfperl.C: include/define.h |
|
|
160 | |
|
|
161 | .xs.C: server/typemap |
|
|
162 | cd server || exit 1; \ |
|
|
163 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf; \ |
|
|
164 | PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap -prototypes $(abs_top_srcdir)/server/cfperl.xs >cfperl.C~ && mv cfperl.C~ cfperl.C |
|
|
165 | |
|
|
166 | ############################################################################# |
|
|
167 | |
|
|
168 | tags: ctags |
|
|
169 | |