]> granicus.if.org Git - nethack/commitdiff
make sure recover utily is built for the CROSSCOMPILE target
authornhmall <nhmall@nethack.org>
Thu, 1 Oct 2020 01:45:45 +0000 (21:45 -0400)
committernhmall <nhmall@nethack.org>
Thu, 1 Oct 2020 01:45:45 +0000 (21:45 -0400)
sys/unix/hints/include/cross-post.2020
sys/unix/hints/include/cross-pre.2020

index 7bc1288a6484c31eb05bee7e74a6cf6dfa4d0fde..1b4a984bbe7246e503ca525d6ea50f318342327c 100644 (file)
@@ -18,7 +18,6 @@ $(TARGETPFX)vidvesa.o : ../sys/msdos/vidvesa.c ../sys/msdos/portio.h \
 $(TARGETPFX)vidstub.o : ../sys/msdos/vidvesa.c ../sys/msdos/portio.h \
                $(HACK_H)
 $(TARGETPFX)tile.o : tile.c
-$(TARGETPFX)recover.o : ../util/recover.c
 #
 #.PHONY: dospkg
 dospkg: $(GAMEBIN) $(TARGETPFX)recover.exe ../dat/nhtiles.bmp
@@ -123,8 +122,9 @@ $(TARGETPFX)pcunix.o : ../sys/share/pcunix.c $(HACK_H)
 $(TARGETPFX)tileset.o : ../win/share/tileset.c
 $(TARGETPFX)bmptiles.o : ../win/share/bmptiles.c
 $(TARGETPFX)giftiles.o : ../win/share/giftiles.c
+$(TARGETPFX)recover.o : ../util/recover.c
 $(TARGETPFX)recover.exe : $(TARGETPFX)recover.o
-
+       $(TARGET_LINK) $(TARGET_LFLAGS) -o $@ $(TARGETPFX)recover.o $(TARGET_LIBS)
 #
 # Lua lib
 $(LUACROSSLIB): $(LUALIBOBJS)
index 258051f7d0e823dbedd00f35a8fadd7e085e24aa..e66275ea33b0a04294be63035ba56295a39ac196 100644 (file)
@@ -286,7 +286,9 @@ endif  # WANT_WIN_CURSES
 # Rules for win/share files
 $(TARGETPFX)%.o : ../win/share/%.c
        $(TARGET_CC) $(TARGET_CFLAGS) -o$@ $<
-# 
+# Rules for util files heading for target
+$(TARGETPFX)%.o : ../util/%.c
+       $(TARGET_CC) $(TARGET_CFLAGS) -o$@ $<
 # End of cross-compiling -PRE section
 #===============-=================================================