annotate level1/makefile @ 1193:3bea32e43d26

Fixed bad assumption in Makefile
author boisy
date Sun, 01 Jun 2003 20:35:30 +0000
parents 0836a89b1eac
children 4e235f213651
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1166
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 1132
diff changeset
1 # Makefile for OS-9 Level One
bb618bed0bdc Miscellaneous source improvements
boisy
parents: 1132
diff changeset
2
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 include ../Makefile.rules
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
5 RELEASE = os9l1v030102
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1129
diff changeset
6 BOOTFILE = BOOTFILES/bootfile_stock
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
7 KERNELFILE = BOOTFILES/kernel_stock
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1129
diff changeset
8 DIRS = CMDS MODULES DEFS SYS BOOTFILES
454
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
9
561
b857a3ab42d5 No longer reference CMDS_D1 or CMDS_D2
boisy
parents: 558
diff changeset
10 CMDS = $(shell $(CD) CMDS; make showcocoobjs)
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
11 BOOTTRACK = $(shell $(CD) MODULES; make showboottrack)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
12 KERNEL = $(shell $(CD) MODULES; make showkernel)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
13 SYSMODS = $(shell $(CD) MODULES; make showsysmods)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
14 CLOCKS = $(shell $(CD) MODULES; make showclocks)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
15 RBF = $(shell $(CD) MODULES; make showrbf)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
16 SCF = $(shell $(CD) MODULES; make showscf)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
17 PIPE = $(shell $(CD) MODULES; make showpipe)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
18
454
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
19 SYS = $(shell $(CD) SYS; make showobjs)
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
20 DEFS = $(shell $(CD) DEFS; make showobjs)
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
21 ROOTFILES = startup
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
22
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
23 PACKAGENAME = $(RELEASE).zip
1026
33efa4eee488 Now has two distribution DSK images
boisy
parents: 960
diff changeset
24 DSK1 = $(RELEASE)_ds40_1.dsk
33efa4eee488 Now has two distribution DSK images
boisy
parents: 960
diff changeset
25 DSK2 = $(RELEASE)_ds40_2.dsk
323
9ca004356f09 Makefiles modified
boisy
parents: 107
diff changeset
26
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
27
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 # Make all components
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 all:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 @$(ECHO) "*********************************************"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 @$(ECHO) "* *"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 @$(ECHO) "* OS-9 Level One Distribution *"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 @$(ECHO) "* *"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 @$(ECHO) "*********************************************"
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1129
diff changeset
35 $(foreach dir, $(DIRS), ($(CD) $(dir); make);)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 # Clean all components
454
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
38 clean: dskclean
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1129
diff changeset
39 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
454
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
40
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
41 dskclean:
1026
33efa4eee488 Now has two distribution DSK images
boisy
parents: 960
diff changeset
42 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2)
454
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
43
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
44 dsk: all $(PACKAGENAME)
14157dc9e1d2 Major mods to Makefiles
boisy
parents: 323
diff changeset
45
1119
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1076
diff changeset
46 dskcopy: dsk
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1076
diff changeset
47 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR)
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1076
diff changeset
48
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1129
diff changeset
49 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1129
diff changeset
50 $(ARCHIVE) $@ $^
710
4b8f2de93c51 Added DS40 target
boisy
parents: 588
diff changeset
51
1026
33efa4eee488 Now has two distribution DSK images
boisy
parents: 960
diff changeset
52 $(DSK1):
1122
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
53 $(RM) $@
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
54 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One System Disk"
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
55 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE)
1122
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
56 $(MAKDIR) $@,CMDS
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
57 $(MAKDIR) $@,SYS
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
58 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
59 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
1122
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
60 $(CD) SYS; $(CPL) $(SYS) ../$@,SYS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
61 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);)
1122
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
62 $(MAKDIR) $@,DEFS
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
63 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
64 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
1122
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
65 $(CPL) $(ROOTFILES) $@,.
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
66 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);)
710
4b8f2de93c51 Added DS40 target
boisy
parents: 588
diff changeset
67
1026
33efa4eee488 Now has two distribution DSK images
boisy
parents: 960
diff changeset
68 $(DSK2):
1122
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
69 $(RM) $@
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
70 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One Modules Disk"
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
71 $(MAKDIR) $@,MODULES
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
72 $(MAKDIR) $@,MODULES/BOOTTRACK
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
73 $(CD) MODULES; $(CP) $(BOOTTRACK) ../$@,MODULES/BOOTTRACK
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
74 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,MODULES/BOOTTRACK/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
75 $(MAKDIR) $@,MODULES/KERNEL
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
76 $(CD) MODULES; $(CP) $(KERNEL) ../$@,MODULES/KERNEL
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
77 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,MODULES/KERNEL/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
78 $(MAKDIR) $@,MODULES/SYSMODS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
79 $(CD) MODULES; $(CP) $(SYSMODS) ../$@,MODULES/SYSMODS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
80 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,MODULES/SYSMODS/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
81 $(MAKDIR) $@,MODULES/CLOCKS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
82 $(CD) MODULES; $(CP) $(CLOCKS) ../$@,MODULES/CLOCKS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
83 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,MODULES/CLOCKS/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
84 $(MAKDIR) $@,MODULES/RBF
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
85 $(CD) MODULES; $(CP) $(RBF) ../$@,MODULES/RBF
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
86 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,MODULES/RBF/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
87 $(MAKDIR) $@,MODULES/SCF
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
88 $(CD) MODULES; $(CP) $(SCF) ../$@,MODULES/SCF
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
89 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,MODULES/SCF/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
90 $(MAKDIR) $@,MODULES/PIPE
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
91 $(CD) MODULES; $(CP) $(PIPE) ../$@,MODULES/PIPE
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
92 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
93 $(MAKDIR) $@,BOOTLISTS
1193
3bea32e43d26 Fixed bad assumption in Makefile
boisy
parents: 1186
diff changeset
94 $(CD) BOOTLISTS; $(CPL) bootlist* ../$@,BOOTLISTS
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
95 # $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);)
1026
33efa4eee488 Now has two distribution DSK images
boisy
parents: 960
diff changeset
96
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1166
diff changeset
97