Mercurial > hg > Members > kono > nitros9-code
annotate level2/makefile @ 1186:0836a89b1eac
Changed MODULE directory organization
author | boisy |
---|---|
date | Fri, 30 May 2003 21:09:07 +0000 |
parents | a3d0ac951684 |
children | 3bea32e43d26 |
rev | line source |
---|---|
1167 | 1 # Makefile for OS-9 Level Two |
2 | |
0 | 3 include ../Makefile.rules |
4 | |
1186 | 5 RELEASE = os9l2v030102 |
1132 | 6 BOOTFILE = BOOTFILES/bootfile_vdg |
1186 | 7 KERNELFILE = BOOTFILES/kernel_stock |
1153 | 8 DIRS = CMDS MODULES DEFS SYS BOOTFILES |
455 | 9 |
900 | 10 CMDS = $(shell $(CD) CMDS; make showobjs) |
1186 | 11 BOOTTRACK = $(shell $(CD) MODULES; make showboottrack) |
12 KERNEL = $(shell $(CD) MODULES; make showkernel) | |
13 SYSMODS = $(shell $(CD) MODULES; make showsysmods) | |
14 CLOCKS = $(shell $(CD) MODULES; make showclocks) | |
15 RBF = $(shell $(CD) MODULES; make showrbf) | |
16 SCF = $(shell $(CD) MODULES; make showscf) | |
17 PIPE = $(shell $(CD) MODULES; make showpipe) | |
18 | |
900 | 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 |
1122 | 23 SYSGO = cc3go |
455 | 24 |
900 | 25 PACKAGENAME = $(RELEASE).zip |
1027 | 26 DSK1 = $(RELEASE)_ds40_1.dsk |
27 DSK2 = $(RELEASE)_ds40_2.dsk | |
558 | 28 TESTDSK = test.dsk |
455 | 29 |
341 | 30 |
0 | 31 # Make all components |
32 all: | |
33 @$(ECHO) "*********************************************" | |
34 @$(ECHO) "* *" | |
1132 | 35 @$(ECHO) "* OS-9 Level Two Distribution *" |
0 | 36 @$(ECHO) "* *" |
37 @$(ECHO) "*********************************************" | |
1132 | 38 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) |
0 | 39 |
40 # Clean all components | |
455 | 41 clean: dskclean |
1132 | 42 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) |
455 | 43 |
44 dskclean: | |
1027 | 45 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) |
455 | 46 |
47 dsk: all $(PACKAGENAME) | |
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 | 52 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog |
53 $(ARCHIVE) $@ $^ | |
455 | 54 |
1027 | 55 $(DSK1): |
1131 | 56 -$(RM) $@ |
57 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two System Disk" | |
1186 | 58 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) |
1126 | 59 $(MAKDIR) $@,CMDS |
60 $(MAKDIR) $@,SYS | |
61 $(MAKDIR) $@,DEFS | |
62 $(CP) MODULES/$(SYSGO) $@, | |
63 $(OS9ATTR_EXEC) $@,$(SYSGO) | |
64 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS | |
65 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
66 $(CD) SYS; $(CP) $(SYSBIN) ../$@,SYS | |
67 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
68 $(CD) SYS; $(CPL) $(SYSTEXT) ../$@,SYS | |
69 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
70 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS | |
71 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
72 $(CPL) $(ROOTFILES) $@,. | |
73 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
455 | 74 |
1027 | 75 $(DSK2): |
1131 | 76 -$(RM) $@ |
77 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two Modules Disk" | |
78 $(MAKDIR) $@,MODULES | |
1186 | 79 $(MAKDIR) $@,MODULES/BOOTTRACK |
80 $(CD) MODULES; $(CP) $(BOOTTRACK) ../$@,MODULES/BOOTTRACK | |
81 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,MODULES/BOOTTRACK/$(file);) | |
82 $(MAKDIR) $@,MODULES/KERNEL | |
83 $(CD) MODULES; $(CP) $(KERNEL) ../$@,MODULES/KERNEL | |
84 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,MODULES/KERNEL/$(file);) | |
85 $(MAKDIR) $@,MODULES/SYSMODS | |
86 $(CD) MODULES; $(CP) $(SYSMODS) ../$@,MODULES/SYSMODS | |
87 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,MODULES/SYSMODS/$(file);) | |
88 $(MAKDIR) $@,MODULES/CLOCKS | |
89 $(CD) MODULES; $(CP) $(CLOCKS) ../$@,MODULES/CLOCKS | |
90 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,MODULES/CLOCKS/$(file);) | |
91 $(MAKDIR) $@,MODULES/RBF | |
92 $(CD) MODULES; $(CP) $(RBF) ../$@,MODULES/RBF | |
93 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,MODULES/RBF/$(file);) | |
94 $(MAKDIR) $@,MODULES/SCF | |
95 $(CD) MODULES; $(CP) $(SCF) ../$@,MODULES/SCF | |
96 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,MODULES/SCF/$(file);) | |
97 $(MAKDIR) $@,MODULES/PIPE | |
98 $(CD) MODULES; $(CP) $(PIPE) ../$@,MODULES/PIPE | |
99 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);) | |
100 $(MAKDIR) $@,BOOTLISTS | |
101 $(CD) BOOTLISTS; $(CPL) * ../$@,BOOTLISTS | |
102 # $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);) | |
1126 | 103 |