]> granicus.if.org Git - nethack/commitdiff
wasm requires HACKDIR for embedded files
authorAdam Powers <apowers@ato.ms>
Mon, 19 Oct 2020 18:54:42 +0000 (11:54 -0700)
committerAdam Powers <apowers@ato.ms>
Mon, 19 Oct 2020 18:54:42 +0000 (11:54 -0700)
sys/unix/hints/macOS.2020

index 85f9b320860b9c4f55468a7306cfc726114ba191..e6fae4c06d8aa89b22a82952cfcbbac7be4afc7d 100755 (executable)
@@ -281,6 +281,11 @@ POSTINSTALL+= if test -f $(SHELLDIR)/$(GAME); then \
 endif   # WANT_BUNDLE
 endif   # !WANT_SHARE_INSTALL
 
+ifdef CROSS_TO_WASM
+HACKDIR=/
+PREFIX=
+endif # !CROSS_TO_WASM
+
 INSTDIR=$(HACKDIR)
 VARDIR=$(HACKDIR)
 
@@ -294,6 +299,7 @@ VARDIR=$(HACKDIR)
 #-INCLUDE cross-pre.2020
 #
 #-POST
+
 ifdef WANT_LIBNH
 libnh.a: $(HOBJ) $(LIBNHSYSOBJ) ../lib/lua/liblua.a
        $(AR) rcs $@ $(HOBJ) $(LIBNHSYSOBJ) ../lib/lua/liblua.a