Skip to content

Commit

Permalink
Unix Build Tweaks
Browse files Browse the repository at this point in the history
Small stuff.  Mostly just gets the make diff mechanism working again.  Not sure if anyone actually uses it though.
  • Loading branch information
wwarthen committed Jul 8, 2022
1 parent d241db5 commit 4385efb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ setlocal

pushd Source && call Build %* || exit /b & popd

pause
if "%*" == "" pause
1 change: 1 addition & 0 deletions Source/CPM3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions Source/HBIOS/Build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down
13 changes: 7 additions & 6 deletions Source/HBIOS/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand All @@ -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 \
Expand Down
3 changes: 2 additions & 1 deletion Source/TastyBasic/src/Build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 1 deletion Tools/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -187,5 +187,6 @@ ifneq ($(DIFFTO),)
done
endif


vdiff:
make VERBOSEDIFF=2 diff

0 comments on commit 4385efb

Please sign in to comment.