Browse Source

Unix Build Tweaks

Small stuff.  Mostly just gets the make diff mechanism working again.  Not sure if anyone actually uses it though.
pull/331/head
Wayne Warthen 4 years ago
parent
commit
4385efb0f7
  1. 2
      Build.cmd
  2. 1
      Source/CPM3/Makefile
  3. 20
      Source/HBIOS/Build.sh
  4. 13
      Source/HBIOS/Makefile
  5. 3
      Source/TastyBasic/src/Build.cmd
  6. 3
      Tools/Makefile.inc

2
Build.cmd

@ -3,4 +3,4 @@ setlocal
pushd Source && call Build %* || exit /b & popd
pause
if "%*" == "" pause

1
Source/CPM3/Makefile

@ -13,6 +13,7 @@ OTHERS = cpmldr.rel biosldr.rel cpm3res.sys cpm3bnk.sys loader.bin cpmldr.bin
OTHERS += biosldrc.rel biosldrd.rel
NODELETE = ccp.com gencpm.com genres.dat genbnk.dat bdos3.spr bnkbdos3.spr resbdos3.spr
NODELETE += readme.1st cpm3fix.pat
NODIFF = zpmbios3
DEST = ../../Binary/CPM3
TOOLS = ../../Tools

20
Source/HBIOS/Build.sh

@ -41,16 +41,6 @@ if [ "${ROM_PLATFORM}" == "dist" ] ; then
exit
fi
###if [ $1 == '-d' ] ; then
### shift
### diffdir=$1
### shift
### if [ -f $diffdir/build.inc ] ; then
### timestamp=$(grep TIMESTAMP $diffdir/build.inc | awk '{print $3}' | tr -d '\015"')
### echo diff build using $timestamp
### fi
###fi
# prompt if no match
platforms=($(find Config -name \*.asm -print | \
sed -e 's,Config/,,' -e 's/_.*$//' | sort -u))
@ -84,6 +74,16 @@ fi
TIMESTAMP=$(date +%Y-%m-%d)
if [ "$1" = "-d" ] ; then
shift
diffdir=$1
shift
if [ -f $diffdir/build.inc ] ; then
timestamp=$(grep TIMESTAMP $diffdir/build.inc | awk '{print $3}' | tr -d '\015"')
echo diff build using $timestamp
fi
fi
CONFIGFILE=Config/${ROM_PLATFORM}_${ROM_CONFIG}.asm
echo Building $ROMNAME for $ROM_PLATFORM $ROM_CONFIG $ROMSIZE

13
Source/HBIOS/Makefile

@ -1,8 +1,7 @@
MOREDIFF = camel80.bin game.bin hbios_rom.bin nascom.bin prefix.bin usrrom.bin \
MOREDIFF = game.bin hbios_rom.bin nascom.bin usrrom.bin \
dbgmon.bin hbios_app.bin imgpad2.bin osimg1.bin osimg2.bin romldr.bin \
eastaegg.bin hbios_img.bin osimg.bin tastybasic.bin \
game.bin updater.bin usrrom.bin
eastaegg.bin hbios_img.bin osimg.bin game.bin updater.bin usrrom.bin
SUBDIRS =
DEST = ../../Binary
@ -20,11 +19,13 @@ ifneq ($(findstring $(ROM_PLATFORM), RCZ280),)
TASM=$(BINDIR)/uz80as -t z280
endif
# DIFFMAKE = 1
ifeq ($(DIFFMAKE),1)
DIFFBUILD := -d $(DIFFTO)/Source/HBIOS
endif
DIFFPATH = $(DIFFTO)/Binary
# DIFFPATH = $(DIFFTO)/Binary
DEPS=prereq dbgmon.bin romldr.bin nascom.bin tastybasic.bin game.bin eastaegg.bin updater.bin usrrom.bin imgpad2.bin
@ -47,10 +48,10 @@ ROMNAME=${ROM_PLATFORM}_${ROM_CONFIG}
all::
if [ -z "$(OBJECTS)" ] ; then \
chmod +x Build.sh ; \
bash Build.sh ; \
bash Build.sh $(DIFFBUILD) ; \
fi
$(ROMNAME).rom $(ROMNAME).com $(ROMNAME).img &: $(ROMDEPS)
$(ROMNAME).rom $(ROMNAME).com $(ROMNAME).img : $(ROMDEPS)
cat romldr.bin dbgmon.bin ../ZSDOS/zsys_$(BIOS).bin ../CPM22/cpm_$(BIOS).bin >osimg.bin
cat romldr.bin dbgmon.bin ../ZSDOS/zsys_$(BIOS).bin >osimg_small.bin
if [ $(ROM_PLATFORM) != UNA ] ; then \

3
Source/TastyBasic/src/Build.cmd

@ -13,4 +13,5 @@ set VER=v0.3.0
tasm -80 -g3 -fFF -dROMWBW -d"VERSION \"%VER%\"" tastybasic.asm tastybasic.bin tastybasic.bin.lst
tasm -80 -g3 -fFF -dCPM -d"VERSION \"%VER%\"" tastybasic.asm tastybasic.com tastybasic.com.lst
copy /b /v tastybasic.com ..\..\..\Binary\Apps\tbasic.com
copy /b /v tastybasic.com tbasic.com
copy /b /v tbasic.com ..\..\..\Binary\Apps\tbasic.com

3
Tools/Makefile.inc

@ -166,7 +166,7 @@ ifneq ($(DIFFTO),)
@for dir in $(SUBDIRS) ; do \
( echo "diff in $(HERE)/$$dir" ; cd "$$dir" ; make diff ) ; \
done
@for i in $(OBJECTS) $(MOREDIFF) ; do \
@for i in $(filter-out $(NODIFF),$(OBJECTS) $(MOREDIFF)) ; do \
sf=$$($(CASEFN) $$i) ; \
df=$$($(CASEFN) $(DIFFPATH)/$$i) ; \
if [ -f "$$df" -a -f "$$sf" ] ; then \
@ -187,5 +187,6 @@ ifneq ($(DIFFTO),)
done
endif
vdiff:
make VERBOSEDIFF=2 diff

Loading…
Cancel
Save