Mercurial > hg > Members > kono > nitros9-code
changeset 2048:127b30f90456
Added
author | boisy |
---|---|
date | Sun, 23 Apr 2006 17:44:50 +0000 |
parents | ed46fc161cc3 |
children | 0cf8513d33d7 |
files | level2/coco3/cmds/defsfile level2/coco3/cmds/makefile level2/coco3/modules/defsfile level2/coco3/modules/kernel/defsfile level2/coco3/modules/kernel/makefile level2/coco3/modules/makefile level2/coco3_6309/cmds/defsfile level2/coco3_6309/cmds/makefile level2/coco3_6309/modules/defsfile level2/coco3_6309/modules/kernel/defsfile level2/coco3_6309/modules/kernel/makefile level2/coco3_6309/modules/makefile |
diffstat | 12 files changed, 682 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3/cmds/defsfile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,1 @@ + use ../defsfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3/cmds/makefile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,63 @@ +PORT = coco3 +include $(NITROS9DIR)/rules.mak + +vpath %.asm $(6809L2)/cmds:$(6809L1)/cmds:$(3RDPARTY)/packages/basic09 + +DEPENDS = ./makefile + +CMDS = asm attr backup binex build cmp cobbler copy cputype \ + date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ + display dmem dmode dsave dump echo edit error exbin \ + format free grfdrv help ident iniz irqs link list load login \ + makdir mdir megaread merge mfree mmap modpatch montype mpi os9gen padrom park \ + pmap proc procs prompt pwd pxd reboot rename runb save setime \ + shell_21 sleep smap tee tmode touch \ + tsmon tuneport unlink verify wcreate xmode +SUBS = gfx2 gfx inkey syscall + +SHELLMODS = shellplus date deiniz echo iniz link load save unlink +UTILPAK1 = attr build copy del deldir dir display list makdir mdir \ + merge mfree procs rename tmode + +# Files not compilable by os9asm: config +all: $(SUBS) $(CMDS) shell utilpak1 $(DEPENDS) + +runb: runb.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1 + $(MERGE) $@ $(SUBS)>$@.tmp + $(RM) $@ + $(MOVE) $@.tmp $@ + +tmode: xmode.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aTMODE=1 + +xmode: xmode.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aXMODE=1 + +pwd: pd.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1 + +pxd: pd.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPXD=1 + +shell: $(SHELLMODS) $(DEPENDS) + $(MERGE) $(SHELLMODS)>$@ + @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" + @ls -l $@ + @$(ECHO) "" + +utilpak1: $(UTILPAK1) $(DEPENDS) + $(MERGE) $(UTILPAK1)>$@ + @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" + @ls -l $@ + @$(ECHO) "" + +clean: + $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) + +# Only $(CMDS) are shown here +showobjs: + @$(ECHO) shell utilpak1 $(CMDS) + +identify: + $(IDENT_SHORT) $(ALLOBJS)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3/modules/defsfile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,1 @@ + use ../defsfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3/modules/kernel/defsfile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,1 @@ + use ../../defsfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3/modules/kernel/makefile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,39 @@ +PORT = coco3 +include $(NITROS9DIR)/rules.mak + +vpath %.asm $(6809L2)/modules/kernel:$(6809L1)/modules/kernel + +DEPENDS = ./makefile +AFLAGS += -I$(6809L2)/modules/kernel -I$(6809L1)/modules/kernel + +KERNEL = krn +KERNELP2 = krnp2 +SYSCALLS = fallimg.asm fallram.asm falltsk.asm faproc.asm fcmpnam.asm \ + fcpymem.asm fdatlog.asm fdelram.asm ffmodul.asm ffreehb.asm \ + fld.asm fldabx.asm flink.asm fmove.asm fnproc.asm fprsnam.asm \ + freboot.asm fsrqmem.asm fssvc.asm fvmodul.asm \ + fallbit.asm fallprc.asm fchain.asm fclrblk.asm fcrcmod.asm \ + fdelimg.asm fexit.asm ffind64.asm ffork.asm fgblkmp.asm \ + fgcmdir.asm fgmoddr.asm fgprdsc.asm fgprocp.asm ficpt.asm \ + fid.asm fmapblk.asm fmem.asm fsend.asm fsleep.asm fsprior.asm \ + fsswi.asm fstime.asm fsuser.asm funlink.asm funload.asm + +ALLOBJS = $(KERNEL) $(KERNELP2) + +all: $(ALLOBJS) + +$(KERNEL): krn.asm $(SYSCALLS) + +$(KERNELP2): krnp2.asm $(SYSCALLS) + +clean: + $(RM) $(ALLOBJS) + +showobjs: + @$(ECHO) $(ALLOBJS) + +showcopyobjs: + @$(ECHO) $(COPYOBJS) + +identify: + $(IDENT_SHORT) $(ALLOBJS)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3/modules/makefile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,236 @@ +PORT = coco3 +include $(NITROS9DIR)/rules.mak + +vpath %.asm kernel:$(6809L2)/modules:$(6809L1)/modules + +CLOCKELIM = -aRTCElim=1 +CLOCKDISTO2 = -aRTCDsto2=1 +CLOCKDISTO4 = -aRTCDsto4=1 +CLOCKBNB = -aRTCBB=1 +CLOCKSMART = -aRTCSmart=1 -aMPIFlag=1 +CLOCKHARRIS = -aRTCHarrs=1 +CLOCKCLOUD9 = -aRTCCloud9=1 +CLOCKSOFT = -aRTCSoft=1 +CLOCKMESSEMU = -aRTCMessEmu=1 +CLOCKJVEMU = -aRTCJVEmu=1 + +DEPENDS = ./makefile +TPB = ../../3rdparty/booters + +BOOTERS = boot_1773_6ms boot_1773_30ms \ + boot_burke boot_rampak boot_wd1002 +BOOTTRACK = rel_32 rel_40 rel_80 rel_32_50hz rel_40_50hz rel_80_50hz $(BOOTERS) krn +KERNEL = krnp2 krnp3_perr krnp4_regdump +SYSMODS = ioman init sysgo_h0 sysgo_dd +CLOCKS = clock_60hz clock_50hz \ + clock2_elim clock2_disto2 clock2_disto4 clock2_bnb \ + clock2_smart clock2_harris clock2_cloud9 clock2_soft \ + clock2_jvemu clock2_messemu + +RBF = rbf.mn \ + rb1773.dr rb1773_scii_ff74.dr rb1773_scii_ff58.dr \ + d0_35s.dd d1_35s.dd d2_35s.dd d3_35s.dd \ + d0_40d.dd d1_40d.dd d2_40d.dd d0_80d.dd \ + d1_80d.dd d2_80d.dd \ + ddd0_35s.dd ddd0_40d.dd ddd0_80d.dd \ + rammer.dr r0_8k.dd r0_96k.dd r0_128k.dd r0_192k.dd \ + ddr0_8k.dd ddr0_96k.dd ddr0_128k.dd ddr0_192k.dd md.dd + + +SCF = scf.mn \ + vtio.dr vrn.dr scbbp.dr scbbt.dr sspak.dr sc6551.dr \ + cowin.io cogrf.io covdg.io covdg_small.io \ + keydrv_cc3.sb snddrv_cc3.sb \ + joydrv_joy.sb joydrv_6551L.sb joydrv_6552L.sb \ + joydrv_6551M.sb joydrv_6552M.sb \ + nil.dd p_bbp.dd \ + t1_bbt.dd t2_sc6551.dd t3_sc6551.dd \ + ftdd.dd vi.dd ssp.dd term_bbt.dt term_sc6551.dt \ + term_vdg.dt term_win40.dt term_win80.dt w.dw w1.dw w2.dw \ + w3.dw w4.dw w5.dw w6.dw w7.dw v1.dw v2.dw v3.dw v4.dw v5.dw \ + v6.dw v7.dw + +PIPE = pipeman.mn pipeman_named.mn \ + piper.dr \ + pipe.dd + +# +# The following macros represent a collection of modules for various +# kernel tracks and bootfile configurations. +# +KERNEL_1773 = rel_32 boot_1773 krn +KERNEL_RAMPAK = rel_32 $(TPB)/boot_rampak krn +KERNEL_KENTON = rel_32 $(TPB)/boot_kenton krn +KERNEL_IDE = rel_32 $(TPB)/boot_ide krn + +ALLOBJS = $(BOOTTRACK) $(KERNEL) $(SYSMODS) $(CLOCKS) $(RBF) $(SCF) $(PIPE) + +all: $(ALLOBJS) + +# Kernel +krn krnp2: + $(CD) kernel; make $@ + $(CP) kernel/$@ . + +# Special cases +cogrf.io: cowin.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aGrfInt=1 + +rb1773_scii_ff74.dr: rb1773.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 + +rb1773_scii_ff58.dr: rb1773.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 -aSCIIALT=1 + +rel_32: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 + +rel_40: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 + +rel_80: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 + +rel_32_50hz: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 -aTkPerSec=50 + +rel_40_50hz: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 -aTkPerSec=50 + +rel_80_50hz: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 -aTkPerSec=50 + +boot_1773_6ms: boot_1773.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=0 + +boot_1773_30ms: boot_1773.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=3 + +sysgo_dd: sysgo.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDD=1 + +sysgo_h0: sysgo.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) + +# Floppy descriptors +SSDD35 = -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \ + -aInterlv=3 -aSAS=8 -aDensity=1 +DSDD40 = -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ + -aInterlv=3 -aSAS=8 -aDensity=1 +DSDD80 = -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ + -aInterlv=3 -aSAS=8 -aDensity=1 -aD35 + +ddd0_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 -aDD=1 + +d0_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 + +d1_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=1 + +d2_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=2 + +d3_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=3 + +ddd0_40d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1 + +d0_40d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 + +d1_40d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1 + +d2_40d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2 + +ddd0_80d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1 + +d0_80d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 + +d1_80d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1 + +d2_80d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2 + +# RAM Disk descriptors +r0_8k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 + +ddr0_8k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 -aDD=1 + +r0_96k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 + +ddr0_96k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 -aDD=1 + +r0_128k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 + +ddr0_128k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 -aDD=1 + +r0_192k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 + +ddr0_192k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 -aDD=1 + +# VDGInt Modules +covdg.io: covdg.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCOCO2=1 + +covdg_small.io: covdg.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< + +# Clocks +clock_60hz: clock.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=60 + +clock_50hz: clock.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=50 + +clock2_cloud9: clock2_ds1315.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCLOUD9=1 + +clock2_bnb: clock2_ds1315.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aBNB=1 + +clean: + $(CD) kernel; make $@ + $(RM) $(ALLOBJS) + +showobjs: + @$(ECHO) $(ALLOBJS) + +showboottrack: + @$(ECHO) $(BOOTTRACK) + +showkernel: + @$(ECHO) $(KERNEL) + +showsysmods: + @$(ECHO) $(SYSMODS) + +showclocks: + @$(ECHO) $(CLOCKS) + +showrbf: + @$(ECHO) $(RBF) + +showscf: + @$(ECHO) $(SCF) + +showpipe: + @$(ECHO) $(PIPE) + +identify: + $(IDENT_SHORT) $(ALLOBJS)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3_6309/cmds/defsfile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,1 @@ + use ../defsfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3_6309/cmds/makefile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,63 @@ +PORT = coco3 +include $(NITROS9DIR)/rules.mak + +vpath %.asm $(6809L2)/cmds:$(6809L1)/cmds:$(3RDPARTY)/packages/basic09 + +DEPENDS = ./makefile + +CMDS = asm attr backup binex build cmp cobbler copy cputype \ + date dcheck debug ded deiniz del deldir devs dir dirsort disasm \ + display dmem dmode dsave dump echo edit error exbin \ + format free grfdrv help ident iniz irqs link list load login \ + makdir mdir megaread merge mfree mmap modpatch montype mpi os9gen padrom park \ + pmap proc procs prompt pwd pxd reboot rename runb save setime \ + shell_21 sleep smap tee tmode touch \ + tsmon tuneport unlink verify wcreate xmode +SUBS = gfx2 gfx inkey syscall + +SHELLMODS = shellplus date deiniz echo iniz link load save unlink +UTILPAK1 = attr build copy del deldir dir display list makdir mdir \ + merge mfree procs rename tmode + +# Files not compilable by os9asm: config +all: $(SUBS) $(CMDS) shell utilpak1 $(DEPENDS) + +runb: runb.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1 + $(MERGE) $@ $(SUBS)>$@.tmp + $(RM) $@ + $(MOVE) $@.tmp $@ + +tmode: xmode.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aTMODE=1 + +xmode: xmode.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aXMODE=1 + +pwd: pd.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPWD=1 + +pxd: pd.asm + $(AS) $(AFLAGS) $< $(ASOUT)$@ -aPXD=1 + +shell: $(SHELLMODS) $(DEPENDS) + $(MERGE) $(SHELLMODS)>$@ + @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" + @ls -l $@ + @$(ECHO) "" + +utilpak1: $(UTILPAK1) $(DEPENDS) + $(MERGE) $(UTILPAK1)>$@ + @$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***" + @ls -l $@ + @$(ECHO) "" + +clean: + $(RM) shell utilpak1 $(SUBS) $(SHELLMODS) $(CMDS) + +# Only $(CMDS) are shown here +showobjs: + @$(ECHO) shell utilpak1 $(CMDS) + +identify: + $(IDENT_SHORT) $(ALLOBJS)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3_6309/modules/defsfile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,1 @@ + use ../defsfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3_6309/modules/kernel/defsfile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,1 @@ + use ../../defsfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3_6309/modules/kernel/makefile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,39 @@ +PORT = coco3 +include $(NITROS9DIR)/rules.mak + +vpath %.asm $(6809L2)/modules/kernel:$(6809L1)/modules/kernel + +DEPENDS = ./makefile +AFLAGS += -I$(6809L2)/modules/kernel -I$(6809L1)/modules/kernel + +KERNEL = krn +KERNELP2 = krnp2 +SYSCALLS = fallimg.asm fallram.asm falltsk.asm faproc.asm fcmpnam.asm \ + fcpymem.asm fdatlog.asm fdelram.asm ffmodul.asm ffreehb.asm \ + fld.asm fldabx.asm flink.asm fmove.asm fnproc.asm fprsnam.asm \ + freboot.asm fsrqmem.asm fssvc.asm fvmodul.asm \ + fallbit.asm fallprc.asm fchain.asm fclrblk.asm fcrcmod.asm \ + fdelimg.asm fexit.asm ffind64.asm ffork.asm fgblkmp.asm \ + fgcmdir.asm fgmoddr.asm fgprdsc.asm fgprocp.asm ficpt.asm \ + fid.asm fmapblk.asm fmem.asm fsend.asm fsleep.asm fsprior.asm \ + fsswi.asm fstime.asm fsuser.asm funlink.asm funload.asm + +ALLOBJS = $(KERNEL) $(KERNELP2) + +all: $(ALLOBJS) + +$(KERNEL): krn.asm $(SYSCALLS) + +$(KERNELP2): krnp2.asm $(SYSCALLS) + +clean: + $(RM) $(ALLOBJS) + +showobjs: + @$(ECHO) $(ALLOBJS) + +showcopyobjs: + @$(ECHO) $(COPYOBJS) + +identify: + $(IDENT_SHORT) $(ALLOBJS)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level2/coco3_6309/modules/makefile Sun Apr 23 17:44:50 2006 +0000 @@ -0,0 +1,236 @@ +PORT = coco3 +include $(NITROS9DIR)/rules.mak + +vpath %.asm kernel:$(6809L2)/modules:$(6809L1)/modules + +CLOCKELIM = -aRTCElim=1 +CLOCKDISTO2 = -aRTCDsto2=1 +CLOCKDISTO4 = -aRTCDsto4=1 +CLOCKBNB = -aRTCBB=1 +CLOCKSMART = -aRTCSmart=1 -aMPIFlag=1 +CLOCKHARRIS = -aRTCHarrs=1 +CLOCKCLOUD9 = -aRTCCloud9=1 +CLOCKSOFT = -aRTCSoft=1 +CLOCKMESSEMU = -aRTCMessEmu=1 +CLOCKJVEMU = -aRTCJVEmu=1 + +DEPENDS = ./makefile +TPB = ../../3rdparty/booters + +BOOTERS = boot_1773_6ms boot_1773_30ms \ + boot_burke boot_rampak boot_wd1002 +BOOTTRACK = rel_32 rel_40 rel_80 rel_32_50hz rel_40_50hz rel_80_50hz $(BOOTERS) krn +KERNEL = krnp2 krnp3_perr krnp4_regdump +SYSMODS = ioman init sysgo_h0 sysgo_dd +CLOCKS = clock_60hz clock_50hz \ + clock2_elim clock2_disto2 clock2_disto4 clock2_bnb \ + clock2_smart clock2_harris clock2_cloud9 clock2_soft \ + clock2_jvemu clock2_messemu + +RBF = rbf.mn \ + rb1773.dr rb1773_scii_ff74.dr rb1773_scii_ff58.dr \ + d0_35s.dd d1_35s.dd d2_35s.dd d3_35s.dd \ + d0_40d.dd d1_40d.dd d2_40d.dd d0_80d.dd \ + d1_80d.dd d2_80d.dd \ + ddd0_35s.dd ddd0_40d.dd ddd0_80d.dd \ + rammer.dr r0_8k.dd r0_96k.dd r0_128k.dd r0_192k.dd \ + ddr0_8k.dd ddr0_96k.dd ddr0_128k.dd ddr0_192k.dd md.dd + + +SCF = scf.mn \ + vtio.dr vrn.dr scbbp.dr scbbt.dr sspak.dr sc6551.dr \ + cowin.io cogrf.io covdg.io covdg_small.io \ + keydrv_cc3.sb snddrv_cc3.sb \ + joydrv_joy.sb joydrv_6551L.sb joydrv_6552L.sb \ + joydrv_6551M.sb joydrv_6552M.sb \ + nil.dd p_bbp.dd \ + t1_bbt.dd t2_sc6551.dd t3_sc6551.dd \ + ftdd.dd vi.dd ssp.dd term_bbt.dt term_sc6551.dt \ + term_vdg.dt term_win40.dt term_win80.dt w.dw w1.dw w2.dw \ + w3.dw w4.dw w5.dw w6.dw w7.dw v1.dw v2.dw v3.dw v4.dw v5.dw \ + v6.dw v7.dw + +PIPE = pipeman.mn pipeman_named.mn \ + piper.dr \ + pipe.dd + +# +# The following macros represent a collection of modules for various +# kernel tracks and bootfile configurations. +# +KERNEL_1773 = rel_32 boot_1773 krn +KERNEL_RAMPAK = rel_32 $(TPB)/boot_rampak krn +KERNEL_KENTON = rel_32 $(TPB)/boot_kenton krn +KERNEL_IDE = rel_32 $(TPB)/boot_ide krn + +ALLOBJS = $(BOOTTRACK) $(KERNEL) $(SYSMODS) $(CLOCKS) $(RBF) $(SCF) $(PIPE) + +all: $(ALLOBJS) + +# Kernel +krn krnp2: + $(CD) kernel; make $@ + $(CP) kernel/$@ . + +# Special cases +cogrf.io: cowin.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aGrfInt=1 + +rb1773_scii_ff74.dr: rb1773.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 + +rb1773_scii_ff58.dr: rb1773.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 -aSCIIALT=1 + +rel_32: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 + +rel_40: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 + +rel_80: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 + +rel_32_50hz: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=32 -aTkPerSec=50 + +rel_40_50hz: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=40 -aTkPerSec=50 + +rel_80_50hz: rel.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aWidth=80 -aTkPerSec=50 + +boot_1773_6ms: boot_1773.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=0 + +boot_1773_30ms: boot_1773.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSTEP=3 + +sysgo_dd: sysgo.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDD=1 + +sysgo_h0: sysgo.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) + +# Floppy descriptors +SSDD35 = -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \ + -aInterlv=3 -aSAS=8 -aDensity=1 +DSDD40 = -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ + -aInterlv=3 -aSAS=8 -aDensity=1 +DSDD80 = -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ + -aInterlv=3 -aSAS=8 -aDensity=1 -aD35 + +ddd0_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 -aDD=1 + +d0_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 + +d1_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=1 + +d2_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=2 + +d3_35s.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=3 + +ddd0_40d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1 + +d0_40d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 + +d1_40d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1 + +d2_40d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2 + +ddd0_80d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1 + +d0_80d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 + +d1_80d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1 + +d2_80d.dd: rb1773desc.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2 + +# RAM Disk descriptors +r0_8k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 + +ddr0_8k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=8 -aDD=1 + +r0_96k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 + +ddr0_96k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=96 -aDD=1 + +r0_128k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 + +ddr0_128k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=128 -aDD=1 + +r0_192k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 + +ddr0_192k.dd: r0.asm + $(AS) $< $(ASOUT)$@ $(AFLAGS) -aRAMSize=192 -aDD=1 + +# VDGInt Modules +covdg.io: covdg.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCOCO2=1 + +covdg_small.io: covdg.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< + +# Clocks +clock_60hz: clock.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=60 + +clock_50hz: clock.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=50 + +clock2_cloud9: clock2_ds1315.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCLOUD9=1 + +clock2_bnb: clock2_ds1315.asm + $(AS) $(AFLAGS) $(ASOUT)$@ $< -aBNB=1 + +clean: + $(CD) kernel; make $@ + $(RM) $(ALLOBJS) + +showobjs: + @$(ECHO) $(ALLOBJS) + +showboottrack: + @$(ECHO) $(BOOTTRACK) + +showkernel: + @$(ECHO) $(KERNEL) + +showsysmods: + @$(ECHO) $(SYSMODS) + +showclocks: + @$(ECHO) $(CLOCKS) + +showrbf: + @$(ECHO) $(RBF) + +showscf: + @$(ECHO) $(SCF) + +showpipe: + @$(ECHO) $(PIPE) + +identify: + $(IDENT_SHORT) $(ALLOBJS)