view 3rdparty/drivers/emudsk/makefile @ 3211:aa01cfa11267

Updated makefile for EmuDsk driver so that a disk image would be created with a layout that matches the distribution of the NitrOS-9 disk images so that the files can be easily dsaved across onto existing disk images. Also updated ddh0.asm, h0.asm, and h1.asm to use a geometry that will yield a clust size of 1 disk image with almost the max 128MB size as well as using a geometry that is more friendly with storing a boot track on it for use with being shared with the CoCoSDC.
author David Ladd <drencor-xeen@users.sourceforge.net>
date Wed, 20 Dec 2017 15:26:30 -0600
parents 1addfd8c9d5f
children 24bfa6f85ba6
line wrap: on
line source

include ../../../rules.mak

DEPENDS		= ./makefile

DRIVERS		= emudsk_6809.dr emudsk_6309.dr
DESCS		= h0.dd ddh0.dd h1.dd
ALLOBJS		= $(DRIVERS) $(DESCS)
DSK			= Modules_EmuDisk.dsk

all:	$(ALLOBJS) $(DEPENDS)

emudsk_6809.dr: emudsk.asm
	$(AS) $(ASOUT)$@ $< $(AFLAGS)

emudsk_6309.dr: emudsk.asm
	$(AS) $(ASOUT)$@ $< $(AFLAGS) -DH6309=1

dsk: $(DSK)

$(DSK): all
	$(RM) $@
	$(OS9FORMAT_SS35) $@ -n"EmuDsk"
	$(MAKDIR) $@,NITROS9
	$(MAKDIR) $@,NITROS9/6809_L2
	$(MAKDIR) $@,NITROS9/6309_L2
	$(MAKDIR) $@,NITROS9/6809_L2/MODULES
	$(MAKDIR) $@,NITROS9/6309_L2/MODULES
	$(MAKDIR) $@,NITROS9/6809_L2/MODULES/RBF
	$(MAKDIR) $@,NITROS9/6309_L2/MODULES/RBF
	$(OS9COPY) h0.dd $@,NITROS9/6809_L2/MODULES/RBF/h0_emudisk.dd
	$(OS9COPY) h0.dd $@,NITROS9/6309_L2/MODULES/RBF/h0_emudisk.dd
	$(OS9COPY) h1.dd $@,NITROS9/6809_L2/MODULES/RBF/h1_emudisk.dd
	$(OS9COPY) h1.dd $@,NITROS9/6309_L2/MODULES/RBF/h1_emudisk.dd
	$(OS9COPY) ddh0.dd $@,NITROS9/6809_L2/MODULES/RBF/ddh0_emudisk.dd
	$(OS9COPY) ddh0.dd $@,NITROS9/6309_L2/MODULES/RBF/ddh0_emudisk.dd
	$(OS9COPY) emudsk_6809.dr $@,NITROS9/6809_L2/MODULES/RBF/emudsk.dr
	$(OS9COPY) emudsk_6309.dr $@,NITROS9/6309_L2/MODULES/RBF/emudsk.dr

dskcopy: $(DSK)
	$(CP) $(DSK) $(DSKDIR)

dskclean:
	$(RM) $(DSK)

clean:
	$(RM) $(ALLOBJS)

info:
	@$(ECHO) "*** EmuDsk ***"
	@$(ECHO) $(DSK)