view level1/modules/makefile @ 306:c863af5b4ea1

init.asm: extended (see os9defs( os9.asm: added code to set D.CRC based on flag in init module
author boisy
date Mon, 22 Jul 2002 23:15:21 +0000
parents 1ecde21f77f7
children 9ca004356f09
line wrap: on
line source

include ../../Makefile.rules

DEPENDS		= ./Makefile
TPB		= ../../3rdparty/booters

BOOTERS		= oscode oscode_d64 boot_1773 boot_d64 $(TPB)/boot_rom_l1 rom_vectors
KERNELS		= os9 os9p2
SYSMODS		= rominfo ioman init
CLOCKS		= clock.60hz clock.50hz clock_d64
FMGRS		= scf.mn rbf.mn pipeman.mn
DRIVERS		= aciapak.dr cchdisk.dr ccdisk.dr modpak.dr nildrv.dr \
		piper.dr printer.dr rs232.dr sscpak.dr ccio.dr \
		ddisk.dr kbvdio.dr
IOSUBS		= co32.io co80.io grfo.io
DESCS		= ddd0_35s.dd d0_35s.dd d1_35s.dd d2_35s.dd d3_35s.dd \
		ddd0_40d.dd d0_40d.dd d1_40d.dd d2_40d.dd \
		ddd0_80d.dd d0_80d.dd d1_80d.dd d2_80d.dd \
		h0_15.dd h1_15.dd h0_35.dd h1_35.dd \
		m1.dd m2.dd nil.dd p.dd pipe.dd ssc.dd \
		t1.dd t2.dd t3.dd term32.dd term80.dd \
		p1_d64.dd term_d64.dd t1_d64.dd \
		dd_d64.dd d0_d64.dd d1_d64.dd d2_d64.dd d3_d64.dd
SYSGOS		= sysgo sysgo_rom sysgo_d64
HELP		= co32.hp co80.hp \
		ddd0_35s.hp d0_35s.hp d1_35s.hp d2_35s.hp d3_35s.hp \
		ddd0_40d.hp d0_40d.hp d1_40d.hp d2_40d.hp \
		ddd0_80d.hp d0_80d.hp d1_80d.hp d2_80d.hp \
		grfo.hp h0_15.hp \
		h0_35.hp h1_15.hp h1_35.hp m1.hp m2.hp nil.hp p.hp pipe.hp \
		ssc.hp t1.hp t2.hp t3.hp term32.hp term80.hp config.hp

KERNEL_1773	= oscode os9 os9p2 init boot_1773
KERNEL_D64	= oscode_d64 os9 os9p2 init boot_d64
KERNEL_ROM	= oscode os9 os9p2 init $(TPB)/boot_rom_l1
KERNEL_IDE	= oscode os9 os9p2 init $(TPB)/boot_ide_l1

BOOT_TRACKS	= kernel_1773 kernel_rom kernel_ide
ALLOBJS		= $(BOOTERS) $(KERNELS) $(SYSMODS) $(CLOCKS) $(FMGRS) \
		$(DRIVERS) $(IOSUBS) $(DESCS) $(SYSGOS) $(BOOT_TRACKS)

all:	$(ALLOBJS) $(HELP)
	$(UNIX2OS9) $(HELP)

# Kernel track for OS-9 in ROM on a CoCo
kernel_rom: $(KERNEL_ROM) $(DEPENDS)
	$(MERGE) $(KERNEL_ROM)>$@
	$(PADROM) \$$1200 $@ -c=\$$E5

# Kernel track for Tandy/RS controller (WD1773)
kernel_1773: $(KERNEL_1773) $(DEPENDS)
	$(MERGE) $(KERNEL_1773)>$@
	$(PADROM) \$$1200 $@ -c=\$$E5

# Kernel track for Tandy/RS controller (WD1773)
kernel_ide: $(KERNEL_IDE) $(DEPENDS)
	$(MERGE) $(KERNEL_IDE)>$@
	$(PADROM) \$$1200 $@ -c=\$$E5

kernel_d64: $(KERNEL_D64) $(DEPENDS)
	$(MERGE) $(KERNEL_D64)>$@
	$(PADROM) \$$1000 $@ -c=\$$E5

oscode: oscode.asm
	$(AS) $(AFLAGS) $(ASOUT)$@ $< -aDragon64=0

oscode_d64: oscode.asm
	$(AS) $(AFLAGS) $(ASOUT)$@ $< -aDragon64=1

sysgo: sysgo.asm
	$(AS) $(AFLAGS) $(ASOUT)$@ $< -aDiskGo=1

sysgo_rom: sysgo.asm
	$(AS) $(AFLAGS) $(ASOUT)$@ $< -aDiskGo=0

clean:
	$(RM) $(ALLOBJS)
	$(OS92UNIX) $(HELP)

identify:
	$(IDENT_SHORT) $(ALLOBJS)

showobjs:
	@echo $(ALLOBJS)