From 92902fd1281adeb6342c75bb5f08527515002cfe Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 30 Sep 2020 21:45:45 -0400 Subject: [PATCH] make sure recover utily is built for the CROSSCOMPILE target --- sys/unix/hints/include/cross-post.2020 | 4 ++-- sys/unix/hints/include/cross-pre.2020 | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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 #===============-=================================================