view level1/modules/makefile @ 355:71b60814fb01

Makefiles modified for uniformity
author boisy
date Thu, 25 Jul 2002 14:38:48 +0000
parents 9ca004356f09
children 281040b0f6a5
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
ROMMODS		= rominfo sysgo_rom
SYSMODS		= ioman init sysgo sysgo_d64
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
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
COPYOBJS	= $(SYSMODS) $(CLOCKS) $(FMGRS) $(DRIVERS) $(IOSUBS) \
		$(DESCS) $(HELP)
ALLOBJS		= $(BOOTERS) $(KERNELS) $(ROMMODS) $(SYSMODS) $(CLOCKS) $(FMGRS) \
		$(DRIVERS) $(IOSUBS) $(DESCS) $(BOOT_TRACKS)

all:	$(ALLOBJS) $(HELP)
	$(CHMOD) 755 $(ALLOBJS)
	$(UNIX2OS9) $(HELP)
	$(CHMOD) 644 $(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)

showallobjs:
	@$(ECHO) $(ALLOBJS)

showcopyobjs:
	@$(ECHO) $(COPYOBJS)