view level2/makefile @ 691:ddf512f635d2

Ever so closer
author boisy
date Mon, 30 Dec 2002 03:52:24 +0000
parents 0ff357df35c5
children 59a079eb1b0b
line wrap: on
line source

include ../Makefile.rules

RELEASE		= os9l2v030002beta2
BOOTFILE	= bootfile_stock
KERNEL		= kernel_stock

CMDS            = $(shell $(CD) CMDS; make showobjs)
MODULES         = $(shell $(CD) MODULES; make showcopyobjs)
DEFS            = $(shell $(CD) DEFS; make showobjs)
SYS             = $(shell $(CD) SYS; make showobjs)
ROOTFILES	= startup upgrade_song
SYSGO           = MODULES/cc3go

PACKAGENAME     = $(RELEASE).zip
DSK_DS40_1      = $(RELEASE)_ds40_1.dsk
DSK_DS40_2      = $(RELEASE)_ds40_2.dsk
DSK_DS80	= $(RELEASE)_ds80.dsk
TESTDSK		= test.dsk


# Make all components
all:
	@$(ECHO) "*********************************************"
	@$(ECHO) "*                                           *"
	@$(ECHO) "*      OS-9 Level Two Vr3 Distribution      *"
	@$(ECHO) "*        The Rumored Upgrade Version        *"
	@$(ECHO) "*                                           *"
	@$(ECHO) "*********************************************"
	$(CD) CMDS; make
	$(CD) MODULES; make
	$(CD) DEFS; make
	$(CD) SYS; make
	$(CD) BOOTFILES; make
	$(UNIX2OS9) $(ROOTFILES)
	$(CHMOD) 644 $(ROOTFILES)

# Clean all components
clean: dskclean
	-$(CD) CMDS; make clean
	-$(CD) MODULES; make clean
	-$(CD) DEFS; make clean
	-$(CD) SYS; make clean
	-$(CD) BOOTFILES; make clean
	-$(OS92UNIX) $(ROOTFILES)

dskclean:
	-$(RM) $(PACKAGENAME) $(DSK_DS40_1) $(DSK_DS40_2) $(DSK_DS80)

dsk: all $(PACKAGENAME)

$(PACKAGENAME): $(DSK_DS40_1) $(DSK_DS40_2) $(DSK_DS80)
	$(ZIP) $(PACKAGENAME) $(DSK_DS40_1) $(DSK_DS40_2) $(DSK_DS80) ReleaseNotes ChangeLog

$(DSK_DS40_1):
	-$(RM) $(DSK_DS40_1)
	$(OS9FORMAT) $(DSK_DS40_1) -t40 -h2 -n"OS-9 Level Two System Disk"
	$(OS9GEN) $(DSK_DS40_1) BOOTFILES/$(BOOTFILE) BOOTFILES/$(KERNEL)
	$(MAKDIR) $(DSK_DS40_1),CMDS
	$(MAKDIR) $(DSK_DS40_1),SYS
	$(MAKDIR) $(DSK_DS40_1),MODULES
	$(CP) $(SYSGO) $(DSK_DS40_1),CMDS
	$(CD) CMDS; $(CP) $(CMDS) ../$(DSK_DS40_1),CMDS
	$(CD) SYS; $(CP) $(SYS) ../$(DSK_DS40_1),SYS
	$(CD) MODULES; $(CP) $(MODULES) ../$(DSK_DS40_1),MODULES
	$(CP) $(ROOTFILES) $(DSK_DS40_1),.

$(DSK_DS40_2):
	-$(RM) $(DSK_DS40_2)
	$(OS9FORMAT) $(DSK_DS40_2) -t40 -h2 -n"OS-9 Level Two Development Disk"
	$(MAKDIR) $(DSK_DS40_2),DEFS
	$(CD) DEFS; $(CP) $(DEFS) ../$(DSK_DS40_2),DEFS

$(DSK_DS80):
	-$(RM) $(DSK_DS80)
	$(OS9FORMAT) $(DSK_DS80) -t80 -h2 -n"OS-9 Level Two System Disk"
	$(OS9GEN) $(DSK_DS80) BOOTFILES/$(BOOTFILE) BOOTFILES/$(KERNEL)
	$(MAKDIR) $(DSK_DS80),CMDS
	$(MAKDIR) $(DSK_DS80),SYS
	$(MAKDIR) $(DSK_DS80),MODULES
	$(MAKDIR) $(DSK_DS80),DEFS
	$(CP) $(SYSGO) $(DSK_DS80),CMDS
	$(CD) CMDS; $(CP) $(CMDS) ../$(DSK_DS80),CMDS
	$(CD) SYS; $(CP) $(SYS) ../$(DSK_DS80),SYS
	$(CD) MODULES; $(CP) $(MODULES) ../$(DSK_DS80),MODULES
	$(CD) DEFS; $(CP) $(DEFS) ../$(DSK_DS80),DEFS
	$(CP) $(ROOTFILES) $(DSK_DS80),.