view level2/makefile @ 957:681c6976c352

Added density for 80 track devices
author boisy
date Sun, 26 Jan 2003 14:18:07 +0000
parents d7969e08a482
children ea69ed12af12
line wrap: on
line source

include ../Makefile.rules

RELEASE		= os9l2v030002beta3
BOOTFILE	= bootfile_vdg
KERNEL		= kernel_stock

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

PACKAGENAME	= $(RELEASE).zip
DSK_DS40_1	= $(RELEASE)_ds40_1.dsk
DSK_DS40_2	= $(RELEASE)_ds40_2.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
	$(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

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

dsk: all $(PACKAGENAME)

$(PACKAGENAME): $(DSK_DS40_1) $(DSK_DS40_2)
	$(ZIP) $(PACKAGENAME) $(DSK_DS40_1) $(DSK_DS40_2) ReadMe 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),
	$(CD) CMDS; $(CP) $(CMDS) ../$(DSK_DS40_1),CMDS
	$(CD) SYS; $(CP) $(SYSBIN) ../$(DSK_DS40_1),SYS
	$(CD) SYS; $(CPL) $(SYSTEXT) ../$(DSK_DS40_1),SYS
	$(CD) MODULES; $(CP) $(MODULES) ../$(DSK_DS40_1),MODULES
	$(CPL) $(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; $(CPL) $(DEFS) ../$(DSK_DS40_2),DEFS