From: nhmall Date: Tue, 29 Sep 2020 13:41:31 +0000 (-0400) Subject: msdos cross-compile follow-up bits X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e9303f9dffa44a9f84b4e3aa0bd035184c9f3c1;p=nethack msdos cross-compile follow-up bits add missing make rule for ../win/share files to cross-pre.2020 adjust .travis.yml to use the new approach for building msdos target --- diff --git a/.travis.yml b/.travis.yml index 21bd109d2..0b1e388a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -138,7 +138,7 @@ matrix: - mingw32-make LUA_VERSION=$LUA_VERSION install - name: msdos-linux-focal-djgpp-crosscompile os: linux - env: HINTS=linux LUA_VERSION=5.4.0 + env: HINTS=linux.2020 LUA_VERSION=5.4.0 dist: focal compiler: gcc script: @@ -148,8 +148,9 @@ matrix: - cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../ - make fetch-lua - test -d "lib/lua-$LUA_VERSION/src" || exit 0 - - cd lib/lua-$LUA_VERSION/src && make CC='gcc' a && cd ../../.. - - sh sys/msdos/msdos-cross-compile.sh + - sh sys/msdos/fetch-cross-compiler.sh + - make LUA_VERSION=$LUA_VERSION WANT_WIN_TTY=1 WANT_WIN_CURSES=1 CROSS_TO_MSDOS=1 all + - make LUA_VERSION=$LUA_VERSION WANT_WIN_TTY=1 WANT_WIN_CURSES=1 CROSS_TO_MSDOS=1 package exclude: # - os: osx # osx_image: xcode10.3 diff --git a/sys/unix/hints/include/cross-post.2020 b/sys/unix/hints/include/cross-post.2020 index 45d0ce018..7bc1288a6 100644 --- a/sys/unix/hints/include/cross-post.2020 +++ b/sys/unix/hints/include/cross-post.2020 @@ -18,6 +18,7 @@ $(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 diff --git a/sys/unix/hints/include/cross-pre.2020 b/sys/unix/hints/include/cross-pre.2020 index 796703754..77ee5b3f7 100644 --- a/sys/unix/hints/include/cross-pre.2020 +++ b/sys/unix/hints/include/cross-pre.2020 @@ -283,7 +283,9 @@ ifdef WANT_WIN_CURSES $(TARGETPFX)%.o : $(PDCTOP)/pdcurses/%.c $(TARGET_CC) $(PDCINCL) $(TARGET_CFLAGS) -o$@ $< endif # WANT_WIN_CURSES - +# Rules for win/share files +$(TARGETPFX)%.o : ../win/share/%.c + $(TARGET_CC) $(TARGET_CFLAGS) -o$@ $< # # End of cross-compiling -PRE section #===============-=================================================