Mercurial > hg > Members > kono > nitros9-code
annotate level2/makefile @ 1364:638e8b6421c1
More changes
author | boisy |
---|---|
date | Fri, 26 Sep 2003 12:36:40 +0000 |
parents | 53c50c807d55 |
children | de053e06fdce |
rev | line source |
---|---|
1363 | 1 include ../rules.mak |
0 | 2 |
1363 | 3 RELEASE = nos96809l2v030200 |
4 BOOTFILE = bootfiles/bootfile_vdg | |
5 KERNELFILE = bootfiles/kernel_stock | |
6 DIRS = cmds modules defs sys bootfiles | |
455 | 7 |
1363 | 8 CMDS = $(shell $(CD) cmds; make showobjs) |
9 BOOTTRACK = $(shell $(CD) modules; make showboottrack) | |
10 KERNEL = $(shell $(CD) modules; make showkernel) | |
11 SYSMODS = $(shell $(CD) modules; make showsysmods) | |
12 CLOCKS = $(shell $(CD) modules; make showclocks) | |
13 RBF = $(shell $(CD) modules; make showrbf) | |
14 SCF = $(shell $(CD) modules; make showscf) | |
15 PIPE = $(shell $(CD) modules; make showpipe) | |
1214 | 16 MODULECMDS = shell grfdrv del echo format makdir merge os9gen prompt |
1186 | 17 |
1363 | 18 DEFS = $(shell $(CD) defs; make showobjs) |
19 SYSBIN = $(shell $(CD) sys; make showbinobjs) | |
20 SYSTEXT = $(shell $(CD) sys; make showtextobjs) | |
1141 | 21 ROOTFILES = startup |
1315 | 22 SYSGO = sysgo_dd |
455 | 23 |
900 | 24 PACKAGENAME = $(RELEASE).zip |
1027 | 25 DSK1 = $(RELEASE)_ds40_1.dsk |
26 DSK2 = $(RELEASE)_ds40_2.dsk | |
558 | 27 TESTDSK = test.dsk |
455 | 28 |
341 | 29 |
0 | 30 # Make all components |
31 all: | |
1363 | 32 @$(ECHO) "**************************************************" |
33 @$(ECHO) "* *" | |
34 @$(ECHO) "* NitrOS-9/6809 Level 2 Distribution *" | |
35 @$(ECHO) "* *" | |
36 @$(ECHO) "**************************************************" | |
1132 | 37 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) |
0 | 38 |
39 # Clean all components | |
455 | 40 clean: dskclean |
1132 | 41 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) |
455 | 42 |
43 dskclean: | |
1027 | 44 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) |
455 | 45 |
46 dsk: all $(PACKAGENAME) | |
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 | 51 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog |
52 $(ARCHIVE) $@ $^ | |
455 | 53 |
1027 | 54 $(DSK1): |
1131 | 55 -$(RM) $@ |
1363 | 56 $(OS9FORMAT_DS40) $@ -n"NitrOS-9/6809 Level 2 System Disk" |
1186 | 57 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) |
1126 | 58 $(MAKDIR) $@,CMDS |
59 $(MAKDIR) $@,SYS | |
60 $(MAKDIR) $@,DEFS | |
1363 | 61 $(CP) modules/$(SYSGO) $@,sysgo |
1315 | 62 $(OS9ATTR_EXEC) $@,sysgo |
1363 | 63 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS |
1126 | 64 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
1363 | 65 $(CD) sys; $(CP) $(SYSBIN) ../$@,SYS |
1126 | 66 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) |
1363 | 67 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS |
1126 | 68 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) |
1363 | 69 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS |
1126 | 70 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) |
71 $(CPL) $(ROOTFILES) $@,. | |
72 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
455 | 73 |
1027 | 74 $(DSK2): |
1131 | 75 -$(RM) $@ |
1363 | 76 $(OS9FORMAT_DS40) $@ -n"NitrOS-9/6809 Level 2 Modules Disk" |
77 $(MAKDIR) $@,6809L2 | |
78 $(MAKDIR) $@,6809L2/CMDS | |
79 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,6809L2/CMDS | |
80 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,6809L2/CMDS/$(file);) | |
81 $(MAKDIR) $@,6809L2/MODULES | |
82 $(MAKDIR) $@,6809L2/MODULES/BOOTTRACK | |
83 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,6809L2/MODULES/BOOTTRACK | |
84 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,6809L2/MODULES/BOOTTRACK/$(file);) | |
85 $(MAKDIR) $@,6809L2/MODULES/KERNEL | |
86 $(CD) modules; $(CP) $(KERNEL) ../$@,6809L2/MODULES/KERNEL | |
87 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,6809L2/MODULES/KERNEL/$(file);) | |
88 $(MAKDIR) $@,6809L2/MODULES/SYSMODS | |
89 $(CD) modules; $(CP) $(SYSMODS) ../$@,6809L2/MODULES/SYSMODS | |
90 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,6809L2/MODULES/SYSMODS/$(file);) | |
91 $(MAKDIR) $@,6809L2/MODULES/CLOCKS | |
92 $(CD) modules; $(CP) $(CLOCKS) ../$@,6809L2/MODULES/CLOCKS | |
93 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,6809L2/MODULES/CLOCKS/$(file);) | |
94 $(MAKDIR) $@,6809L2/MODULES/RBF | |
95 $(CD) modules; $(CP) $(RBF) ../$@,6809L2/MODULES/RBF | |
96 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,6809L2/MODULES/RBF/$(file);) | |
97 $(MAKDIR) $@,6809L2/MODULES/SCF | |
98 $(CD) modules; $(CP) $(SCF) ../$@,6809L2/MODULES/SCF | |
99 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,6809L2/MODULES/SCF/$(file);) | |
100 $(MAKDIR) $@,6809L2/MODULES/PIPE | |
101 $(CD) modules; $(CP) $(PIPE) ../$@,6809L2/MODULES/PIPE | |
102 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,6809L2/MODULES/PIPE/$(file);) | |
103 $(MAKDIR) $@,6809L2/BOOTLISTS | |
104 $(CD) bootlists; $(CPL) *.bl ../$@,6809L2/BOOTLISTS | |
105 $(MAKDIR) $@,6809L2/BOOTSCRIPTS | |
106 $(CD) bootscripts; $(CPL) mb* ../$@,6809L2/BOOTSCRIPTS | |
1126 | 107 |