Mercurial > hg > Members > kono > nitros9-code
annotate level1/makefile @ 1311:e7cac8de00e9
Updated Makefiles to build bootfiles from new module filenames
author | boisy |
---|---|
date | Thu, 04 Sep 2003 15:18:29 +0000 |
parents | 230f052298a5 |
children | 5a18c9bf3def |
rev | line source |
---|---|
1166 | 1 # Makefile for OS-9 Level One |
2 | |
0 | 3 include ../Makefile.rules |
4 | |
1222
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
5 RELEASE = os9l1v030104 |
1132 | 6 BOOTFILE = BOOTFILES/bootfile_stock |
1186 | 7 KERNELFILE = BOOTFILES/kernel_stock |
1132 | 8 DIRS = CMDS MODULES DEFS SYS BOOTFILES |
454 | 9 |
561 | 10 CMDS = $(shell $(CD) CMDS; make showcocoobjs) |
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) | |
1213
4e235f213651
Lots of changes: bootscripts and bootlists added, sources massaged...
boisy
parents:
1193
diff
changeset
|
18 MODULECMDS = shell del echo format makdir merge os9gen prompt |
1186 | 19 |
454 | 20 SYS = $(shell $(CD) SYS; make showobjs) |
21 DEFS = $(shell $(CD) DEFS; make showobjs) | |
22 ROOTFILES = startup | |
23 | |
24 PACKAGENAME = $(RELEASE).zip | |
1026 | 25 DSK1 = $(RELEASE)_ds40_1.dsk |
26 DSK2 = $(RELEASE)_ds40_2.dsk | |
323 | 27 |
1186 | 28 |
0 | 29 # Make all components |
30 all: | |
31 @$(ECHO) "*********************************************" | |
32 @$(ECHO) "* *" | |
33 @$(ECHO) "* OS-9 Level One Distribution *" | |
34 @$(ECHO) "* *" | |
35 @$(ECHO) "*********************************************" | |
1132 | 36 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) |
0 | 37 |
38 # Clean all components | |
454 | 39 clean: dskclean |
1132 | 40 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) |
454 | 41 |
42 dskclean: | |
1026 | 43 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) |
454 | 44 |
45 dsk: all $(PACKAGENAME) | |
46 | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
47 dskcopy: dsk |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
48 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR) |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
49 |
1132 | 50 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog |
51 $(ARCHIVE) $@ $^ | |
710 | 52 |
1026 | 53 $(DSK1): |
1122 | 54 $(RM) $@ |
55 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One System Disk" | |
1186 | 56 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) |
1122 | 57 $(MAKDIR) $@,CMDS |
58 $(MAKDIR) $@,SYS | |
59 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS | |
1126 | 60 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
1122 | 61 $(CD) SYS; $(CPL) $(SYS) ../$@,SYS |
1126 | 62 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) |
1122 | 63 $(MAKDIR) $@,DEFS |
64 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS | |
1126 | 65 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) |
1122 | 66 $(CPL) $(ROOTFILES) $@,. |
1126 | 67 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) |
710 | 68 |
1026 | 69 $(DSK2): |
1122 | 70 $(RM) $@ |
71 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One Modules Disk" | |
1222
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
72 $(MAKDIR) $@,LEVEL1 |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
73 $(MAKDIR) $@,LEVEL1/CMDS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
74 $(CD) CMDS; $(CP) $(MODULECMDS) ../$@,LEVEL1/CMDS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
75 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,LEVEL1/CMDS/$(file);) |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
76 $(MAKDIR) $@,LEVEL1/MODULES |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
77 $(MAKDIR) $@,LEVEL1/MODULES/BOOTTRACK |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
78 $(CD) MODULES; $(CP) $(BOOTTRACK) ../$@,LEVEL1/MODULES/BOOTTRACK |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
79 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/BOOTTRACK/$(file);) |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
80 $(MAKDIR) $@,LEVEL1/MODULES/KERNEL |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
81 $(CD) MODULES; $(CP) $(KERNEL) ../$@,LEVEL1/MODULES/KERNEL |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
82 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/KERNEL/$(file);) |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
83 $(MAKDIR) $@,LEVEL1/MODULES/SYSMODS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
84 $(CD) MODULES; $(CP) $(SYSMODS) ../$@,LEVEL1/MODULES/SYSMODS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
85 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/SYSMODS/$(file);) |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
86 $(MAKDIR) $@,LEVEL1/MODULES/CLOCKS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
87 $(CD) MODULES; $(CP) $(CLOCKS) ../$@,LEVEL1/MODULES/CLOCKS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
88 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/CLOCKS/$(file);) |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
89 $(MAKDIR) $@,LEVEL1/MODULES/RBF |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
90 $(CD) MODULES; $(CP) $(RBF) ../$@,LEVEL1/MODULES/RBF |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
91 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/RBF/$(file);) |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
92 $(MAKDIR) $@,LEVEL1/MODULES/SCF |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
93 $(CD) MODULES; $(CP) $(SCF) ../$@,LEVEL1/MODULES/SCF |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
94 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/SCF/$(file);) |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
95 $(MAKDIR) $@,LEVEL1/MODULES/PIPE |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
96 $(CD) MODULES; $(CP) $(PIPE) ../$@,LEVEL1/MODULES/PIPE |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
97 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,LEVEL1/MODULES/PIPE/$(file);) |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
98 $(MAKDIR) $@,LEVEL1/BOOTLISTS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
99 $(CD) BOOTLISTS; $(CPL) *.bl ../$@,LEVEL1/BOOTLISTS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
100 $(MAKDIR) $@,LEVEL1/BOOTSCRIPTS |
230f052298a5
os9gen's -t now works with Level 1 boot track files, bootlists modified
boisy
parents:
1213
diff
changeset
|
101 $(CD) BOOTSCRIPTS; $(CPL) mb* ../$@,LEVEL1/BOOTSCRIPTS |
1026 | 102 |