diff --git a/sys/unix/hints/linux-debug.gha b/sys/unix/hints/linux-debug.gha new file mode 100644 index 000000000..326918cc3 --- /dev/null +++ b/sys/unix/hints/linux-debug.gha @@ -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