Mercurial > ~darius > hgwebdir.cgi > paradise_server
comparison src/Makefile.in @ 2:2719a89505ba
First entry of Paradise Server 2.9 patch 10 Beta
author | darius |
---|---|
date | Sat, 06 Dec 1997 04:37:01 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:4d6502ffaa5e | 2:2719a89505ba |
---|---|
1 # NETREK II -- Paradise | |
2 # | |
3 # Permission to use, copy, modify, and distribute this software and its | |
4 # documentation for any NON-COMMERCIAL purpose (following the terms of | |
5 # the GNU General Public License (read the file 'COPYING')) and without | |
6 # fee is hereby granted, provided that this copyright notice appear in all | |
7 # copies. No representations are made about the suitability of this | |
8 # software for any purpose. This software is provided "as is" without | |
9 # express or implied warranty. | |
10 # | |
11 # Xtrek Copyright 1986 Chris Guthrie | |
12 # Netrek (Xtrek II) Copyright 1989 Kevin P. Smith | |
13 # Scott Silvey | |
14 # Paradise (Netrek II) Copyright 1993 Larry Denys | |
15 # Kurt Olsen | |
16 # Brandon Gillespie | |
17 # Rob Forsman | |
18 # | |
19 # Comprehensive Credits available in the file docs/CREDITS | |
20 # | |
21 # Programmers: Modify the file 'Makefile.in' not the Makefile directly. | |
22 # | |
23 | |
24 MAKE = make | |
25 INSTMODE = 700 | |
26 | |
27 SRVDIR = . | |
28 BINDIR = ../bin | |
29 ETCDIR = ../etc | |
30 RSADIR = ../rsa | |
31 | |
32 #@@CCOPTIONS@ | |
33 #@@CDEBUGFLAGS@ | |
34 #@@CC@ | |
35 | |
36 ### An override | |
37 # GCCWARNINGS = | |
38 # GCCOPTWARNINGS= -O -Wuninitialized -Wunused | |
39 # GCCWARNINGS = ${GCCOPTWARNINGS} -Wreturn-type -Wswitch -Wtrigraphs \ | |
40 # -Wformat -Wchar-subscripts -Wparentheses | |
41 # CC = gcc ${GCCWARNINGS} | |
42 | |
43 # Use this for the KSR1 supercomputer | |
44 # CC = cc -port_def_long -port_lowaddrs | |
45 | |
46 #################### | |
47 # RSA authorization stuff | |
48 | |
49 #@@RSA@ | |
50 #@@AUTHOBJS@ | |
51 | |
52 ##################### | |
53 | |
54 #@@LIBS@ | |
55 | |
56 ##################### | |
57 # GNU Zip libs | |
58 GZLIBPATH = -L/usr/local/lib | |
59 GZLIB = -lgz | |
60 GZLIBH = -I/usr/local/include | |
61 | |
62 #################### | |
63 #accumulation of all C flags. | |
64 | |
65 CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(RSA) $(GZLIBH) | |
66 | |
67 ############################################################################## | |
68 | |
69 COMMON = data.o shmem.o plutil.o path.o grid.o cutil.o sintab.o | |
70 | |
71 ME_COMMON = util.o | |
72 | |
73 TOOL_COMMON = shmem.o path.o data.o | |
74 | |
75 NTSERV_OBJS = ${COMMON} cluecheck.o message.o death.o detonate.o \ | |
76 enter.o fatudp.o findslot.o gameconf.o getentry.o getname.o \ | |
77 getship.o input.o interface.o main.o missile.o orbit.o packets.o \ | |
78 parsexbm.o phaser.o ping.o plasma.o redraw.o ${AUTHOBJS} socket.o \ | |
79 sockio.o smessage.o timecheck.o torp.o ${ME_COMMON} warning.o \ | |
80 imath.o feature.o | |
81 | |
82 DAEMON_OBJS = daemonII.o dutil.o ${COMMON} conquer.o shipvals.o structdesc.o \ | |
83 sysdefaults.o weapons.o planets.o pl_gen0.o pl_gen1.o \ | |
84 pl_gen2.o pl_gen3.o pl_gen4.o pl_gen5.o pl_gen6.o pl_gen7.o player.o stats.o \ | |
85 misc.o tourny.o imath.o terrain.o | |
86 | |
87 ROBOT_OBJS = ${COMMON} detonate.o enter.o getship.o interface.o orbit.o \ | |
88 phaser.o robotII.o rmove.o torp.o ${ME_COMMON} imath.o | |
89 | |
90 SNAKE_OBJS = data.o path.o shmem.o cutil.o snake.o sintab.o snakemove.o \ | |
91 ${ME_COMMON} imath.o | |
92 | |
93 LISTEN_OBJS = data.o path.o listen.o | |
94 | |
95 TOOL_MES_OBJS = tool-mes.o tool-util.o ${TOOL_COMMON} | |
96 | |
97 TOOL_XTK_OBJS = tool-xtk.o tool-util.o ${TOOL_COMMON} getship.o # grid.o \ | |
98 # plutil.o | |
99 | |
100 TOOL_WM_OBJS = tool-wm.o tool-util.o ${TOOL_COMMON} | |
101 | |
102 TOOL_RESET_OBJS = tool-reset.o ${TOOL_COMMON} | |
103 | |
104 TOOL_PL_OBJS = tool-pl.o tool-util.o ${TOOL_COMMON} | |
105 | |
106 TOOL_PROMO_OBJS = tool-promo.o data.o | |
107 | |
108 TOOL_HR_OBJS = tool-hr.o ${TOOL_COMMON} | |
109 | |
110 TOOL_HS_OBJS = tool-hs.o ${TOOL_COMMON} | |
111 | |
112 TOOL_HERALDRY_OBJS = tool-heraldry.o data.o | |
113 | |
114 TOOL_DS_OBJS = tool-ds.o shmem.o path.o structdesc.o data.o | |
115 | |
116 TOOL_TRIM_OBJS = tool-trim.o ${TOOL_COMMON} | |
117 | |
118 R_FILES = data.c death.c detonate.c enter.c findslot.c getentry.c getname.c \ | |
119 getship.c input.c interface.c main.c orbit.c phaser.c plasma.c \ | |
120 redraw.c reserved.c sintab.c socket.c smessage.c timecheck.c torp.c \ | |
121 util.c path.c | |
122 | |
123 SRC = $(R_FILES) data.h defs.h planets.h struct.h packets.h | |
124 | |
125 DAEMON_SRCS=`echo ${DAEMON_OBJS} | sed -e 's/\.o/.c/g'` | |
126 | |
127 NTSERV_SRCS=`echo ${NTSERV_OBJS} | sed -e 's/\.o/.c/g'` | |
128 | |
129 ROBOT_SRCS=`echo ${ROBOT_OBJS} | sed -e 's/\.o/.c/g'` | |
130 | |
131 ############################################################################## | |
132 | |
133 SERVER = ntserv daemonII listen | |
134 | |
135 ROBOTS = robotII snake | |
136 | |
137 TOOLS = mes wm hr hs | |
138 OTHERTOOLS = reset pl promo ds xtk heraldry trim | |
139 | |
140 default: | |
141 @echo "** Use 'make rules' for a list of make rules **" | |
142 ${MAKE} server | |
143 | |
144 rules: | |
145 @echo "*** Use any of the following ***"; \ | |
146 echo " General:"; \ | |
147 echo " server, robots, tools, alltools, makefile, install,"; \ | |
148 echo " install-tools, rsa, rsa-support, clean, spotless."; \ | |
149 echo " Specific:"; \ | |
150 echo " $(SERVER) $(ROBOTS)"; \ | |
151 echo " $(TOOLS) $(OTHERTOOLS)" | |
152 | |
153 makefile: | |
154 @cd ..; setup -p | |
155 | |
156 patchable: spotless | |
157 @echo "all:" > Makefile; \ | |
158 echo " @echo \"\"; \\" >> Makefile; \ | |
159 echo "echo \"** Run the setup script first **\"; \\" >> Makefile; \ | |
160 echo "echo \"\"" >> Makefile; \ | |
161 echo "server: all" >> Makefile; \ | |
162 echo "install: all" >> Makefile | |
163 | |
164 server: $(SERVER) $(ROBOTS) | |
165 | |
166 robots: $(ROBOTS) | |
167 | |
168 tools: $(TOOLS) | |
169 | |
170 alltools: $(TOOLS) ${OTHERTOOLS} | |
171 | |
172 rsa: | |
173 cd $(RSADIR); make; cd $(SRVDIR) | |
174 | |
175 rsa-support: | |
176 -ln -s $(RSADIR)/rsa-server.c | |
177 -ln -s $(RSADIR)/rsa_util.c | |
178 -ln -s $(RSADIR)/rsa_utilmp.c | |
179 -ln -s $(RSADIR)/reserved.c | |
180 | |
181 ntserv: $(NTSERV_OBJS) | |
182 ${CC} $(CFLAGS) $(GZLIBPATH) -o ntserv $(NTSERV_OBJS) $(LIBS) $(GZLIB) | |
183 -chmod ${INSTMODE} ntserv | |
184 | |
185 daemonII: $(DAEMON_OBJS) | |
186 ${CC} $(CFLAGS) $(GZLIBPATH) -o daemonII $(DAEMON_OBJS) ${LIBS} $(GZLIB) | |
187 -chmod ${INSTMODE} daemonII | |
188 | |
189 robotII: $(ROBOT_OBJS) | |
190 ${CC} $(CFLAGS) -o robotII $(ROBOT_OBJS) $(LIBS) | |
191 -chmod ${INSTMODE} robotII | |
192 | |
193 listen: $(LISTEN_OBJS) | |
194 ${CC} ${CFLAGS} $(GZLIBPATH) -o $@ ${LISTEN_OBJS} $(LIBS) $(GZLIB) | |
195 | |
196 snake: $(SNAKE_OBJS) | |
197 /bin/rm -f $@ | |
198 ${CC} $(CFLAGS) -o $@ $(SNAKE_OBJS) $(LIBS) | |
199 -chmod ${INSTMODE} snake | |
200 | |
201 mes: $(TOOL_MES_OBJS) | |
202 /bin/rm -f $@ | |
203 ${CC} $(CFLAGS) -o $@ ${TOOL_MES_OBJS} $(LIBS) | |
204 | |
205 wm: $(TOOL_WM_OBJS) | |
206 /bin/rm -f $@ | |
207 ${CC} $(CFLAGS) -o $@ ${TOOL_WM_OBJS} $(LIBS) | |
208 | |
209 xtk: $(TOOL_XTK_OBJS) | |
210 /bin/rm -f $@ | |
211 ${CC} $(CFLAGS) -o $@ ${TOOL_XTK_OBJS} $(LIBS) | |
212 | |
213 reset: $(TOOL_RESET_OBJS) | |
214 /bin/rm -f $@ | |
215 ${CC} $(CFLAGS) -o $@ ${TOOL_RESET_OBJS} $(LIBS) | |
216 | |
217 pl: $(TOOL_PL_OBJS) | |
218 /bin/rm -f $@ | |
219 ${CC} $(CFLAGS) -o $@ ${TOOL_PL_OBJS} $(LIBS) | |
220 | |
221 promo: $(TOOL_PROMO_OBJS) | |
222 /bin/rm -f $@ | |
223 ${CC} $(CFLAGS) -o $@ ${TOOL_PROMO_OBJS} $(LIBS) | |
224 | |
225 hr: $(TOOL_HR_OBJS) | |
226 /bin/rm -f $@ | |
227 ${CC} $(CFLAGS) -o $@ ${TOOL_HR_OBJS} $(LIBS) | |
228 | |
229 hs: $(TOOL_HS_OBJS) | |
230 /bin/rm -f $@ | |
231 ${CC} $(CFLAGS) -o $@ ${TOOL_HS_OBJS} $(LIBS) | |
232 | |
233 heraldry: $(TOOL_HERALDRY_OBJS) | |
234 /bin/rm -f $@ | |
235 ${CC} $(CFLAGS) -o $@ ${TOOL_HERALDRY_OBJS} $(LIBS) | |
236 | |
237 ds: $(TOOL_DS_OBJS) | |
238 /bin/rm -f $@ | |
239 ${CC} $(CFLAGS) -o $@ ${TOOL_DS_OBJS} $(LIBS) | |
240 | |
241 trim: ${TOOL_TRIM_OBJS} | |
242 rm -f $@ | |
243 ${CC} $(CFLAGS) -o $@ ${TOOL_TRIM_OBJS} $(LIBS) | |
244 | |
245 install: $(BINDIR)/daemonII $(BINDIR)/ntserv $(BINDIR)/listen \ | |
246 $(BINDIR)/robotII $(BINDIR)/snake | |
247 | |
248 install-tools: $(BINDIR)/mes $(BINDIR)/wm $(BINDIR)/reset $(BINDIR)/pl \ | |
249 $(BINDIR)/promo $(BINDIR)/hr $(BINDIR)/hs $(BINDIR)/ds # $(BINDIR)/xtk | |
250 | |
251 $(BINDIR)/ntserv: ntserv | |
252 -mv $@ $@.old | |
253 cp ntserv $@ | |
254 chmod ${INSTMODE} $@ | |
255 | |
256 $(BINDIR)/daemonII: daemonII | |
257 -mv $@ $@.old | |
258 rm -f $(ETCDIR)/planets | |
259 touch $(ETCDIR)/planets | |
260 chmod 600 $(ETCDIR)/planets | |
261 cp daemonII $@ | |
262 chmod ${INSTMODE} $@ | |
263 | |
264 $(BINDIR)/robotII: robotII | |
265 -mv $@ $@.old | |
266 cp robotII $@ | |
267 chmod ${INSTMODE} $@ | |
268 | |
269 $(BINDIR)/listen: listen | |
270 -mv $@ $@.old | |
271 cp listen $@ | |
272 chmod ${INSTMODE} $@ | |
273 | |
274 $(BINDIR)/snake: snake | |
275 -mv $@ $@.old | |
276 cp snake $@ | |
277 chmod ${INSTMODE} $@ | |
278 | |
279 $(BINDIR)/mes: mes | |
280 -mv $@ $@.old | |
281 cp mes $@ | |
282 chmod ${INSTMODE} $@ | |
283 | |
284 $(BINDIR)/wm: wm | |
285 -mv $@ $@.old | |
286 cp wm $@ | |
287 chmod ${INSTMODE} $@ | |
288 | |
289 $(BINDIR)/xtk: xtk | |
290 -mv $@ $@.old | |
291 cp xtk $@ | |
292 chmod ${INSTMODE} $@ | |
293 | |
294 $(BINDIR)/reset: reset | |
295 -mv $@ $@.old | |
296 cp reset $@ | |
297 chmod ${INSTMODE} $@ | |
298 | |
299 $(BINDIR)/pl: pl | |
300 -mv $@ $@.old | |
301 cp pl $@ | |
302 chmod ${INSTMODE} $@ | |
303 | |
304 $(BINDIR)/promo: promo | |
305 -mv $@ $@.old | |
306 cp promo $@ | |
307 chmod ${INSTMODE} $@ | |
308 | |
309 $(BINDIR)/hr: hr | |
310 -mv $@ $@.old | |
311 cp hr $@ | |
312 chmod ${INSTMODE} $@ | |
313 | |
314 $(BINDIR)/hs: hs | |
315 -mv $@ $@.old | |
316 cp hs $@ | |
317 chmod ${INSTMODE} $@ | |
318 | |
319 $(BINDIR)/ds: ds | |
320 -mv $@ $@.old | |
321 cp ds $@ | |
322 chmod ${INSTMODE} $@ | |
323 | |
324 # | |
325 # | |
326 | |
327 lint-daemon: | |
328 lint ${DAEMON_SRCS} | |
329 | |
330 # | |
331 # | |
332 | |
333 protoize-daemon: | |
334 protoize -c "${CFLAGS}" -gN ${DAEMON_SRCS} | |
335 | |
336 protoize-ntserv: | |
337 protoize -c "${CFLAGS}" -gN ${NTSERV_SRCS} | |
338 | |
339 protoize-robotII: | |
340 protoize -c "${CFLAGS}" -gN ${ROBOT_SRCS} | |
341 | |
342 unprotoize-daemon: | |
343 unprotoize -c "${CFLAGS}" -N ${DAEMON_SRCS} | |
344 | |
345 unprotoize-ntserv: | |
346 unprotoize -c "${CFLAGS}" -N ${NTSERV_SRCS} | |
347 | |
348 unprotoize-robotII: | |
349 unprotoize -c "${CFLAGS}" -N ${ROBOT_SRCS} | |
350 | |
351 # | |
352 # | |
353 | |
354 clean: | |
355 rm -f *~ *.BAK *.orig *.rej core | |
356 rm -f $(SERVER) $(ROBOTS) $(TOOLS) $(OTHERTOOLS) | |
357 | |
358 spotless: clean | |
359 rm -f *.o | |
360 | |
361 ############################################################################# | |
362 cluecheck.o : cluecheck.c config.h data.h defs.h struct.h shmem.h | |
363 cluecheckdriver.o : cluecheckdriver.c | |
364 conquer.o : conquer.c config.h defs.h struct.h data.h daemonII.h misc.h shmem.h \ | |
365 path.h | |
366 message.o : message.c config.h defs.h data.h struct.h shmem.h | |
367 cutil.o : cutil.c config.h data.h defs.h | |
368 daemonII.o : daemonII.c config.h defs.h struct.h data.h planets.h conquer.h \ | |
369 daemonII.h getship.h weapons.h player.h misc.h shmem.h path.h | |
370 data.o : data.c config.h defs.h struct.h data.h | |
371 death.o : death.c config.h defs.h struct.h data.h shmem.h | |
372 detonate.o : detonate.c config.h defs.h struct.h data.h shmem.h | |
373 dutil.o : dutil.c config.h defs.h struct.h data.h daemonII.h shmem.h | |
374 enter.o : enter.c config.h defs.h struct.h data.h shmem.h grid.h | |
375 fatudp.o : fatudp.c config.h defs.h data.h packets.h shmem.h struct.h | |
376 findslot.o : findslot.c config.h defs.h struct.h data.h packets.h shmem.h | |
377 gameconf.o : gameconf.c config.h defs.h gppackets.h packets.h shmem.h struct.h \ | |
378 data.h | |
379 getentry.o : getentry.c config.h defs.h struct.h data.h packets.h shmem.h | |
380 getname.o : getname.c config.h defs.h struct.h data.h packets.h path.h shmem.h | |
381 getship.o : getship.c config.h defs.h struct.h data.h shmem.h | |
382 getstats.o : getstats.c config.h | |
383 grid.o : grid.c config.h struct.h defs.h shmem.h | |
384 input.o : input.c config.h defs.h struct.h data.h shmem.h | |
385 interface.o : interface.c config.h defs.h struct.h data.h shmem.h | |
386 listen.o : listen.c path.h | |
387 main.o : main.c config.h defs.h struct.h data.h packets.h shmem.h path.h | |
388 misc.o : misc.c config.h defs.h misc.h struct.h data.h daemonII.h planets.h \ | |
389 shmem.h | |
390 missile.o : missile.c config.h defs.h struct.h data.h shmem.h grid.h | |
391 orbit.o : orbit.c config.h defs.h struct.h data.h shmem.h | |
392 packets.o : packets.c config.h defs.h packets.h gppackets.h wtext.h | |
393 parsexbm.o : parsexbm.c config.h | |
394 path.o : path.c config.h | |
395 phaser.o : phaser.c config.h defs.h struct.h data.h weapons.h shmem.h | |
396 ping.o : ping.c config.h defs.h struct.h data.h packets.h shmem.h | |
397 pl_gen0.o : pl_gen0.c config.h defs.h struct.h shmem.h planets.h | |
398 pl_gen1.o : pl_gen1.c config.h defs.h struct.h data.h shmem.h planets.h | |
399 pl_gen2.o : pl_gen2.c config.h defs.h struct.h data.h shmem.h planets.h | |
400 pl_gen3.o : pl_gen3.c config.h defs.h struct.h data.h shmem.h planets.h | |
401 pl_gen4.o : pl_gen4.c config.h defs.h struct.h data.h shmem.h planets.h | |
402 pl_gen5.o : pl_gen5.c config.h defs.h struct.h data.h shmem.h planets.h | |
403 pl_gen6.o : pl_gen6.c config.h defs.h struct.h data.h shmem.h planets.h | |
404 pl_gen7.o : pl_gen6.c config.h defs.h struct.h data.h shmem.h planets.h | |
405 planets.o : planets.c config.h defs.h struct.h data.h daemonII.h planets.h misc.h \ | |
406 conquer.h player.h grid.h shmem.h | |
407 plasma.o : plasma.c config.h defs.h struct.h data.h shmem.h | |
408 player.o : player.c config.h defs.h struct.h data.h daemonII.h player.h shmem.h \ | |
409 conquer.h | |
410 plutil.o : plutil.c config.h plutil.h data.h defs.h shmem.h struct.h | |
411 redraw.o : redraw.c config.h defs.h struct.h data.h packets.h shmem.h | |
412 reserved.o : reserved.c config.h defs.h packets.h | |
413 resetpassword.o : resetpassword.c struct.h defs.h | |
414 rmove.o : rmove.c config.h defs.h struct.h data.h weapons.h shmem.h | |
415 robotII.o : robotII.c config.h defs.h struct.h data.h shmem.h | |
416 rsa-server.o : rsa-server.c defs.h struct.h data.h packets.h | |
417 rsa_utilmp.o : rsa_utilmp.c | |
418 shipvals.o : shipvals.c config.h defs.h struct.h data.h shmem.h | |
419 shmem.o : shmem.c config.h shmem.h struct.h defs.h path.h data.h shmemP.h | |
420 sintab.o : sintab.c | |
421 smessage.o : smessage.c config.h defs.h struct.h data.h shmem.h | |
422 snake.o : snake.c config.h defs.h struct.h data.h shmem.h | |
423 snakemove.o : snakemove.c config.h defs.h struct.h data.h planets.h shmem.h | |
424 socket.o : socket.c config.h defs.h struct.h data.h packets.h shmem.h path.h \ | |
425 gppackets.h | |
426 sockio.o : sockio.c config.h data.h defs.h packets.h shmem.h struct.h | |
427 stats.o : stats.c config.h defs.h struct.h shmem.h | |
428 structdesc.o : structdesc.c config.h structdesc.h struct.h defs.h | |
429 sysdefaults.o : sysdefaults.c config.h defs.h struct.h data.h getship.h shmem.h \ | |
430 path.h structdesc.h | |
431 terrain.o : terrain.c terrain.h struct.h shmem.h | |
432 timecheck.o : timecheck.c config.h path.h | |
433 tool-ds.o : tool-ds.c config.h shmem.h struct.h defs.h structdesc.h | |
434 tool-reset.o : tool-reset.c config.h defs.h shmem.h struct.h getship.h | |
435 tool-heraldry.o : tool-heraldry.c config.h defs.h struct.h data.h | |
436 tool-hs.o : tool-hs.c config.h struct.h defs.h | |
437 tool-hr.o : tool-hr.c config.h defs.h struct.h path.c path.h | |
438 tool-mes.o : tool-mes.c config.h defs.h data.h shmem.h struct.h | |
439 tool-pl.o : tool-pl.c config.h data.h defs.h shmem.h struct.h tool-util.h | |
440 tool-promo.o : tool-promo.c config.h struct.h defs.h data.h | |
441 tool-trim.o : tool-trim.c config.h defs.h struct.h | |
442 tool-util.o : tool-util.c config.h tool-util.h defs.h | |
443 tool-wm.o : tool-wm.c config.h defs.h struct.h shmem.h | |
444 tool-xtk.o : tool-xtk.c config.h defs.h shmem.h struct.h getship.h | |
445 torp.o : torp.c config.h defs.h struct.h data.h shmem.h | |
446 tourny.o : tourny.c config.h defs.h struct.h shmem.h data.h | |
447 util.o : util.c config.h defs.h struct.h data.h shmem.h | |
448 wander2.o : wander2.c config.h defs.h struct.h data.h | |
449 warning.o : warning.c config.h defs.h struct.h data.h packets.h | |
450 weapons.o : weapons.c config.h defs.h struct.h data.h daemonII.h weapons.h shmem.h |