ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/Makefile.am
Revision: 1.38
Committed: Sat Nov 17 23:39:59 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
Changes since 1.37: +1 -0 lines
Log Message:
copyright update 2018

File Contents

# User Rev Content
1 root 1.18 #
2 root 1.20 # This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 root 1.28 #
4 root 1.38 # Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team
5 root 1.29 # Copyright (©) 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
6 root 1.22 # Copyright (©) 2001 Mark Wedel & Crossfire Development Team
7     # Copyright (©) 1992 Frank Tore Johansen
8 root 1.28 #
9 root 1.22 # Deliantra is free software: you can redistribute it and/or modify it under
10     # the terms of the Affero GNU General Public License as published by the
11     # Free Software Foundation, either version 3 of the License, or (at your
12     # option) any later version.
13 root 1.28 #
14 root 1.19 # 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 root 1.28 #
19 root 1.22 # You should have received a copy of the Affero GNU General Public License
20     # and the GNU General Public License along with this program. If not, see
21     # <http://www.gnu.org/licenses/>.
22 root 1.28 #
23 root 1.20 # The authors can be reached via e-mail to <support@deliantra.net>
24 root 1.18 #
25    
26 root 1.34 pkgstatedir = @pkgstatedir@
27     pkgconfdir = @pkgconfdir@
28     PERL = @PERL@
29    
30 root 1.35 SUBDIRS = lib
31 root 1.1
32 root 1.30 EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \
33     common/README \
34     socket/README \
35     random_maps/Notes \
36 root 1.33 server/typemap server/genacc server/genconst \
37     utils/metaserver.pl.in utils/player_dl.pl.in utils/player_dl.html utils/cfutil.in \
38 root 1.34 doc/historic doc/development \
39 root 1.35 ext/*.pm ext/*.ext \
40     include/event2inc include/genkeywords include/callback.pl
41 root 1.26
42 root 1.30 CLEANFILES = server/const_iv.h server/perlxsi.c
43 root 1.1
44 root 1.35 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure Makefile \
45     utils/cfutil utils/Makefile.in \
46     include/keyword.h include/kw_hash.h
47 pippijn 1.3
48 root 1.1 DISTCHECK_CONFIGURE_FLAGS = --localstatedir=$$dc_install_base/var --mandir=$$dc_install_base/man
49    
50 root 1.30 AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \
51     -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \
52     -DPLUGIN_SUFFIX=\".so\"
53    
54     #############################################################################
55    
56 root 1.33 bin_PROGRAMS = server/deliantra-server utils/cfhq2xa
57     nodist_bin_SCRIPTS = utils/cfutil
58 root 1.30
59     #############################################################################
60 root 1.33 # server/, socket/, common/, random_maps/
61 root 1.30
62     server_deliantra_server_LDFLAGS=
63 root 1.36 server_deliantra_server_LDADD = $(LIBDL) $(PERLLIB) $(EXTRA_LDADD)
64 root 1.30
65     server_deliantra_server_SOURCES = \
66     socket/image.C \
67     socket/info.C \
68     socket/init.C \
69     socket/item.C \
70     socket/loop.C \
71     socket/lowlevel.C \
72     socket/request.C \
73     socket/sounds.C \
74     \
75     common/anim.C \
76     common/arch.C \
77     common/button.C \
78     common/compat.C \
79     common/exp.C \
80     common/friend.C \
81     common/holy.C \
82     common/image.C \
83     common/init.C \
84     common/item.C \
85     common/links.C \
86     common/living.C \
87     common/loader.C \
88     common/logger.C \
89     common/los.C \
90     common/map.C \
91     common/object.C \
92     common/player.C \
93     common/readable.C \
94     common/recipe.C \
95     common/region.C \
96     common/shstr.C \
97     common/time.C \
98     common/treasure.C \
99     common/utils.C \
100     common/rng.C \
101     common/noise.C \
102     common/material.C \
103     \
104     random_maps/random_map.C \
105     random_maps/room_gen_onion.C \
106     random_maps/room_gen_spiral.C \
107     random_maps/maze_gen.C \
108     random_maps/floor.C \
109     random_maps/wall.C \
110     random_maps/monster.C \
111     random_maps/door.C \
112     random_maps/decor.C \
113     random_maps/exit.C \
114     random_maps/treasure.C \
115     random_maps/special.C \
116     random_maps/rogue_layout.C \
117     random_maps/snake.C \
118     random_maps/square_spiral.C \
119     random_maps/layout.C \
120     \
121     server/alchemy.C \
122     server/apply.C \
123     server/attack.C \
124     server/build_map.C \
125     server/c_misc.C \
126     server/c_move.C \
127     server/c_object.C \
128     server/c_party.C \
129     server/c_range.C \
130     server/c_wiz.C \
131     server/commands.C \
132     server/disease.C \
133     server/egoitem.C \
134     server/gods.C \
135     server/init.C \
136     server/main.C \
137     server/monster.C \
138     server/move.C \
139     server/pets.C \
140     server/player.C \
141     server/resurrection.C \
142     server/rune.C \
143     server/shop.C \
144     server/skills.C \
145     server/skill_util.C \
146     server/spell_attack.C \
147     server/spell_effect.C \
148     server/spell_util.C \
149     server/swamp.C \
150     server/time.C \
151     server/dynbuf.C \
152     server/freezethaw.C \
153     server/quadland.C \
154     server/cfperl.xs \
155     server/evthread.C
156    
157     SUFFIXES = .xs
158    
159 root 1.31 CONST_SRC = $(top_srcdir)/include/define.h $(top_srcdir)/include/spells.h $(top_srcdir)/include/attack.h \
160     $(top_srcdir)/include/skills.h $(top_srcdir)/include/material.h $(top_srcdir)/include/sounds.h \
161     $(top_srcdir)/include/object.h $(top_srcdir)/include/treasure.h $(top_srcdir)/include/client.h \
162     $(top_srcdir)/include/logger.h $(top_srcdir)/include/rmg.h $(top_srcdir)/include/map.h
163 root 1.30
164     server/const_iv.h: server/genconst $(CONST_SRC)
165 root 1.31 $(PERL) $(srcdir)/server/genconst $(CONST_SRC) >$@~ && mv $@~ $@
166 root 1.30
167     server/cfperl.C: server/cfperl.xs server/typemap server/genacc
168     server/cfperl.C: server/const_iv.h
169     server/cfperl.C: include/object.h include/client.h include/player.h
170     server/cfperl.C: include/map.h include/living.h include/global.h
171     server/cfperl.C: include/region.h include/cfperl.h include/rmg.h
172     server/cfperl.C: include/define.h
173    
174     .xs.C: server/typemap
175     cd server || exit 1; \
176     $(PERL) -MExtUtils::Embed -e xsinit -- -std cf; \
177 root 1.31 PERL="$(PERL)" srcdir="$(abs_top_srcdir)/server" \
178     $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp \
179     -C++ -csuffix .C \-typemap @PERLPRIVLIBEXP@/ExtUtils/typemap \
180     -typemap typemap -prototypes \
181     $(abs_top_srcdir)/server/cfperl.xs >cfperl.C~ && mv cfperl.C~ cfperl.C
182 root 1.30
183     #############################################################################
184 root 1.33 # pod/
185 root 1.30
186 root 1.32 poddir=$(pkgdatadir)/pod
187     dist_pod_DATA = pod/command_help.pod pod/dmcommand_help.pod pod/emote_help.pod pod/books.pod pod/generic_help.pod
188    
189     dist_noinst_DATA = pod/events.pod
190    
191     #############################################################################
192 root 1.33 # utils/
193    
194     utils_cfhq2xa_SOURCES = utils/cfhq2xa.C
195    
196     #############################################################################
197     # doc/
198    
199     dist-hook:
200     rm -rf `find $(distdir)/doc -name CVS`
201    
202     #############################################################################
203 root 1.34 # ext/
204    
205     OLDEXT = 00_map_handling.ext cfplus_build.ext clientchk.ext db-scheduler.ext \
206     guildrules.ext map-prefetch.ext schmorp-clientchk.ext schmorp.irc.ext slag_ex.ext
207    
208     PERL = @PERL@
209    
210     install-data-local:
211     @$(NORMAL_INSTALL)
212     $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/ext
213     for i in $(srcdir)/ext/*.pm $(srcdir)/ext/*.ext; do \
214     $(INSTALL_DATA) "$$i" $(DESTDIR)$(pkgdatadir)/ext; \
215     done
216     (cd $(DESTDIR)$(pkgdatadir)/ext/ && rm -f $(OLDEXT))
217    
218     # Uninstall unchanged config/var files so make distcheck is happy
219     # but leave changed file, so no configuration/game state is lost
220     uninstall-local:
221     -cd $(srcdir)/ext && \
222     for i in *.pm *.ext; do \
223     rm -f $(DESTDIR)$(pkgdatadir)/ext/"$$i"; \
224     done
225    
226     #############################################################################
227 root 1.35 # include/
228    
229     noinst_HEADERS = \
230     include/devel.h include/libproto.h include/sounds.h include/attack.h \
231 root 1.37 include/config.h include/living.h include/player.h include/slotinc.h \
232 root 1.35 include/define.h include/race.h include/material.h include/spells.h include/rproto.h \
233     include/face.h include/logger.h include/sproto.h include/region.h include/rmg.h \
234     include/artifact.h include/map.h include/recipe.h include/treasure.h include/noise.h \
235     include/global.h include/client.h include/path.h include/shstr.h include/tod.h \
236     include/god.h include/network.h include/crc.h include/shstrinc.h include/layout.h \
237     include/book.h include/includes.h include/object.h include/skills.h include/sockproto.h \
238     include/cfperl.h include/eventinc.h include/attackinc.h include/compiler.h include/rng.h \
239     include/kw_hash.h include/keyword.h include/traits.h include/dynbuf.h include/util.h \
240     include/skillinc.h include/callback.h include/evthread.h include/freezethaw.h include/quadland.h
241    
242     BUILT_SOURCES = include/eventinc.h include/keyword.h include/kw_hash.h
243    
244     include/eventinc.h: pod/events.pod include/event2inc
245     $(PERL) $(srcdir)/include/event2inc $< >$@
246    
247     include/keyword.h: include/genkeywords
248     $(PERL) $(srcdir)/include/genkeywords GPERF '$(GPERF)'
249    
250     include/kw_hash.h: include/keyword.h
251    
252    
253     #############################################################################
254 root 1.32
255 root 1.21 tags: ctags
256