Mercurial > hg > Members > kono > nitros9-code
annotate level2/makefile @ 1446:7687a6621d7a
720K disk images are now made
sacia.asm fixed typo -- still needs to be completely ported!
author | boisy |
---|---|
date | Thu, 11 Dec 2003 04:51:49 +0000 |
parents | 229396b827b0 |
children | 0840929fea5d |
rev | line source |
---|---|
1363 | 1 include ../rules.mak |
0 | 2 |
1363 | 3 RELEASE = nos96809l2v030200 |
4 BOOTFILE = bootfiles/bootfile_vdg | |
1446 | 5 BOOTFILE_DS80 = bootfiles/bootfile_vdg_ds80 |
1363 | 6 KERNELFILE = bootfiles/kernel_stock |
7 DIRS = cmds modules defs sys bootfiles | |
455 | 8 |
1363 | 9 CMDS = $(shell $(CD) cmds; make showobjs) |
10 BOOTTRACK = $(shell $(CD) modules; make showboottrack) | |
11 KERNEL = $(shell $(CD) modules; make showkernel) | |
12 SYSMODS = $(shell $(CD) modules; make showsysmods) | |
13 CLOCKS = $(shell $(CD) modules; make showclocks) | |
14 RBF = $(shell $(CD) modules; make showrbf) | |
15 SCF = $(shell $(CD) modules; make showscf) | |
16 PIPE = $(shell $(CD) modules; make showpipe) | |
1214 | 17 MODULECMDS = shell grfdrv del echo format makdir merge os9gen prompt |
1186 | 18 |
1363 | 19 DEFS = $(shell $(CD) defs; make showobjs) |
20 SYSBIN = $(shell $(CD) sys; make showbinobjs) | |
21 SYSTEXT = $(shell $(CD) sys; make showtextobjs) | |
1141 | 22 ROOTFILES = startup |
1315 | 23 SYSGO = sysgo_dd |
455 | 24 |
900 | 25 PACKAGENAME = $(RELEASE).zip |
1445 | 26 DSK360K_1 = $(RELEASE)_ds40_1.dsk |
27 DSK360K_2 = $(RELEASE)_ds40_2.dsk | |
28 DSK720K = $(RELEASE)_ds80.dsk | |
558 | 29 TESTDSK = test.dsk |
455 | 30 |
341 | 31 |
0 | 32 # Make all components |
33 all: | |
1363 | 34 @$(ECHO) "**************************************************" |
35 @$(ECHO) "* *" | |
36 @$(ECHO) "* NitrOS-9/6809 Level 2 Distribution *" | |
37 @$(ECHO) "* *" | |
38 @$(ECHO) "**************************************************" | |
1132 | 39 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) |
0 | 40 |
41 # Clean all components | |
455 | 42 clean: dskclean |
1132 | 43 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) |
455 | 44 |
45 dskclean: | |
1445 | 46 -$(RM) $(PACKAGENAME) $(DSK360K_1) $(DSK360K_2) $(DSK720K) |
455 | 47 |
48 dsk: all $(PACKAGENAME) | |
49 | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
50 dskcopy: dsk |
1445 | 51 $(CP) $(DSK360K_1) $(DSK360K_2) $(DSK720K) $(PACKAGENAME) $(DSKDIR) |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
52 |
1446 | 53 $(PACKAGENAME): $(DSK360K_1) $(DSK360K_2) $(DSK720K) ReadMe ChangeLog |
1132 | 54 $(ARCHIVE) $@ $^ |
455 | 55 |
1445 | 56 $(DSK360K_1): |
1131 | 57 -$(RM) $@ |
1419 | 58 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/6809 Level 2 Disk 1" |
1186 | 59 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) |
1126 | 60 $(MAKDIR) $@,CMDS |
61 $(MAKDIR) $@,SYS | |
62 $(MAKDIR) $@,DEFS | |
1363 | 63 $(CP) modules/$(SYSGO) $@,sysgo |
1315 | 64 $(OS9ATTR_EXEC) $@,sysgo |
1363 | 65 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS |
1126 | 66 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
1363 | 67 $(CD) sys; $(CP) $(SYSBIN) ../$@,SYS |
1126 | 68 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) |
1363 | 69 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS |
1126 | 70 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) |
1363 | 71 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS |
1126 | 72 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) |
73 $(CPL) $(ROOTFILES) $@,. | |
74 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
455 | 75 |
1445 | 76 $(DSK360K_2): |
1131 | 77 -$(RM) $@ |
1419 | 78 $(OS9FORMAT_DS40) -q $@ -n"NitrOS-9/6809 Level 2 Disk 2" |
1369 | 79 $(MAKDIR) $@,NITROS9 |
80 $(MAKDIR) $@,NITROS9/6809L2 | |
81 $(MAKDIR) $@,NITROS9/6809L2/CMDS | |
82 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L2/CMDS | |
83 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/CMDS/$(file);) | |
84 $(MAKDIR) $@,NITROS9/6809L2/MODULES | |
85 $(MAKDIR) $@,NITROS9/6809L2/MODULES/BOOTTRACK | |
86 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L2/MODULES/BOOTTRACK | |
87 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/BOOTTRACK/$(file);) | |
88 $(MAKDIR) $@,NITROS9/6809L2/MODULES/KERNEL | |
89 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L2/MODULES/KERNEL | |
90 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/KERNEL/$(file);) | |
91 $(MAKDIR) $@,NITROS9/6809L2/MODULES/SYSMODS | |
92 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L2/MODULES/SYSMODS | |
93 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/SYSMODS/$(file);) | |
94 $(MAKDIR) $@,NITROS9/6809L2/MODULES/CLOCKS | |
95 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L2/MODULES/CLOCKS | |
96 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/CLOCKS/$(file);) | |
97 $(MAKDIR) $@,NITROS9/6809L2/MODULES/RBF | |
98 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L2/MODULES/RBF | |
99 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/RBF/$(file);) | |
100 $(MAKDIR) $@,NITROS9/6809L2/MODULES/SCF | |
101 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L2/MODULES/SCF | |
102 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/SCF/$(file);) | |
103 $(MAKDIR) $@,NITROS9/6809L2/MODULES/PIPE | |
104 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L2/MODULES/PIPE | |
105 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/PIPE/$(file);) | |
106 $(MAKDIR) $@,NITROS9/6809L2/BOOTLISTS | |
107 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L2/BOOTLISTS | |
1390 | 108 $(MAKDIR) $@,NITROS9/6809L2/SCRIPTS |
109 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L2/SCRIPTS | |
1126 | 110 |
1445 | 111 $(DSK720K): |
112 -$(RM) $@ | |
113 $(OS9FORMAT_DS80) -q $@ -n"NitrOS-9/6809 Level 2" | |
1446 | 114 $(OS9GEN) $@ -b=$(BOOTFILE_DS80) -t=$(KERNELFILE) |
1445 | 115 $(MAKDIR) $@,CMDS |
116 $(MAKDIR) $@,SYS | |
117 $(MAKDIR) $@,DEFS | |
118 $(CP) modules/$(SYSGO) $@,sysgo | |
119 $(OS9ATTR_EXEC) $@,sysgo | |
120 $(CD) cmds; $(CP) $(CMDS) ../$@,CMDS | |
121 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
122 $(CD) sys; $(CP) $(SYSBIN) ../$@,SYS | |
123 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
124 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS | |
125 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
126 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
127 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
128 $(CPL) $(ROOTFILES) $@,. | |
129 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
130 $(MAKDIR) $@,NITROS9 | |
131 $(MAKDIR) $@,NITROS9/6809L2 | |
132 $(MAKDIR) $@,NITROS9/6809L2/CMDS | |
133 $(CD) cmds; $(CP) $(MODULECMDS) ../$@,NITROS9/6809L2/CMDS | |
134 $(foreach file, $(MODULECMDS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/CMDS/$(file);) | |
135 $(MAKDIR) $@,NITROS9/6809L2/MODULES | |
136 $(MAKDIR) $@,NITROS9/6809L2/MODULES/BOOTTRACK | |
137 $(CD) modules; $(CP) $(BOOTTRACK) ../$@,NITROS9/6809L2/MODULES/BOOTTRACK | |
138 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/BOOTTRACK/$(file);) | |
139 $(MAKDIR) $@,NITROS9/6809L2/MODULES/KERNEL | |
140 $(CD) modules; $(CP) $(KERNEL) ../$@,NITROS9/6809L2/MODULES/KERNEL | |
141 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/KERNEL/$(file);) | |
142 $(MAKDIR) $@,NITROS9/6809L2/MODULES/SYSMODS | |
143 $(CD) modules; $(CP) $(SYSMODS) ../$@,NITROS9/6809L2/MODULES/SYSMODS | |
144 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/SYSMODS/$(file);) | |
145 $(MAKDIR) $@,NITROS9/6809L2/MODULES/CLOCKS | |
146 $(CD) modules; $(CP) $(CLOCKS) ../$@,NITROS9/6809L2/MODULES/CLOCKS | |
147 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/CLOCKS/$(file);) | |
148 $(MAKDIR) $@,NITROS9/6809L2/MODULES/RBF | |
149 $(CD) modules; $(CP) $(RBF) ../$@,NITROS9/6809L2/MODULES/RBF | |
150 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/RBF/$(file);) | |
151 $(MAKDIR) $@,NITROS9/6809L2/MODULES/SCF | |
152 $(CD) modules; $(CP) $(SCF) ../$@,NITROS9/6809L2/MODULES/SCF | |
153 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/SCF/$(file);) | |
154 $(MAKDIR) $@,NITROS9/6809L2/MODULES/PIPE | |
155 $(CD) modules; $(CP) $(PIPE) ../$@,NITROS9/6809L2/MODULES/PIPE | |
156 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,NITROS9/6809L2/MODULES/PIPE/$(file);) | |
157 $(MAKDIR) $@,NITROS9/6809L2/BOOTLISTS | |
158 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/6809L2/BOOTLISTS | |
159 $(MAKDIR) $@,NITROS9/6809L2/SCRIPTS | |
160 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/6809L2/SCRIPTS | |
161 | |
162 |