view level1/coco1/bootroms/makefile @ 2791:0df4a4590bc6 lwtools-port

Updated level2/coco3/cmds/makefile to set correct lib file based on H6309 tag. Updated level2/coco3/cmds/makefile to detect if H6309 is present and if so to use the sys6309l2.a lib file and if the value is not set then use sys6809l2.a lib file.
author drencor-xeen
date Sun, 27 Jan 2013 10:41:30 -0600
parents 678c6848dc12
children e76cc015cc03
line wrap: on
line source

ifeq ($(PORT),)
        PORT=coco1
endif
include $(NITROS9DIR)/rules.mak

# Module directory
MD		= ../modules
# Commands directory
CD		= ../cmds

DEPENDS		= ./makefile

KERNEL_ROM	= $(MD)/rel $(MD)/krn $(MD)/krnp2 $(MD)/init $(MD)/boot_rom

BOOTFILE_ROM	= $(MD)/rominfo $(MD)/ioman \
		$(MD)/scf.mn $(MD)/vtio.dr \
		$(MD)/covdg.io \
		$(MD)/term_vdg.dt \
		$(MD)/clock_60hz $(MD)/clock2_soft

BOOTROMS	= nos96809l1.rom
KERNELS		= kernel_rom

ALLROMS		= $(BOOTROMS)

all:	$(ALLROMS)

# Bootfiles
nos96809l1.rom: $(BOOTFILE_ROM) $(KERNEL_ROM) $(DEPENDS)
	$(MERGE) $(BOOTFILE_ROM)>$@.tmp
	$(PADROM) 11776 $@.tmp
	$(MERGE) $(KERNEL_ROM)>kernel_rom
	$(PADROM) 4592 kernel_rom
	$(MERGE) $@.tmp kernel_rom>$@.tmp2
	$(MERGE) $@.tmp2 $(MD)/vectors>$@
	$(RM) $@.tmp $@.tmp2
	

# Kernels
kernel_rom: $(KERNEL_ROM) $(DEPENDS)
	$(MERGE) $(KERNEL_ROM)>$@

clean:
	$(RM) $(ALLROMS) $(KERNELS)