xref: /netbsd/games/hunt/Makefile.inc (revision 6550d01e)
1#	$NetBSD: Makefile.inc,v 1.11 2009/07/04 07:51:34 dholland Exp $
2#
3#
4#  Hunt
5#
6# Copyright (c) 1983-2003, Regents of the University of California.
7# All rights reserved.
8#
9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions are
11# met:
12#
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
21#   permission.
22#
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.
34#
35
36#
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
47#
48GAME_PARAM=	-DRANDOM -DREFLECT -DMONITOR -DOOZE -DFLY -DVOLCANO -DBOOTS \
49		-DOTTO
50
51#
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
57#			INTERNET)
58#	LOG		Use syslog(3) for logging errors
59#	HPUX		do special HPUX only hacks
60#
61DEFS_BSD43=	-DINTERNET -DLOG
62DEFS_BSD44=	-DINTERNET -DLOG
63DEFS_SUN=	-DINTERNET -DLOG
64DEFS_SUN4_0=	-DINTERNET -DLOG
65DEFS_ULTRIX=	-DINTERNET -DLOG
66DEFS_HPUX=	-DINTERNET -DLOG -DHPUX
67DEFS_SGI=	-DINTERNET -DLOG
68DEFS_NEXT=	-DINTERNET -DLOG -bsd -Dconst=
69DEFS_OSF1=	-DINTERNET -DLOG -D_BSD
70
71#
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
76# SYSLIBS=	-lbsd
77#
78SYSCFLAGS=
79SYSLIBS=
80
81#
82# Generic definitions
83#
84DEFS=		$(GAME_PARAM) $(DEFS_BSD44)
85CPPFLAGS+=	$(SYSCFLAGS) $(DEFS) -DHUNTD=\"/usr/games/huntd\"
86
87.include "../Makefile.inc"
88