annotate level2/makefile @ 1186:0836a89b1eac

Changed MODULE directory organization
author boisy
date Fri, 30 May 2003 21:09:07 +0000
parents a3d0ac951684
children 3bea32e43d26
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1167
a3d0ac951684 Miscellaneous source improvements
boisy
parents: 1153
diff changeset
1 # Makefile for OS-9 Level Two
a3d0ac951684 Miscellaneous source improvements
boisy
parents: 1153
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: 1167
diff changeset
5 RELEASE = os9l2v030102
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
6 BOOTFILE = BOOTFILES/bootfile_vdg
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
7 KERNELFILE = BOOTFILES/kernel_stock
1153
238d270bcb77 DEFS added to list of dirs, left of inadvertently
boisy
parents: 1141
diff changeset
8 DIRS = CMDS MODULES DEFS SYS BOOTFILES
455
boisy
parents: 355
diff changeset
9
900
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
10 CMDS = $(shell $(CD) CMDS; make showobjs)
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
11 BOOTTRACK = $(shell $(CD) MODULES; make showboottrack)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
12 KERNEL = $(shell $(CD) MODULES; make showkernel)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
13 SYSMODS = $(shell $(CD) MODULES; make showsysmods)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
14 CLOCKS = $(shell $(CD) MODULES; make showclocks)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
15 RBF = $(shell $(CD) MODULES; make showrbf)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
16 SCF = $(shell $(CD) MODULES; make showscf)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
17 PIPE = $(shell $(CD) MODULES; make showpipe)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
18
900
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
19 DEFS = $(shell $(CD) DEFS; make showobjs)
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
20 SYSBIN = $(shell $(CD) SYS; make showbinobjs)
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
21 SYSTEXT = $(shell $(CD) SYS; make showtextobjs)
1141
061823503a2f upgrade_song is now gone
boisy
parents: 1132
diff changeset
22 ROOTFILES = startup
1122
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
23 SYSGO = cc3go
455
boisy
parents: 355
diff changeset
24
900
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
25 PACKAGENAME = $(RELEASE).zip
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
26 DSK1 = $(RELEASE)_ds40_1.dsk
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
27 DSK2 = $(RELEASE)_ds40_2.dsk
558
0ff357df35c5 Modified : to ,
boisy
parents: 520
diff changeset
28 TESTDSK = test.dsk
455
boisy
parents: 355
diff changeset
29
341
20944721d3e6 Major makefile mods
boisy
parents: 337
diff changeset
30
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 # Make all components
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 all:
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: 1131
diff changeset
35 @$(ECHO) "* OS-9 Level Two Distribution *"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 @$(ECHO) "* *"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 @$(ECHO) "*********************************************"
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
38 $(foreach dir, $(DIRS), ($(CD) $(dir); make);)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 # Clean all components
455
boisy
parents: 355
diff changeset
41 clean: dskclean
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
42 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
455
boisy
parents: 355
diff changeset
43
boisy
parents: 355
diff changeset
44 dskclean:
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
45 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2)
455
boisy
parents: 355
diff changeset
46
boisy
parents: 355
diff changeset
47 dsk: all $(PACKAGENAME)
boisy
parents: 355
diff changeset
48
1119
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1075
diff changeset
49 dskcopy: dsk
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1075
diff changeset
50 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR)
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1075
diff changeset
51
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
52 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
53 $(ARCHIVE) $@ $^
455
boisy
parents: 355
diff changeset
54
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
55 $(DSK1):
1131
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
56 -$(RM) $@
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
57 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two System Disk"
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
58 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE)
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
59 $(MAKDIR) $@,CMDS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
60 $(MAKDIR) $@,SYS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
61 $(MAKDIR) $@,DEFS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
62 $(CP) MODULES/$(SYSGO) $@,
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
63 $(OS9ATTR_EXEC) $@,$(SYSGO)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
64 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
65 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
66 $(CD) SYS; $(CP) $(SYSBIN) ../$@,SYS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
67 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
68 $(CD) SYS; $(CPL) $(SYSTEXT) ../$@,SYS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
69 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
70 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
71 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
72 $(CPL) $(ROOTFILES) $@,.
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
73 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);)
455
boisy
parents: 355
diff changeset
74
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
75 $(DSK2):
1131
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
76 -$(RM) $@
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
77 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two Modules Disk"
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
78 $(MAKDIR) $@,MODULES
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
79 $(MAKDIR) $@,MODULES/BOOTTRACK
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
80 $(CD) MODULES; $(CP) $(BOOTTRACK) ../$@,MODULES/BOOTTRACK
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
81 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,MODULES/BOOTTRACK/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
82 $(MAKDIR) $@,MODULES/KERNEL
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
83 $(CD) MODULES; $(CP) $(KERNEL) ../$@,MODULES/KERNEL
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
84 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,MODULES/KERNEL/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
85 $(MAKDIR) $@,MODULES/SYSMODS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
86 $(CD) MODULES; $(CP) $(SYSMODS) ../$@,MODULES/SYSMODS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
87 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,MODULES/SYSMODS/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
88 $(MAKDIR) $@,MODULES/CLOCKS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
89 $(CD) MODULES; $(CP) $(CLOCKS) ../$@,MODULES/CLOCKS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
90 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,MODULES/CLOCKS/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
91 $(MAKDIR) $@,MODULES/RBF
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
92 $(CD) MODULES; $(CP) $(RBF) ../$@,MODULES/RBF
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
93 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,MODULES/RBF/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
94 $(MAKDIR) $@,MODULES/SCF
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
95 $(CD) MODULES; $(CP) $(SCF) ../$@,MODULES/SCF
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
96 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,MODULES/SCF/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
97 $(MAKDIR) $@,MODULES/PIPE
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
98 $(CD) MODULES; $(CP) $(PIPE) ../$@,MODULES/PIPE
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
99 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);)
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
100 $(MAKDIR) $@,BOOTLISTS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
101 $(CD) BOOTLISTS; $(CPL) * ../$@,BOOTLISTS
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
102 # $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);)
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
103