Unix Build Tweaks
Small stuff. Mostly just gets the make diff mechanism working again. Not sure if anyone actually uses it though.
This commit is contained in:
@@ -3,4 +3,4 @@ setlocal
|
|||||||
|
|
||||||
pushd Source && call Build %* || exit /b & popd
|
pushd Source && call Build %* || exit /b & popd
|
||||||
|
|
||||||
pause
|
if "%*" == "" pause
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ OTHERS = cpmldr.rel biosldr.rel cpm3res.sys cpm3bnk.sys loader.bin cpmldr.bin
|
|||||||
OTHERS += biosldrc.rel biosldrd.rel
|
OTHERS += biosldrc.rel biosldrd.rel
|
||||||
NODELETE = ccp.com gencpm.com genres.dat genbnk.dat bdos3.spr bnkbdos3.spr resbdos3.spr
|
NODELETE = ccp.com gencpm.com genres.dat genbnk.dat bdos3.spr bnkbdos3.spr resbdos3.spr
|
||||||
NODELETE += readme.1st cpm3fix.pat
|
NODELETE += readme.1st cpm3fix.pat
|
||||||
|
NODIFF = zpmbios3
|
||||||
|
|
||||||
DEST = ../../Binary/CPM3
|
DEST = ../../Binary/CPM3
|
||||||
TOOLS = ../../Tools
|
TOOLS = ../../Tools
|
||||||
|
|||||||
@@ -41,16 +41,6 @@ if [ "${ROM_PLATFORM}" == "dist" ] ; then
|
|||||||
exit
|
exit
|
||||||
fi
|
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
|
# prompt if no match
|
||||||
platforms=($(find Config -name \*.asm -print | \
|
platforms=($(find Config -name \*.asm -print | \
|
||||||
sed -e 's,Config/,,' -e 's/_.*$//' | sort -u))
|
sed -e 's,Config/,,' -e 's/_.*$//' | sort -u))
|
||||||
@@ -84,6 +74,16 @@ fi
|
|||||||
|
|
||||||
TIMESTAMP=$(date +%Y-%m-%d)
|
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
|
CONFIGFILE=Config/${ROM_PLATFORM}_${ROM_CONFIG}.asm
|
||||||
|
|
||||||
echo Building $ROMNAME for $ROM_PLATFORM $ROM_CONFIG $ROMSIZE
|
echo Building $ROMNAME for $ROM_PLATFORM $ROM_CONFIG $ROMSIZE
|
||||||
|
|||||||
@@ -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 \
|
dbgmon.bin hbios_app.bin imgpad2.bin osimg1.bin osimg2.bin romldr.bin \
|
||||||
eastaegg.bin hbios_img.bin osimg.bin tastybasic.bin \
|
eastaegg.bin hbios_img.bin osimg.bin game.bin updater.bin usrrom.bin
|
||||||
game.bin updater.bin usrrom.bin
|
|
||||||
|
|
||||||
SUBDIRS =
|
SUBDIRS =
|
||||||
DEST = ../../Binary
|
DEST = ../../Binary
|
||||||
@@ -20,11 +19,13 @@ ifneq ($(findstring $(ROM_PLATFORM), RCZ280),)
|
|||||||
TASM=$(BINDIR)/uz80as -t z280
|
TASM=$(BINDIR)/uz80as -t z280
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# DIFFMAKE = 1
|
||||||
|
|
||||||
ifeq ($(DIFFMAKE),1)
|
ifeq ($(DIFFMAKE),1)
|
||||||
DIFFBUILD := -d $(DIFFTO)/Source/HBIOS
|
DIFFBUILD := -d $(DIFFTO)/Source/HBIOS
|
||||||
endif
|
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
|
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::
|
all::
|
||||||
if [ -z "$(OBJECTS)" ] ; then \
|
if [ -z "$(OBJECTS)" ] ; then \
|
||||||
chmod +x Build.sh ; \
|
chmod +x Build.sh ; \
|
||||||
bash Build.sh ; \
|
bash Build.sh $(DIFFBUILD) ; \
|
||||||
fi
|
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 ../CPM22/cpm_$(BIOS).bin >osimg.bin
|
||||||
cat romldr.bin dbgmon.bin ../ZSDOS/zsys_$(BIOS).bin >osimg_small.bin
|
cat romldr.bin dbgmon.bin ../ZSDOS/zsys_$(BIOS).bin >osimg_small.bin
|
||||||
if [ $(ROM_PLATFORM) != UNA ] ; then \
|
if [ $(ROM_PLATFORM) != UNA ] ; then \
|
||||||
|
|||||||
@@ -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 -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
|
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
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ ifneq ($(DIFFTO),)
|
|||||||
@for dir in $(SUBDIRS) ; do \
|
@for dir in $(SUBDIRS) ; do \
|
||||||
( echo "diff in $(HERE)/$$dir" ; cd "$$dir" ; make diff ) ; \
|
( echo "diff in $(HERE)/$$dir" ; cd "$$dir" ; make diff ) ; \
|
||||||
done
|
done
|
||||||
@for i in $(OBJECTS) $(MOREDIFF) ; do \
|
@for i in $(filter-out $(NODIFF),$(OBJECTS) $(MOREDIFF)) ; do \
|
||||||
sf=$$($(CASEFN) $$i) ; \
|
sf=$$($(CASEFN) $$i) ; \
|
||||||
df=$$($(CASEFN) $(DIFFPATH)/$$i) ; \
|
df=$$($(CASEFN) $(DIFFPATH)/$$i) ; \
|
||||||
if [ -f "$$df" -a -f "$$sf" ] ; then \
|
if [ -f "$$df" -a -f "$$sf" ] ; then \
|
||||||
@@ -187,5 +187,6 @@ ifneq ($(DIFFTO),)
|
|||||||
done
|
done
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
vdiff:
|
vdiff:
|
||||||
make VERBOSEDIFF=2 diff
|
make VERBOSEDIFF=2 diff
|
||||||
|
|||||||
Reference in New Issue
Block a user