view level1/atari/bootfiles/makefile @ 2654:4036f8e844a7

Level 2 now has its own clock source again
author Boisy Pitre <boisy.pitre@nuance.com>
date Tue, 10 Apr 2012 21:33:53 -0500
parents 40d55004f686
children ab3a2531c000 14e95b50efd9
line wrap: on
line source

PORT = atari
include $(NITROS9DIR)/rules.mak

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

DEPENDS		= ./makefile

# IMPORTANT! KRN MUST BE THE LAST MODULE IN BOOTFILE_P1!!
BOOTFILE_P1 = $(MD)/krnp2 $(MD)/init $(MD)/ioman $(MD)/sysgo \
		$(MD)/dw3.sb \
		$(MD)/clock_60hz $(MD)/clock2_dw3 \
          $(MD)/krn

BOOTFILE_P2 = $(MD)/scf.mn $(MD)/vtio.dr $(MD)/term.dt \
		$(MD)/rbf.mn $(MD)/rbdw3.dr \
		$(MD)/ddx0.dd $(MD)/x1.dd \
		$(MD)/scdwp.dr $(MD)/p_scdwp.dd \
		$(CD)/shell_21

BOOTFILES	= bootfile

ALLOBJS		= $(BOOTFILES)

all:	$(ALLOBJS)

bootfile: $(BOOTFILE_P1) $(BOOTFILE_P2) $(DEPENDS)
	$(MERGE) $(BOOTFILE_P1)>$@_p1
	ls -l $@_p1
	$(PADROM) -b 7168 $@_p1
	$(PADROM) -b 9216 $@_p1
	$(MERGE) $(BOOTFILE_P2)>$@_p2
	ls -l $@_p2
	$(MERGE) $@_p2 $@_p1>$@
	$(PADROM) -b 29696 $@

clean:
	$(RM) $(ALLOBJS)