Mercurial > hg > Members > kono > nitros9-code
annotate level2/makefile @ 1214:701f6a80163f
bootscripts and bootlists added
author | boisy |
---|---|
date | Sat, 28 Jun 2003 18:43:08 +0000 |
parents | 3bea32e43d26 |
children | 292efcec1926 |
rev | line source |
---|---|
1167 | 1 # Makefile for OS-9 Level Two |
2 | |
0 | 3 include ../Makefile.rules |
4 | |
1186 | 5 RELEASE = os9l2v030102 |
1132 | 6 BOOTFILE = BOOTFILES/bootfile_vdg |
1186 | 7 KERNELFILE = BOOTFILES/kernel_stock |
1153 | 8 DIRS = CMDS MODULES DEFS SYS BOOTFILES |
455 | 9 |
900 | 10 CMDS = $(shell $(CD) CMDS; make showobjs) |
1186 | 11 BOOTTRACK = $(shell $(CD) MODULES; make showboottrack) |
12 KERNEL = $(shell $(CD) MODULES; make showkernel) | |
13 SYSMODS = $(shell $(CD) MODULES; make showsysmods) | |
14 CLOCKS = $(shell $(CD) MODULES; make showclocks) | |
15 RBF = $(shell $(CD) MODULES; make showrbf) | |
16 SCF = $(shell $(CD) MODULES; make showscf) | |
17 PIPE = $(shell $(CD) MODULES; make showpipe) | |
1214 | 18 MODULECMDS = shell grfdrv del echo format makdir merge os9gen prompt |
1186 | 19 |
900 | 20 DEFS = $(shell $(CD) DEFS; make showobjs) |
21 SYSBIN = $(shell $(CD) SYS; make showbinobjs) | |
22 SYSTEXT = $(shell $(CD) SYS; make showtextobjs) | |
1141 | 23 ROOTFILES = startup |
1122 | 24 SYSGO = cc3go |
455 | 25 |
900 | 26 PACKAGENAME = $(RELEASE).zip |
1027 | 27 DSK1 = $(RELEASE)_ds40_1.dsk |
28 DSK2 = $(RELEASE)_ds40_2.dsk | |
558 | 29 TESTDSK = test.dsk |
455 | 30 |
341 | 31 |
0 | 32 # Make all components |
33 all: | |
34 @$(ECHO) "*********************************************" | |
35 @$(ECHO) "* *" | |
1132 | 36 @$(ECHO) "* OS-9 Level Two Distribution *" |
0 | 37 @$(ECHO) "* *" |
38 @$(ECHO) "*********************************************" | |
1132 | 39 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) |
0 | 40 |
41 # Clean all components | |
455 | 42 clean: dskclean |
1132 | 43 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) |
455 | 44 |
45 dskclean: | |
1027 | 46 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) |
455 | 47 |
48 dsk: all $(PACKAGENAME) | |
49 | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
50 dskcopy: dsk |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
51 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR) |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
52 |
1132 | 53 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog |
54 $(ARCHIVE) $@ $^ | |
455 | 55 |
1027 | 56 $(DSK1): |
1131 | 57 -$(RM) $@ |
58 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two System Disk" | |
1186 | 59 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) |
1126 | 60 $(MAKDIR) $@,CMDS |
61 $(MAKDIR) $@,SYS | |
62 $(MAKDIR) $@,DEFS | |
63 $(CP) MODULES/$(SYSGO) $@, | |
64 $(OS9ATTR_EXEC) $@,$(SYSGO) | |
65 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS | |
66 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
67 $(CD) SYS; $(CP) $(SYSBIN) ../$@,SYS | |
68 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
69 $(CD) SYS; $(CPL) $(SYSTEXT) ../$@,SYS | |
70 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
71 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS | |
72 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
73 $(CPL) $(ROOTFILES) $@,. | |
74 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
455 | 75 |
1027 | 76 $(DSK2): |
1131 | 77 -$(RM) $@ |
78 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two Modules Disk" | |
1214 | 79 $(MAKDIR) $@,CMDS |
80 $(CD) CMDS; $(CP) $(MODULECMDS) ../$@,CMDS | |
81 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
1131 | 82 $(MAKDIR) $@,MODULES |
1186 | 83 $(MAKDIR) $@,MODULES/BOOTTRACK |
84 $(CD) MODULES; $(CP) $(BOOTTRACK) ../$@,MODULES/BOOTTRACK | |
85 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,MODULES/BOOTTRACK/$(file);) | |
86 $(MAKDIR) $@,MODULES/KERNEL | |
87 $(CD) MODULES; $(CP) $(KERNEL) ../$@,MODULES/KERNEL | |
88 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,MODULES/KERNEL/$(file);) | |
89 $(MAKDIR) $@,MODULES/SYSMODS | |
90 $(CD) MODULES; $(CP) $(SYSMODS) ../$@,MODULES/SYSMODS | |
91 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,MODULES/SYSMODS/$(file);) | |
92 $(MAKDIR) $@,MODULES/CLOCKS | |
93 $(CD) MODULES; $(CP) $(CLOCKS) ../$@,MODULES/CLOCKS | |
94 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,MODULES/CLOCKS/$(file);) | |
95 $(MAKDIR) $@,MODULES/RBF | |
96 $(CD) MODULES; $(CP) $(RBF) ../$@,MODULES/RBF | |
97 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,MODULES/RBF/$(file);) | |
98 $(MAKDIR) $@,MODULES/SCF | |
99 $(CD) MODULES; $(CP) $(SCF) ../$@,MODULES/SCF | |
100 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,MODULES/SCF/$(file);) | |
101 $(MAKDIR) $@,MODULES/PIPE | |
102 $(CD) MODULES; $(CP) $(PIPE) ../$@,MODULES/PIPE | |
103 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);) | |
104 $(MAKDIR) $@,BOOTLISTS | |
1214 | 105 $(CD) BOOTLISTS; $(CPL) *.bl ../$@,BOOTLISTS |
106 $(MAKDIR) $@,BOOTSCRIPTS | |
107 $(CD) BOOTSCRIPTS; $(CPL) mb* ../$@,BOOTSCRIPTS | |
1186 | 108 # $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);) |
1126 | 109 |