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