OSDN Git Service

upgrade to 3.6.2
[jnethack/source.git] / sys / unix / hints / solaris-playground
1 #
2 # NetHack 3.6 unix $NHDT-Date: 1554411633 2019/04/04 21:00:33 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.0 $
3 # Copyright (c) Kevin Smolkowski "Snivik", Elgin Oregon 2019.
4 # NetHack may be freely redistributed.  See license for details. 
5 #
6 #-PRE
7 # This hints file provides a shared playground build for Solaris, specifically
8 # for Solaris 10 and 11, but should work just fine on older versions
9
10 # Nethack will install suid games, and will expect to read a users .nethackrc file from
11 # their home directory which may be a problem on secure systems with read restricted home
12 # directories,  not that you would problably run NetHack on such a system anyway.  :)
13
14 # Build using using included gcc and gmake, optional flex and bison come from csw for solaris 10 
15 # and included on Solaris 11
16
17
18 PREFIX=/usr
19 HACKDIR=$(PREFIX)/games/lib/$(GAME)dir
20 INSTDIR=$(HACKDIR)
21 VARDIR=$(HACKDIR)
22 SHELLDIR=$(PREFIX)/games
23
24 POSTINSTALL= cp sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf;$(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
25
26 CC=gcc
27 CFLAGS=-O -I../include
28 LINK=$(CC)
29
30 WINSRC = $(WINTTYSRC)
31 WINOBJ = $(WINTTYOBJ)
32 WINLIB = $(WINTTYLIB)
33
34 WINTTYLIB=-ltermlib
35
36 CHOWN=chown
37 CHGRP=chgrp
38
39 GAMEUID  = games
40 GAMEGRP  = bin
41
42 GAMEPERM = 04755
43 VARFILEPERM = 0644
44 VARDIRPERM = 0755
45
46 # Optional Tools to build level compiler
47 #LEX=flex
48 #YACC=bison -y