view level1/atari/bootfiles/makefile @ 2890:1addfd8c9d5f

Revert e4a0f58a5f9b (set NITROS9DIR in makefiles) This was not done in lwtools-port and makes it more difficult to compare the trees. Therefore revert it for now. I will reapply or do it in another way later.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 24 Nov 2013 23:13:46 +0100
parents cfa46960b6bd
children 28ed72477814
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)/dwio.sb \
		$(MD)/clock_60hz $(MD)/clock2_dw \
          $(MD)/krn

BOOTFILE_P2 = $(MD)/scf.mn $(MD)/vtio.dr $(MD)/term.dt \
		$(MD)/rbf.mn $(MD)/rbdw.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) bootfile_p1 bootfile_p2