Add options SYSCF (to add a system-wide configuration file) and SYSCF_FILE (for a file-based implementation of SYSCF) - this allows a binary distribution to be configured at install time. The only option supported at this time is WIZARDS - a list of usernames which can use -D; currently only for unix-likes but should be extendable to anything that has a concept of multiple users. Add mac tty multiuser config using sgid.
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
#
|
|
# SCCS Id: @(#)macosx-x11 3.5 2007/12/12
|
|
# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007.
|
|
# NetHack may be freely redistributed. See license for details.
|
|
#
|
|
# Mac OS X (Darwin) hints file for X11
|
|
# This is for Mac OS X 10.4.10 (Darwin 8.10). If this doesn't work for some
|
|
# other version of either Darwin or Mac OS X, make a new file for that OS,
|
|
# don't change this one.
|
|
# Useful info: http://www.opensource.apple.com/darwinsource/index.html
|
|
|
|
# This is an X11 build for a single user.
|
|
|
|
PREFIX:=$(wildcard ~)
|
|
SHELLDIR=$(PREFIX)/bin
|
|
HACKDIR=$(PREFIX)/nethackdir
|
|
|
|
#HACKDIR=$(PREFIX)/games/lib/$(GAME)dir
|
|
#PREFIX=/usr
|
|
|
|
CC=gcc -W -Wimplicit -Wreturn-type -Wunused -Wformat -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -DGCC_WARN
|
|
|
|
# XXX -g vs -O should go here, -I../include goes in the makefile
|
|
CFLAGS=-g -I../include $(CFLAGS2) $(CFLAGS3)
|
|
CFLAGS2=-DNOCLIPPING -DNOMAIL -DNOTPARMDECL -DHACKDIR=\"$(HACKDIR)\"
|
|
CFLAGS3=-DX11_GRAPHICS -DDEFAULT_WINDOW_SYS=\"X11\" -DNOTTYGRAPHICS
|
|
LFLAGS=-L/usr/X11R6/lib
|
|
|
|
CHOWN=true
|
|
CHGRP=true
|
|
|
|
WINSRC = $(WINX11SRC)
|
|
WINOBJ = $(WINX11OBJ)
|
|
WINLIB = $(WINX11LIB)
|
|
VARDIRPERM = 0755
|
|
|
|
VARDATND = x11tiles NetHack.ad pet_mark.xbm
|
|
|
|
# XXX install nethack.rc as ~/.nethackrc if no ~/.nethackrc exists
|
|
|
|
POSTINSTALL= bdftopcf win/X11/nh10.bdf > $(HACKDIR)/nh10.pcf; (cd $(HACKDIR); mkfontdir)
|