annotate level2/makefile @ 1371:1ed7c47503e8

More changes
author boisy
date Fri, 26 Sep 2003 14:59:09 +0000
parents de053e06fdce
children 44739c8f4e06
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
1 include ../rules.mak
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
3 RELEASE = nos96809l2v030200
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
4 BOOTFILE = bootfiles/bootfile_vdg
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
5 KERNELFILE = bootfiles/kernel_stock
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
6 DIRS = cmds modules defs sys bootfiles
455
boisy
parents: 355
diff changeset
7
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
8 CMDS = $(shell $(CD) cmds; make showobjs)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
9 BOOTTRACK = $(shell $(CD) modules; make showboottrack)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
10 KERNEL = $(shell $(CD) modules; make showkernel)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
11 SYSMODS = $(shell $(CD) modules; make showsysmods)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
12 CLOCKS = $(shell $(CD) modules; make showclocks)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
13 RBF = $(shell $(CD) modules; make showrbf)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
14 SCF = $(shell $(CD) modules; make showscf)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
15 PIPE = $(shell $(CD) modules; make showpipe)
1214
701f6a80163f bootscripts and bootlists added
boisy
parents: 1193
diff changeset
16 MODULECMDS = shell grfdrv del echo format makdir merge os9gen prompt
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
17
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
18 DEFS = $(shell $(CD) defs; make showobjs)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
19 SYSBIN = $(shell $(CD) sys; make showbinobjs)
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
20 SYSTEXT = $(shell $(CD) sys; make showtextobjs)
1141
061823503a2f upgrade_song is now gone
boisy
parents: 1132
diff changeset
21 ROOTFILES = startup
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1227
diff changeset
22 SYSGO = sysgo_dd
455
boisy
parents: 355
diff changeset
23
900
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
24 PACKAGENAME = $(RELEASE).zip
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
25 DSK1 = $(RELEASE)_ds40_1.dsk
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
26 DSK2 = $(RELEASE)_ds40_2.dsk
558
0ff357df35c5 Modified : to ,
boisy
parents: 520
diff changeset
27 TESTDSK = test.dsk
455
boisy
parents: 355
diff changeset
28
341
20944721d3e6 Major makefile mods
boisy
parents: 337
diff changeset
29
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 # Make all components
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 all:
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
32 @$(ECHO) "**************************************************"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
33 @$(ECHO) "* *"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
34 @$(ECHO) "* NitrOS-9/6809 Level 2 Distribution *"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
35 @$(ECHO) "* *"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
36 @$(ECHO) "**************************************************"
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
37 $(foreach dir, $(DIRS), ($(CD) $(dir); make);)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 # Clean all components
455
boisy
parents: 355
diff changeset
40 clean: dskclean
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
41 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
455
boisy
parents: 355
diff changeset
42
boisy
parents: 355
diff changeset
43 dskclean:
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
44 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2)
455
boisy
parents: 355
diff changeset
45
boisy
parents: 355
diff changeset
46 dsk: all $(PACKAGENAME)
boisy
parents: 355
diff changeset
47
1119
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1075
diff changeset
48 dskcopy: dsk
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1075
diff changeset
49 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR)
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1075
diff changeset
50
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
51 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
52 $(ARCHIVE) $@ $^
455
boisy
parents: 355
diff changeset
53
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
54 $(DSK1):
1131
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
55 -$(RM) $@
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
56 $(OS9FORMAT_DS40) $@ -n"NitrOS-9/6809 Level 2 System Disk"
1186
0836a89b1eac Changed MODULE directory organization
boisy
parents: 1167
diff changeset
57 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE)
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
58 $(MAKDIR) $@,CMDS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
59 $(MAKDIR) $@,SYS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
60 $(MAKDIR) $@,DEFS
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
61 $(CP) modules/$(SYSGO) $@,sysgo
1315
23c681a015e1 cc3go has been renamed to SysGo
boisy
parents: 1227
diff changeset
62 $(OS9ATTR_EXEC) $@,sysgo
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
63 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
64 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
65 $(CD) sys; $(CP) $(SYSBIN) ../$@,SYS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
66 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);)
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
67 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
68 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);)
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
69 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
70 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
71 $(CPL) $(ROOTFILES) $@,.
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
72 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);)
455
boisy
parents: 355
diff changeset
73
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
74 $(DSK2):
1131
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
75 -$(RM) $@
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
76 $(OS9FORMAT_DS40) $@ -n"NitrOS-9/6809 Level 2 Modules Disk"
1369
de053e06fdce Changes
boisy
parents: 1363
diff changeset
77 $(MAKDIR) $@,NITROS9
de053e06fdce Changes
boisy
parents: 1363
diff changeset
78 $(MAKDIR) $@,NITROS9/6809L2
de053e06fdce Changes
boisy
parents: 1363
diff changeset
79 $(MAKDIR) $@,NITROS9/6809L2/CMDS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
80 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L2/CMDS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
81 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/CMDS/$(file);)
de053e06fdce Changes
boisy
parents: 1363
diff changeset
82 $(MAKDIR) $@,NITROS9/6809L2/MODULES
de053e06fdce Changes
boisy
parents: 1363
diff changeset
83 $(MAKDIR) $@,NITROS9/6809L2/MODULES/BOOTTRACK
de053e06fdce Changes
boisy
parents: 1363
diff changeset
84 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L2/MODULES/BOOTTRACK
de053e06fdce Changes
boisy
parents: 1363
diff changeset
85 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/BOOTTRACK/$(file);)
de053e06fdce Changes
boisy
parents: 1363
diff changeset
86 $(MAKDIR) $@,NITROS9/6809L2/MODULES/KERNEL
de053e06fdce Changes
boisy
parents: 1363
diff changeset
87 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L2/MODULES/KERNEL
de053e06fdce Changes
boisy
parents: 1363
diff changeset
88 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/KERNEL/$(file);)
de053e06fdce Changes
boisy
parents: 1363
diff changeset
89 $(MAKDIR) $@,NITROS9/6809L2/MODULES/SYSMODS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
90 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L2/MODULES/SYSMODS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
91 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/SYSMODS/$(file);)
de053e06fdce Changes
boisy
parents: 1363
diff changeset
92 $(MAKDIR) $@,NITROS9/6809L2/MODULES/CLOCKS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
93 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L2/MODULES/CLOCKS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
94 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/CLOCKS/$(file);)
de053e06fdce Changes
boisy
parents: 1363
diff changeset
95 $(MAKDIR) $@,NITROS9/6809L2/MODULES/RBF
de053e06fdce Changes
boisy
parents: 1363
diff changeset
96 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L2/MODULES/RBF
de053e06fdce Changes
boisy
parents: 1363
diff changeset
97 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/RBF/$(file);)
de053e06fdce Changes
boisy
parents: 1363
diff changeset
98 $(MAKDIR) $@,NITROS9/6809L2/MODULES/SCF
de053e06fdce Changes
boisy
parents: 1363
diff changeset
99 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L2/MODULES/SCF
de053e06fdce Changes
boisy
parents: 1363
diff changeset
100 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/SCF/$(file);)
de053e06fdce Changes
boisy
parents: 1363
diff changeset
101 $(MAKDIR) $@,NITROS9/6809L2/MODULES/PIPE
de053e06fdce Changes
boisy
parents: 1363
diff changeset
102 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L2/MODULES/PIPE
de053e06fdce Changes
boisy
parents: 1363
diff changeset
103 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/PIPE/$(file);)
de053e06fdce Changes
boisy
parents: 1363
diff changeset
104 $(MAKDIR) $@,NITROS9/6809L2/BOOTLISTS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
105 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L2/BOOTLISTS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
106 $(MAKDIR) $@,NITROS9/6809L2/BOOTSCRIPTS
de053e06fdce Changes
boisy
parents: 1363
diff changeset
107 $(CD) bootscripts; $(CPL) mb* ../$@,NITROS9/6809L2/BOOTSCRIPTS
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
108