1 | AUTOMAKE_OPTIONS = foreign |
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 | # |
2 | |
24 | |
3 | SUBDIRS = include common random_maps socket server lib ext utils pod doc |
25 | pkgstatedir = @pkgstatedir@ |
|
|
26 | pkgconfdir = @pkgconfdir@ |
|
|
27 | PERL = @PERL@ |
4 | |
28 | |
|
|
29 | SUBDIRS = include lib |
|
|
30 | |
5 | EXTRA_DIST = AUTHORS Changes COPYING DEVELOPERS autogen.sh TODO |
31 | EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \ |
|
|
32 | common/README \ |
|
|
33 | socket/README \ |
|
|
34 | random_maps/Notes \ |
|
|
35 | server/typemap server/genacc server/genconst \ |
|
|
36 | utils/metaserver.pl.in utils/player_dl.pl.in utils/player_dl.html utils/cfutil.in \ |
|
|
37 | doc/historic doc/development \ |
|
|
38 | ext/*.pm ext/*.ext |
6 | |
39 | |
|
|
40 | CLEANFILES = server/const_iv.h server/perlxsi.c |
|
|
41 | |
7 | MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile |
42 | MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile utils/cfutil utils/Makefile.in |
8 | |
43 | |
9 | DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man |
44 | DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man |
10 | |
45 | |
|
|
46 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
|
|
47 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
|
|
48 | -DPLUGIN_SUFFIX=\".so\" |
|
|
49 | |
|
|
50 | ############################################################################# |
|
|
51 | |
|
|
52 | bin_PROGRAMS = server/deliantra-server utils/cfhq2xa |
|
|
53 | nodist_bin_SCRIPTS = utils/cfutil |
|
|
54 | |
|
|
55 | ############################################################################# |
|
|
56 | # server/, socket/, common/, random_maps/ |
|
|
57 | |
|
|
58 | server_deliantra_server_LDFLAGS= |
|
|
59 | server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) |
|
|
60 | |
|
|
61 | server_deliantra_server_SOURCES = \ |
|
|
62 | socket/image.C \ |
|
|
63 | socket/info.C \ |
|
|
64 | socket/init.C \ |
|
|
65 | socket/item.C \ |
|
|
66 | socket/loop.C \ |
|
|
67 | socket/lowlevel.C \ |
|
|
68 | socket/request.C \ |
|
|
69 | socket/sounds.C \ |
|
|
70 | \ |
|
|
71 | common/anim.C \ |
|
|
72 | common/arch.C \ |
|
|
73 | common/button.C \ |
|
|
74 | common/compat.C \ |
|
|
75 | common/exp.C \ |
|
|
76 | common/friend.C \ |
|
|
77 | common/holy.C \ |
|
|
78 | common/image.C \ |
|
|
79 | common/init.C \ |
|
|
80 | common/item.C \ |
|
|
81 | common/links.C \ |
|
|
82 | common/living.C \ |
|
|
83 | common/loader.C \ |
|
|
84 | common/logger.C \ |
|
|
85 | common/los.C \ |
|
|
86 | common/map.C \ |
|
|
87 | common/object.C \ |
|
|
88 | common/player.C \ |
|
|
89 | common/readable.C \ |
|
|
90 | common/recipe.C \ |
|
|
91 | common/region.C \ |
|
|
92 | common/shstr.C \ |
|
|
93 | common/time.C \ |
|
|
94 | common/treasure.C \ |
|
|
95 | common/utils.C \ |
|
|
96 | common/rng.C \ |
|
|
97 | common/noise.C \ |
|
|
98 | common/material.C \ |
|
|
99 | \ |
|
|
100 | random_maps/random_map.C \ |
|
|
101 | random_maps/room_gen_onion.C \ |
|
|
102 | random_maps/room_gen_spiral.C \ |
|
|
103 | random_maps/maze_gen.C \ |
|
|
104 | random_maps/floor.C \ |
|
|
105 | random_maps/wall.C \ |
|
|
106 | random_maps/monster.C \ |
|
|
107 | random_maps/door.C \ |
|
|
108 | random_maps/decor.C \ |
|
|
109 | random_maps/exit.C \ |
|
|
110 | random_maps/treasure.C \ |
|
|
111 | random_maps/special.C \ |
|
|
112 | random_maps/rogue_layout.C \ |
|
|
113 | random_maps/snake.C \ |
|
|
114 | random_maps/square_spiral.C \ |
|
|
115 | random_maps/layout.C \ |
|
|
116 | \ |
|
|
117 | server/alchemy.C \ |
|
|
118 | server/apply.C \ |
|
|
119 | server/attack.C \ |
|
|
120 | server/build_map.C \ |
|
|
121 | server/c_misc.C \ |
|
|
122 | server/c_move.C \ |
|
|
123 | server/c_object.C \ |
|
|
124 | server/c_party.C \ |
|
|
125 | server/c_range.C \ |
|
|
126 | server/c_wiz.C \ |
|
|
127 | server/commands.C \ |
|
|
128 | server/disease.C \ |
|
|
129 | server/egoitem.C \ |
|
|
130 | server/gods.C \ |
|
|
131 | server/init.C \ |
|
|
132 | server/main.C \ |
|
|
133 | server/monster.C \ |
|
|
134 | server/move.C \ |
|
|
135 | server/pets.C \ |
|
|
136 | server/player.C \ |
|
|
137 | server/resurrection.C \ |
|
|
138 | server/rune.C \ |
|
|
139 | server/shop.C \ |
|
|
140 | server/skills.C \ |
|
|
141 | server/skill_util.C \ |
|
|
142 | server/spell_attack.C \ |
|
|
143 | server/spell_effect.C \ |
|
|
144 | server/spell_util.C \ |
|
|
145 | server/swamp.C \ |
|
|
146 | server/time.C \ |
|
|
147 | server/dynbuf.C \ |
|
|
148 | server/freezethaw.C \ |
|
|
149 | server/quadland.C \ |
|
|
150 | server/cfperl.xs \ |
|
|
151 | server/evthread.C |
|
|
152 | |
|
|
153 | SUFFIXES = .xs |
|
|
154 | |
|
|
155 | CONST_SRC = $(top_srcdir)/include/define.h $(top_srcdir)/include/spells.h $(top_srcdir)/include/attack.h \ |
|
|
156 | $(top_srcdir)/include/skills.h $(top_srcdir)/include/material.h $(top_srcdir)/include/sounds.h \ |
|
|
157 | $(top_srcdir)/include/object.h $(top_srcdir)/include/treasure.h $(top_srcdir)/include/client.h \ |
|
|
158 | $(top_srcdir)/include/logger.h $(top_srcdir)/include/rmg.h $(top_srcdir)/include/map.h |
|
|
159 | |
|
|
160 | server/const_iv.h: server/genconst $(CONST_SRC) |
|
|
161 | $(PERL) $(srcdir)/server/genconst $(CONST_SRC) >$@~ && mv $@~ $@ |
|
|
162 | |
|
|
163 | server/cfperl.C: server/cfperl.xs server/typemap server/genacc |
|
|
164 | server/cfperl.C: server/const_iv.h |
|
|
165 | server/cfperl.C: include/object.h include/client.h include/player.h |
|
|
166 | server/cfperl.C: include/map.h include/living.h include/global.h |
|
|
167 | server/cfperl.C: include/region.h include/cfperl.h include/rmg.h |
|
|
168 | server/cfperl.C: include/define.h |
|
|
169 | |
|
|
170 | .xs.C: server/typemap |
|
|
171 | cd server || exit 1; \ |
|
|
172 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf; \ |
|
|
173 | PERL="$(PERL)" srcdir="$(abs_top_srcdir)/server" \ |
|
|
174 | $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp \ |
|
|
175 | -C++ -csuffix .C \-typemap @PERLPRIVLIBEXP@/ExtUtils/typemap \ |
|
|
176 | -typemap typemap -prototypes \ |
|
|
177 | $(abs_top_srcdir)/server/cfperl.xs >cfperl.C~ && mv cfperl.C~ cfperl.C |
|
|
178 | |
|
|
179 | ############################################################################# |
|
|
180 | # pod/ |
|
|
181 | |
|
|
182 | poddir=$(pkgdatadir)/pod |
|
|
183 | dist_pod_DATA = pod/command_help.pod pod/dmcommand_help.pod pod/emote_help.pod pod/books.pod pod/generic_help.pod |
|
|
184 | |
|
|
185 | dist_noinst_DATA = pod/events.pod |
|
|
186 | |
|
|
187 | ############################################################################# |
|
|
188 | # utils/ |
|
|
189 | |
|
|
190 | utils_cfhq2xa_SOURCES = utils/cfhq2xa.C |
|
|
191 | |
|
|
192 | ############################################################################# |
|
|
193 | # doc/ |
|
|
194 | |
|
|
195 | dist-hook: |
|
|
196 | rm -rf `find $(distdir)/doc -name CVS` |
|
|
197 | |
|
|
198 | ############################################################################# |
|
|
199 | # ext/ |
|
|
200 | |
|
|
201 | OLDEXT = 00_map_handling.ext cfplus_build.ext clientchk.ext db-scheduler.ext \ |
|
|
202 | guildrules.ext map-prefetch.ext schmorp-clientchk.ext schmorp.irc.ext slag_ex.ext |
|
|
203 | |
|
|
204 | PERL = @PERL@ |
|
|
205 | |
|
|
206 | install-data-local: |
|
|
207 | @$(NORMAL_INSTALL) |
|
|
208 | $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/ext |
|
|
209 | for i in $(srcdir)/ext/*.pm $(srcdir)/ext/*.ext; do \ |
|
|
210 | $(INSTALL_DATA) "$$i" $(DESTDIR)$(pkgdatadir)/ext; \ |
|
|
211 | done |
|
|
212 | (cd $(DESTDIR)$(pkgdatadir)/ext/ && rm -f $(OLDEXT)) |
|
|
213 | |
|
|
214 | # Uninstall unchanged config/var files so make distcheck is happy |
|
|
215 | # but leave changed file, so no configuration/game state is lost |
|
|
216 | uninstall-local: |
|
|
217 | -cd $(srcdir)/ext && \ |
|
|
218 | for i in *.pm *.ext; do \ |
|
|
219 | rm -f $(DESTDIR)$(pkgdatadir)/ext/"$$i"; \ |
|
|
220 | done |
|
|
221 | |
|
|
222 | ############################################################################# |
|
|
223 | |
|
|
224 | tags: ctags |
|
|
225 | |