diff options
-rw-r--r-- | tests/utils/Makefile | 2 | ||||
-rw-r--r-- | tests/utils/Makefile.fpc | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/tests/utils/Makefile b/tests/utils/Makefile index 624492458f..ce7c6b5f66 100644 --- a/tests/utils/Makefile +++ b/tests/utils/Makefile @@ -2043,5 +2043,7 @@ include fpcmake.loc endif .NOTPARALLEL: utils: all +dosbox_wrapper$(SRCEXEEXT): dosbox/dosbox_wrapper.pas + $(COMPILER) -FE./dosbox $< utilsdb: $(MAKE) utils DBDIGEST="dbdigest dbconfig" diff --git a/tests/utils/Makefile.fpc b/tests/utils/Makefile.fpc index a82290afc5..89d39c7523 100644 --- a/tests/utils/Makefile.fpc +++ b/tests/utils/Makefile.fpc @@ -13,7 +13,7 @@ fpcdir=../.. nortl=y [target] -programs=dotest fptime fail testfail digest concat $(DBDIGEST) +programs=dotest fptime fail testfail digest concat $(DBDIGEST) $(MSDOSPROG) programs_win32=prepup programs_win64=prepup programs_go32v2=prepup @@ -21,10 +21,21 @@ programs_go32v2=prepup [clean] programs=dbdigest dbconfig +[prerules] + +ifneq ($(findstring dosbox_wrapper,$(EMULATOR)),) + MSDOSPROG=dosbox/dosbox_wrapper$(SRCEXEEXT) +else + MSDOSPROG= +endif + [rules] .NOTPARALLEL: utils: all +dosbox/dosbox_wrapper$(SRCEXEEXT): dosbox/dosbox_wrapper.pas + $(COMPILER) -FE./dosbox $< + utilsdb: $(MAKE) utils DBDIGEST="dbdigest dbconfig" |