view level1/makefile @ 841:d5c84431e734

Shrank help a bit more to reduce size
author boisy
date Tue, 14 Jan 2003 15:01:07 +0000
parents 4b8f2de93c51
children 1c4523015673
line wrap: on
line source

include ../Makefile.rules

RELEASE		= os9l1v020100cc
BOOTFILE	= bootfile_stock
KERNEL		= kernel_stock

CMDS		= $(shell $(CD) CMDS; make showcocoobjs)
MODULES		= $(shell $(CD) MODULES; make showcopyobjs)
SYS		= $(shell $(CD) SYS; make showobjs)
DEFS		= $(shell $(CD) DEFS; make showobjs)
ROOTFILES	= startup

PACKAGENAME	= $(RELEASE).zip
DSK_SS35_1	= $(RELEASE)_ss35_1.dsk
DSK_SS35_2	= $(RELEASE)_ss35_2.dsk
DSK_DS40	= $(RELEASE)_ds40.dsk

# Make all components
all:
	@$(ECHO) "*********************************************"
	@$(ECHO) "*                                           *"
	@$(ECHO) "*        OS-9 Level One Distribution        *"
	@$(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_SS35_1) $(DSK_SS35_2) $(DSK_DS40)

dsk: all $(PACKAGENAME)

$(PACKAGENAME): $(DSK_SS35_1) $(DSK_SS35_2) $(DSK_DS40)
	$(ZIP) $(PACKAGENAME) $(DSK_SS35_1) $(DSK_SS35_2) $(DSK_DS40) ReleaseNotes ChangeLog

$(DSK_SS35_1):
	$(RM) $(DSK_SS35_1)
	$(OS9FORMAT) $(DSK_SS35_1) -t35 -h1 -n"OS-9 Level One System Disk"
	$(OS9GEN) $(DSK_SS35_1) BOOTFILES/$(BOOTFILE) BOOTFILES/$(KERNEL)
	$(MAKDIR) $(DSK_SS35_1),CMDS
	$(MAKDIR) $(DSK_SS35_1),SYS
	$(CD) CMDS; $(CP) $(CMDS) ../$(DSK_SS35_1),CMDS
	$(CD) SYS; $(CP) $(SYS) ../$(DSK_SS35_1),SYS
	$(CP) $(ROOTFILES) $(DSK_SS35_1),.

$(DSK_SS35_2):
	$(RM) $(DSK_SS35_2)
	$(OS9FORMAT) $(DSK_SS35_2) -t35 -h1 -n"OS-9 Level One Modules Disk"
	$(MAKDIR) $(DSK_SS35_2),MODULES
	$(MAKDIR) $(DSK_SS35_2),DEFS
	$(CD) MODULES; $(CP) $(MODULES) ../$(DSK_SS35_2),MODULES
	$(CD) DEFS; $(CP) $(DEFS) ../$(DSK_SS35_2),DEFS

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