view level1/atari/bootroms/makefile @ 2625:d1ea3dc90082

More progress... now booting with DriveWire
author Boisy Pitre <boisy.pitre@nuance.com>
date Sat, 25 Feb 2012 18:21:34 -0600
parents b8c7b7fbf3c9
children 56876a9752b9
line wrap: on
line source

include $(NITROS9DIR)/rules.mak

%.rom:
# Module directory
MD		= ../modules
# Commands directory
CD		= ../cmds

DEPENDS		= ./makefile

BOOTFILE_ROM_P1	= $(MD)/krnp2 $(MD)/init \
				$(MD)/ioman $(MD)/scf.mn $(MD)/vtio.dr $(MD)/term.dt \
				$(MD)/sysgo \
				$(MD)/clock_60hz $(MD)/clock2_soft \
				$(MD)/krn

BOOTFILE_ROM_P2	= $(MD)/rbf.mn $(MD)/rbdw3.dr \
                    $(MD)/x0.dd $(MD)/dw3.sb \
                    $(MD)/scdwp.dr $(MD)/p_scdwp.dd \
                    $(CD)/shell_21 $(CD)/dir \
                    $(CD)/mdir $(CD)/dump
                    

BOOTROMS	= nos96809l1.rom dw3boot.rom

ALLROMS		= $(BOOTROMS)

all:	$(ALLROMS)

# Boot ROMs
dw3boot.rom: dw3boot.asm
	$(AS) $(AFLAGS) -mr -I../modules $< $(ASOUT)$@

nos96809l1.rom: $(BOOTFILE_ROM) $(DEPENDS)
	$(MERGE) $(BOOTFILE_ROM_P1)>$@_p1
	$(MERGE) $(BOOTFILE_ROM_P2)>$@_p2
	$(PADROM) -b 10240 $@_p1
	$(PADROM) -b 12288 $@_p1
	$(MERGE) $@_p2 $@_p1>$@
	$(PADROM) -b 32768 $@
	$(CP) $@ nos96809l1.dsk
	$(RM) $@_p2 $@_p1
	
clean:
	$(RM) $(ALLROMS)