libnh follow-up
This commit is contained in:
@@ -12,7 +12,7 @@ if [ x$1 == "xlib" ]; then
|
||||
fi
|
||||
|
||||
if [ x$1 == "xrunlib" ]; then
|
||||
LIBS="-Lsrc -lnethack -Llib/lua -llua -lm"
|
||||
LIBS="-Lsrc -lnh -Llib/lua -llua -lm"
|
||||
BADLIBS="-lncurses"
|
||||
rm nhlibtest
|
||||
gcc -o nhlibtest libtest.c $LIBS $BADLIBS
|
||||
|
||||
@@ -172,14 +172,15 @@ GITBRANCH = -DNETHACK_GIT_BRANCH=\"$(GIT_BRANCH)\"
|
||||
endif
|
||||
|
||||
ifdef WANT_LIBNH
|
||||
CFLAGS += -DSHIM_GRAPHICS -DNOTTYGRAPHICS -DNOSHELL -DLIBNH
|
||||
CFLAGS += -DSHIM_GRAPHICS -DNOTTYGRAPHICS -DNOSHELL -DLIBNH -fpic
|
||||
LIBNHSYSSRC = ../sys/libnh/libnhmain.c \
|
||||
../sys/share/ioctl.c ../sys/share/unixtty.c \
|
||||
../sys/unix/unixunix.c ../sys/unix/unixres.c \
|
||||
../win/shim/winshim.c
|
||||
LIBNHSYSOBJ = $(TARGETPFX)libnhmain.o $(TARGETPFX)ioctl.o \
|
||||
$(TARGETPFX)unixtty.o $(TARGETPFX)unixunix.o \
|
||||
$(TARGETPFX)unixres.o $(TARGETPFX)winshim.o
|
||||
$(TARGETPFX)unixres.o $(TARGETPFX)winshim.o \
|
||||
$(TARGETPFX)date.o
|
||||
#don't bother building the game executable as it will fail
|
||||
#without winshim
|
||||
override GAME=
|
||||
|
||||
Reference in New Issue
Block a user