Mercurial > hg > Members > kono > nitros9-code
annotate level1/makefile @ 1193:3bea32e43d26
Fixed bad assumption in Makefile
author | boisy |
---|---|
date | Sun, 01 Jun 2003 20:35:30 +0000 |
parents | 0836a89b1eac |
children | 4e235f213651 |
rev | line source |
---|---|
1166 | 1 # Makefile for OS-9 Level One |
2 | |
0 | 3 include ../Makefile.rules |
4 | |
1186 | 5 RELEASE = os9l1v030102 |
1132 | 6 BOOTFILE = BOOTFILES/bootfile_stock |
1186 | 7 KERNELFILE = BOOTFILES/kernel_stock |
1132 | 8 DIRS = CMDS MODULES DEFS SYS BOOTFILES |
454 | 9 |
561 | 10 CMDS = $(shell $(CD) CMDS; make showcocoobjs) |
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 | |
454 | 19 SYS = $(shell $(CD) SYS; make showobjs) |
20 DEFS = $(shell $(CD) DEFS; make showobjs) | |
21 ROOTFILES = startup | |
22 | |
23 PACKAGENAME = $(RELEASE).zip | |
1026 | 24 DSK1 = $(RELEASE)_ds40_1.dsk |
25 DSK2 = $(RELEASE)_ds40_2.dsk | |
323 | 26 |
1186 | 27 |
0 | 28 # Make all components |
29 all: | |
30 @$(ECHO) "*********************************************" | |
31 @$(ECHO) "* *" | |
32 @$(ECHO) "* OS-9 Level One Distribution *" | |
33 @$(ECHO) "* *" | |
34 @$(ECHO) "*********************************************" | |
1132 | 35 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) |
0 | 36 |
37 # Clean all components | |
454 | 38 clean: dskclean |
1132 | 39 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) |
454 | 40 |
41 dskclean: | |
1026 | 42 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) |
454 | 43 |
44 dsk: all $(PACKAGENAME) | |
45 | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
46 dskcopy: dsk |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
47 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR) |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
48 |
1132 | 49 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog |
50 $(ARCHIVE) $@ $^ | |
710 | 51 |
1026 | 52 $(DSK1): |
1122 | 53 $(RM) $@ |
54 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One System Disk" | |
1186 | 55 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNELFILE) |
1122 | 56 $(MAKDIR) $@,CMDS |
57 $(MAKDIR) $@,SYS | |
58 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS | |
1126 | 59 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
1122 | 60 $(CD) SYS; $(CPL) $(SYS) ../$@,SYS |
1126 | 61 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) |
1122 | 62 $(MAKDIR) $@,DEFS |
63 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS | |
1126 | 64 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) |
1122 | 65 $(CPL) $(ROOTFILES) $@,. |
1126 | 66 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) |
710 | 67 |
1026 | 68 $(DSK2): |
1122 | 69 $(RM) $@ |
70 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One Modules Disk" | |
71 $(MAKDIR) $@,MODULES | |
1186 | 72 $(MAKDIR) $@,MODULES/BOOTTRACK |
73 $(CD) MODULES; $(CP) $(BOOTTRACK) ../$@,MODULES/BOOTTRACK | |
74 $(foreach file, $(BOOTTRACK), $(OS9ATTR_EXEC) $@,MODULES/BOOTTRACK/$(file);) | |
75 $(MAKDIR) $@,MODULES/KERNEL | |
76 $(CD) MODULES; $(CP) $(KERNEL) ../$@,MODULES/KERNEL | |
77 $(foreach file, $(KERNEL), $(OS9ATTR_EXEC) $@,MODULES/KERNEL/$(file);) | |
78 $(MAKDIR) $@,MODULES/SYSMODS | |
79 $(CD) MODULES; $(CP) $(SYSMODS) ../$@,MODULES/SYSMODS | |
80 $(foreach file, $(SYSMODS), $(OS9ATTR_EXEC) $@,MODULES/SYSMODS/$(file);) | |
81 $(MAKDIR) $@,MODULES/CLOCKS | |
82 $(CD) MODULES; $(CP) $(CLOCKS) ../$@,MODULES/CLOCKS | |
83 $(foreach file, $(CLOCKS), $(OS9ATTR_EXEC) $@,MODULES/CLOCKS/$(file);) | |
84 $(MAKDIR) $@,MODULES/RBF | |
85 $(CD) MODULES; $(CP) $(RBF) ../$@,MODULES/RBF | |
86 $(foreach file, $(RBF), $(OS9ATTR_EXEC) $@,MODULES/RBF/$(file);) | |
87 $(MAKDIR) $@,MODULES/SCF | |
88 $(CD) MODULES; $(CP) $(SCF) ../$@,MODULES/SCF | |
89 $(foreach file, $(SCF), $(OS9ATTR_EXEC) $@,MODULES/SCF/$(file);) | |
90 $(MAKDIR) $@,MODULES/PIPE | |
91 $(CD) MODULES; $(CP) $(PIPE) ../$@,MODULES/PIPE | |
92 $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);) | |
93 $(MAKDIR) $@,BOOTLISTS | |
1193 | 94 $(CD) BOOTLISTS; $(CPL) bootlist* ../$@,BOOTLISTS |
1186 | 95 # $(foreach file, $(PIPE), $(OS9ATTR_EXEC) $@,MODULES/PIPE/$(file);) |
1026 | 96 |
1186 | 97 |