From: nhmall Date: Thu, 1 Oct 2020 01:45:45 +0000 (-0400) Subject: make sure recover utily is built for the CROSSCOMPILE target X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92902fd1281adeb6342c75bb5f08527515002cfe;p=nethack make sure recover utily is built for the CROSSCOMPILE target --- diff --git a/sys/unix/hints/include/cross-post.2020 b/sys/unix/hints/include/cross-post.2020 index 7bc1288a6..1b4a984bb 100644 --- a/sys/unix/hints/include/cross-post.2020 +++ b/sys/unix/hints/include/cross-post.2020 @@ -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) diff --git a/sys/unix/hints/include/cross-pre.2020 b/sys/unix/hints/include/cross-pre.2020 index 258051f7d..e66275ea3 100644 --- a/sys/unix/hints/include/cross-pre.2020 +++ b/sys/unix/hints/include/cross-pre.2020 @@ -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 #===============-=================================================