Makefile.inc revision 1.8 1 1.8 dholland # $NetBSD: Makefile.inc,v 1.8 2009/07/04 06:31:31 dholland Exp $
2 1.7 wiz #
3 1.1 mrg #
4 1.1 mrg # Hunt
5 1.7 wiz #
6 1.7 wiz # Copyright (c) 1983-2003, Regents of the University of California.
7 1.7 wiz # All rights reserved.
8 1.7 wiz #
9 1.7 wiz # Redistribution and use in source and binary forms, with or without
10 1.7 wiz # modification, are permitted provided that the following conditions are
11 1.7 wiz # met:
12 1.7 wiz #
13 1.7 wiz # + Redistributions of source code must retain the above copyright
14 1.7 wiz # notice, this list of conditions and the following disclaimer.
15 1.7 wiz # + Redistributions in binary form must reproduce the above copyright
16 1.7 wiz # notice, this list of conditions and the following disclaimer in the
17 1.7 wiz # documentation and/or other materials provided with the distribution.
18 1.7 wiz # + Neither the name of the University of California, San Francisco nor
19 1.7 wiz # the names of its contributors may be used to endorse or promote
20 1.7 wiz # products derived from this software without specific prior written
21 1.7 wiz # permission.
22 1.7 wiz #
23 1.7 wiz # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
24 1.7 wiz # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
25 1.7 wiz # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
26 1.7 wiz # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27 1.7 wiz # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28 1.7 wiz # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29 1.7 wiz # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30 1.7 wiz # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31 1.7 wiz # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 1.7 wiz # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 1.7 wiz # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 1.7 wiz #
35 1.1 mrg
36 1.1 mrg #
37 1.1 mrg # Game parameter flags are:
38 1.1 mrg # RANDOM Include doors which disperse shots randomly
39 1.1 mrg # REFLECT Include diagonal walls that reflect shots
40 1.1 mrg # MONITOR Include code for watching the game from the sidelines
41 1.1 mrg # OOZE Include slime shots
42 1.1 mrg # FLY Make people fly when walls regenerate under them
43 1.1 mrg # VOLCANO Include occasional large slime explosions
44 1.1 mrg # DRONE Include occasional drone shots
45 1.1 mrg # BOOTS Include boots (which makes you immune to slime)
46 1.1 mrg # OTTO Reserved for CGL automatic player
47 1.1 mrg #
48 1.1 mrg GAME_PARAM= -DRANDOM -DREFLECT -DMONITOR -DOOZE -DFLY -DVOLCANO -DBOOTS \
49 1.1 mrg -DOTTO
50 1.1 mrg
51 1.1 mrg #
52 1.1 mrg # System parameter flags are:
53 1.1 mrg # DEBUG Don't trust everything in the code
54 1.1 mrg # INTERNET Use the Internet domain IPC instead of UNIX domain
55 1.8 dholland # LOG Use syslog error-logging in driver
56 1.1 mrg # OLDIPC Use 4.1a internet system calls (must also define
57 1.1 mrg # INTERNET)
58 1.1 mrg # TERMINFO Use terminfo instead of termcap
59 1.1 mrg # LOG Use syslog(3) for logging errors
60 1.1 mrg # BSD_RELEASE Which version of BSD distribution
61 1.8 dholland # 42 is 4.2BSD
62 1.8 dholland # 43 is 4.3BSD (implies BROADCAST)
63 1.1 mrg # USE_CURSES Use curses for everything (automatic w/TERMINFO)
64 1.1 mrg # SIGNAL_TYPE void or int
65 1.1 mrg # HPUX do special HPUX only hacks
66 1.1 mrg #
67 1.1 mrg DEFS_BSD43= -DINTERNET -DLOG -DBSD_RELEASE=43 -DSIGNAL_TYPE=int
68 1.4 simonb DEFS_BSD44= -DINTERNET -DLOG -DBSD_RELEASE=44 -DSIGNAL_TYPE=void -DUSE_CURSES
69 1.1 mrg DEFS_SUN= -DINTERNET -DLOG -DBSD_RELEASE=42 -DBROADCAST -DSIGNAL_TYPE=int
70 1.8 dholland DEFS_SUN4_0= -DINTERNET -DLOG -DBROADCAST -DSIGNAL_TYPE=void
71 1.1 mrg DEFS_ULTRIX= -DINTERNET -DLOG -DBSD_RELEASE=42 -DSIGNAL_TYPE=void
72 1.8 dholland DEFS_HPUX= -DHPUX -DINTERNET -DLOG -DBROADCAST -DTERMINFO -DSIGNAL_TYPE=void
73 1.1 mrg DEFS_SGI= -DINTERNET -DLOG -DBSD_RELEASE=43 -DTERMINFO -DSIGNAL_TYPE=void
74 1.7 wiz DEFS_NEXT= $(DEFS_BSD43) -bsd -Dconst= -DSIGNAL_TYPE=int
75 1.1 mrg DEFS_OSF1= -DINTERNET -DLOG -DBSD_RELEASE=43 -DSIGNAL_TYPE=void -D_BSD
76 1.1 mrg
77 1.1 mrg #
78 1.1 mrg # The following flags are used for system specific compilation arguments.
79 1.1 mrg # Change them to include the appropriate arguments. For example, on SGI
80 1.1 mrg # machines, they should look like
81 1.1 mrg # SYSCFLAGS= -I/usr/include/bsd
82 1.1 mrg # SYSLIBS= -lbsd
83 1.1 mrg #
84 1.1 mrg SYSCFLAGS=
85 1.1 mrg SYSLIBS=
86 1.1 mrg
87 1.1 mrg #
88 1.1 mrg # Generic definitions
89 1.1 mrg #
90 1.6 mycroft DEFS= $(GAME_PARAM) $(DEFS_BSD44)
91 1.3 lukem CPPFLAGS+= $(SYSCFLAGS) $(DEFS) -DHUNTD=\"/usr/games/huntd\"
92 1.1 mrg
93 1.2 lukem .include "../Makefile.inc"
94