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