-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add specific hints file for github actions.
Oops.
- Loading branch information
Showing
1 changed file
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# | ||
# NetHack 3.6 linux $NHDT-Date: 1432512814 2015/05/25 00:13:34 $ $NHDT-Branch: master $:$NHDT-Revision: 1.12 $ | ||
# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007. | ||
# NetHack may be freely redistributed. See license for details. | ||
# | ||
#-PRE | ||
# Linux hints file | ||
# This hints file provides a single-user tty build for Linux, specifically | ||
# for Ubuntu dapper. | ||
|
||
|
||
#PREFIX=/usr | ||
PREFIX=$(wildcard ~)/nh/install | ||
HACKDIR=$(PREFIX)/games/lib/$(GAME)dir | ||
SHELLDIR = $(PREFIX)/games | ||
INSTDIR=$(HACKDIR) | ||
VARDIR = $(HACKDIR) | ||
|
||
|
||
POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf; | ||
|
||
CFLAGS=-g3 -O0 -I../include -DNOTPARMDECL -fno-common | ||
CFLAGS+=-DDLB | ||
CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" | ||
CFLAGS+=-DGCC_WARN -Wall -Wextra -Wformat | ||
CFLAGS+=-Wimplicit -Wreturn-type -Wunused -Wswitch -Wshadow -Wwrite-strings | ||
CFLAGS+=-pedantic -Wstringop-truncation -Wunused-result -Wunreachable-code | ||
CFLAGS+=-Wimplicit-function-declaration -Wimplicit-int | ||
CFLAGS+=-Wno-format-nonliteral -Wno-missing-field-initializers | ||
CFLAGS+=-Wno-format-overflow -Wno-stringop-overflow | ||
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE | ||
CFLAGS+=-DTIMED_DELAY | ||
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\" | ||
CFLAGS+=-DVAR_PLAYGROUND=\"$(HACKDIR)/var\" | ||
CFLAGS+=-DCONFIG_ERROR_SECURE=FALSE | ||
CFLAGS+=-DCURSES_GRAPHICS | ||
CFLAGS+=-DPANICLOG_FMT2 | ||
CFLAGS+=-DTTY_TILES_ESCCODES | ||
CFLAGS+=-DEDIT_GETLIN | ||
CFLAGS+=-DSCORE_ON_BOTL | ||
CFLAGS+=-DDGAMELAUNCH | ||
CFLAGS+=-DLIVELOG_ENABLE | ||
CFLAGS+=-DDUMPLOG | ||
CFLAGS+=-DDUMPHTML | ||
CFLAGS+=-DTNNT_BETA | ||
# server location - comment out the ones that don't apply | ||
CFLAGS+=-DSERVER_LOCATION=\"au.hardfought.org\" | ||
#CFLAGS+=-DSERVER_LOCATION=\"eu.hardfought.org\" | ||
#CFLAGS+=-DSERVER_LOCATION=\"us.hardfought.org\" | ||
|
||
LINK=$(CC) | ||
# Only needed for GLIBC stack trace: | ||
LFLAGS=-rdynamic | ||
|
||
WINSRC = $(WINTTYSRC) $(WINCURSESSRC) | ||
WINOBJ = $(WINTTYOBJ) $(WINCURSESOBJ) | ||
WINLIB = $(WINTTYLIB) $(WINCURSESLIB) | ||
|
||
# if TTY_TILES_ESCCODES | ||
WINSRC += tile.c | ||
WINOBJ += tile.o | ||
|
||
WINTTYLIB=-lncurses -ltinfo | ||
|
||
CHOWN=true | ||
CHGRP=true | ||
|
||
GAMEUID=games | ||
GAMEGRP=bin | ||
|
||
VARDIRPERM = 0755 | ||
VARFILEPERM = 0600 | ||
GAMEPERM = 0755 |