-# $NetBSD: Makefile.inc,v 1.8 1997/11/19 08:23:16 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.13 2008/01/28 07:03:58 dholland Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 5/31/93
-.if defined(HIDEGAME) && defined(PROG)
-BINDIR?= /usr/games/hide
-BINGRP?= games
-BINMODE?= 550
+MKHIDEGAME?= no
+
+.if defined(HIDEGAME) && (MKHIDEGAME!=no) && defined(PROG)
+BINDIR= /usr/games/hide
+BINGRP= games
+.if defined(SETGIDGAME)
+USE_FORT?= yes
+BINMODE= 2550
+.else
+BINMODE= 550
+.endif
SYMLINKS+= dm /usr/games/${PROG}
.else
-BINDIR?= /usr/games
+BINDIR= /usr/games
+.if defined(SETGIDGAME)
+BINGRP= games
+BINMODE= 2555
+.endif
.endif
-WARNS?= 1
+WARNS?= 4