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