5859
|
1 |
#-PRE
|
|
2 |
# Solaris hints file
|
|
3 |
# This hints file provides tty and X11 builds for Solaris.
|
|
4 |
|
|
5 |
# During build, DESTDIR should be empty. During install, DESTDIR should be the
|
|
6 |
# root of the proto area.
|
|
7 |
|
|
8 |
# GAME is not set in Makefile.utl, but we need to have it set.
|
|
9 |
# CLIENT_HACKDIR needs to be set separately from HACKDIR, since we use it
|
|
10 |
# as a substitution in the nethack script, and can't have the workspace
|
|
11 |
# path embedded in that script. The rest should have DESTDIR prepended.
|
|
12 |
GAME=nethack
|
|
13 |
PREFIX=/usr
|
|
14 |
CLIENT_HACKDIR=$(PREFIX)/lib/$(GAME)
|
|
15 |
HACKDIR=$(DESTDIR)$(CLIENT_HACKDIR)
|
|
16 |
SHELLDIR = $(DESTDIR)$(PREFIX)/bin
|
|
17 |
INSTDIR=$(HACKDIR)
|
|
18 |
VARDIR = $(DESTDIR)/var/games/$(GAME)
|
|
19 |
|
|
20 |
|
|
21 |
# Inherit CFLAGS from outside, via TOP_CFLAGS, and then do a bunch of
|
|
22 |
# customization.
|
|
23 |
CFLAGS=$(TOP_CFLAGS)
|
|
24 |
CFLAGS+=-I../include
|
|
25 |
CFLAGS+=-DX11_GRAPHICS -DUSE_XPM -DVISION_TABLES=1 -DTIMED_DELAY=1
|
|
26 |
CFLAGS+=-DVAR_PLAYGROUND=\"$(VARDIR)\" -DLOCKDIR=\"$(VARDIR)\"
|
|
27 |
CFLAGS+=-DCOMPRESS=\"/usr/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
|
|
28 |
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
|
|
29 |
|
|
30 |
LINK=$(CC)
|
|
31 |
|
|
32 |
# Build for both tty and X11
|
|
33 |
WINSRC = $(WINTTYSRC) $(WINX11SRC)
|
|
34 |
WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
|
|
35 |
WINLIB = -Wl,-zignore $(WINTTYLIB) $(WINX11LIB)
|
|
36 |
|
|
37 |
WINTTYLIB=-lcurses
|
|
38 |
|
|
39 |
VARDATND=x11tiles NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm
|
|
40 |
|
|
41 |
# The installation believes it's installing to the live filesystem, so it
|
|
42 |
# wants to set owner, group, and mode. Prevent the first two (which won't
|
|
43 |
# be possible in a non-root build) and give reasonable but still arbitrary
|
|
44 |
# values for the last.
|
|
45 |
CHOWN=true
|
|
46 |
CHGRP=true
|
|
47 |
GAMEPERM = 0755
|
|
48 |
VARFILEPERM = 0644
|
|
49 |
VARDIRPERM = 0755
|
|
50 |
|
|
51 |
#-POST
|
|
52 |
# Override WINX11LIB in Makefile.src, to remove -lXmu and add -lXpm
|
|
53 |
WINX11LIB=-lXaw -lXext -lXt -lX11 -lXpm
|
|
54 |
|
|
55 |
# We need these down here in order to override the use of lex & yacc in
|
|
56 |
# Makefile.utl
|
|
57 |
LEX=flex
|
|
58 |
YACC=bison -y
|