Skip to content

Commit

Permalink
Add specific hints file for github actions.
Browse files Browse the repository at this point in the history
Oops.
  • Loading branch information
k21971 committed Oct 14, 2024
1 parent 8049ad0 commit 2a5fdb4
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions sys/unix/hints/linux-debug.gha
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

0 comments on commit 2a5fdb4

Please sign in to comment.