Fix build failing for libnh when using TARGETPFX

Compiling with WANT_LIBNH=1 and TARGETPFX=(...) failed because ioctl.o
could not be found.

This is because the targets are specified with the $(TARGETPFX) but the
libnh targets consumed these targets without the $(TARGETPFX).
This commit is contained in:
Dexter Castor Döpping
2021-12-15 22:36:50 +01:00
parent 4d42823fd8
commit 967dcbccf4
2 changed files with 6 additions and 4 deletions

View File

@@ -155,8 +155,9 @@ 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= libnhmain.o ioctl.o unixtty.o unixunix.o \
unixres.o winshim.o
LIBNHSYSOBJ = libnhmain.o $(TARGETPFX)ioctl.o \
$(TARGETPFX)unixtty.o $(TARGETPFX)unixunix.o \
$(TARGETPFX)unixres.o winshim.o
#don't bother building the game executable as it will fail
#without winshim
override GAME=

View File

@@ -155,8 +155,9 @@ 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= libnhmain.o ioctl.o unixtty.o unixunix.o \
unixres.o winshim.o
LIBNHSYSOBJ = libnhmain.o $(TARGETPFX)ioctl.o \
$(TARGETPFX)unixtty.o $(TARGETPFX)unixunix.o \
$(TARGETPFX)unixres.o winshim.o
#don't bother building the game executable as it will fail
#without winshim
override GAME=