TastyBasic Build Adjustments

- Minor changes to the build process in TastyBasic to ensure binary identical results across all platforms.
This commit is contained in:
Wayne Warthen
2021-10-30 20:32:09 -07:00
parent 5af8996e66
commit 6d115df490
6 changed files with 16 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ set PATH=%TOOLS%\tasm32;%PATH%
set TASMTABS=%TOOLS%\tasm32
tasm -80 -dROMWBW tastybasic.asm tastybasic.bin tastybasic.bin.lst
tasm -80 -dCPM tastybasic.asm tastybasic.com tastybasic.com.lst
tasm -80 -g3 -fFF -dROMWBW tastybasic.asm tastybasic.bin tastybasic.bin.lst
tasm -80 -g3 -fFF -dCPM tastybasic.asm tastybasic.com tastybasic.com.lst
copy /b /v tastybasic.com ..\..\..\Binary\Apps\tbasic.com

View File

@@ -7,5 +7,4 @@ if exist *.prn del *.prn
if exist *.hex del *.hex
if exist *.rel del *.rel
if exist *.sym del *.sym
if exist ..\..\..\Binary\Apps\tbasic.com del ..\..\..\Binary\Apps\tbasic.com
if exist *.com del *.com

View File

@@ -1,5 +1,5 @@
UNAME := $(shell uname)
VER := $(shell git describe --tags --abbrev=0)
# VER := $(shell git describe --tags --abbrev=0)
APPDIR := $(wildcard ../../../Binary/Apps)
BINDIR := ../../../Tools/$(UNAME)
@@ -14,17 +14,21 @@ export PATH := $(BINDIR):${PATH}
all: $(ROMIMAGE) $(CPMCMD) | $(APPDIR)
clean clobber:
@rm -f *.lst *.img *.com *.bin $(CPMAPP)
clean:
@rm -f *.lst *.img *.com *.bin
clobber: clean
@rm -f $(CPMAPP)
$(ROMIMAGE): $(ROMDEPS)
@uz80as -dROMWBW -d"VERSION \"$(VER)\"" tastybasic.asm tastybasic.bin tastybasic.bin.lst
@uz80as -dROMWBW tastybasic.asm tastybasic.bin tastybasic.bin.lst
$(CPMIMAGE): $(CPMCMD)
@mkfs.cpm -f wbw_fd144 tastybasic.img
@cpmcp -f wbw_fd144 tastybasic.img tastybasic.com 0:tbasic.com
$(CPMCMD): $(CPMDEPS)
@uz80as -dCPM -d"VERSION \"$(VER)\"" tastybasic.asm tastybasic.com tastybasic.com.lst
@uz80as -dCPM tastybasic.asm tastybasic.com tastybasic.com.lst
$(APPDIR): $(CPMCMD)
@cat $(CPMCMD) > $(CPMAPP)