5857N/A#-PRE
5857N/A# Solaris hints file
5857N/A# This hints file provides tty and X11 builds for Solaris.
5857N/A
5857N/A# During build, DESTDIR should be empty. During install, DESTDIR should be the
5857N/A# root of the proto area.
5857N/A
5857N/A# GAME is not set in Makefile.utl, but we need to have it set.
5857N/A# CLIENT_HACKDIR needs to be set separately from HACKDIR, since we use it
5857N/A# as a substitution in the nethack script, and can't have the workspace
5857N/A# path embedded in that script. The rest should have DESTDIR prepended.
5857N/AGAME=nethack
5857N/APREFIX=/usr
5857N/ACLIENT_HACKDIR=$(PREFIX)/lib/$(GAME)
5857N/AHACKDIR=$(DESTDIR)$(CLIENT_HACKDIR)
5857N/ASHELLDIR = $(DESTDIR)$(PREFIX)/bin
5857N/AINSTDIR=$(HACKDIR)
5857N/AVARDIR = $(DESTDIR)/var/games/$(GAME)
5857N/A
5857N/A
5857N/A# Inherit CFLAGS from outside, via TOP_CFLAGS, and then do a bunch of
5857N/A# customization.
5857N/ACFLAGS=$(TOP_CFLAGS)
5857N/ACFLAGS+=-I../include
5857N/ACFLAGS+=-DX11_GRAPHICS -DUSE_XPM -DVISION_TABLES=1 -DTIMED_DELAY=1
5857N/ACFLAGS+=-DVAR_PLAYGROUND=\"$(VARDIR)\" -DLOCKDIR=\"$(VARDIR)\"
5857N/ACFLAGS+=-DCOMPRESS=\"/usr/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
5857N/ACFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
5857N/A
5857N/ALINK=$(CC)
5857N/A
5857N/A# Build for both tty and X11
5857N/AWINSRC = $(WINTTYSRC) $(WINX11SRC)
5857N/AWINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
5857N/AWINLIB = -Wl,-zignore $(WINTTYLIB) $(WINX11LIB)
5857N/A
5857N/AWINTTYLIB=-lcurses
5857N/A
5857N/AVARDATND=x11tiles NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm
5857N/A
5857N/A# The installation believes it's installing to the live filesystem, so it
5857N/A# wants to set owner, group, and mode. Prevent the first two (which won't
5857N/A# be possible in a non-root build) and give reasonable but still arbitrary
5857N/A# values for the last.
5857N/ACHOWN=true
5857N/ACHGRP=true
5857N/AGAMEPERM = 0755
5857N/AVARFILEPERM = 0644
5857N/AVARDIRPERM = 0755
5857N/A
5857N/A#-POST
5857N/A# Override WINX11LIB in Makefile.src, to remove -lXmu and add -lXpm
5857N/AWINX11LIB=-lXaw -lXext -lXt -lX11 -lXpm
5857N/A
5857N/A# We need these down here in order to override the use of lex & yacc in
5857N/A# Makefile.utl
5857N/ALEX=flex
5857N/AYACC=bison -y