Mercurial > hg > Members > kono > nitros9-code
annotate level1/makefile @ 1129:c847e6ee341d
Removed CHMODs now that os9 attrs are in place
author | boisy |
---|---|
date | Mon, 14 Apr 2003 02:58:44 +0000 |
parents | 85eed1cde1b7 |
children | 2690efca4eaf |
rev | line source |
---|---|
0 | 1 include ../Makefile.rules |
2 | |
1076 | 3 RELEASE = os9l1v030101 |
521 | 4 BOOTFILE = bootfile_stock |
5 KERNEL = kernel_stock | |
454 | 6 |
561 | 7 CMDS = $(shell $(CD) CMDS; make showcocoobjs) |
454 | 8 MODULES = $(shell $(CD) MODULES; make showcopyobjs) |
9 SYS = $(shell $(CD) SYS; make showobjs) | |
10 DEFS = $(shell $(CD) DEFS; make showobjs) | |
11 ROOTFILES = startup | |
12 | |
13 PACKAGENAME = $(RELEASE).zip | |
1026 | 14 DSK1 = $(RELEASE)_ds40_1.dsk |
15 DSK2 = $(RELEASE)_ds40_2.dsk | |
323 | 16 |
0 | 17 # Make all components |
18 all: | |
19 @$(ECHO) "*********************************************" | |
20 @$(ECHO) "* *" | |
21 @$(ECHO) "* OS-9 Level One Distribution *" | |
22 @$(ECHO) "* *" | |
23 @$(ECHO) "*********************************************" | |
323 | 24 $(CD) CMDS; make |
25 $(CD) MODULES; make | |
26 $(CD) DEFS; make | |
27 $(CD) SYS; make | |
454 | 28 $(CD) BOOTFILES; make |
0 | 29 |
30 # Clean all components | |
454 | 31 clean: dskclean |
323 | 32 -$(CD) CMDS; make clean |
33 -$(CD) MODULES; make clean | |
34 -$(CD) DEFS; make clean | |
35 -$(CD) SYS; make clean | |
454 | 36 -$(CD) BOOTFILES; make clean |
37 | |
38 dskclean: | |
1026 | 39 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) |
454 | 40 |
41 dsk: all $(PACKAGENAME) | |
42 | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
43 dskcopy: dsk |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
44 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR) |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
45 |
1026 | 46 $(PACKAGENAME): $(DSK1) $(DSK2) |
1122 | 47 $(ARCHIVE) $(PACKAGENAME) $(DSK1) $(DSK2) ReadMe ChangeLog |
710 | 48 |
1026 | 49 $(DSK1): |
1122 | 50 $(RM) $@ |
51 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One System Disk" | |
52 $(OS9GEN) $@ -b=BOOTFILES/$(BOOTFILE) -t=BOOTFILES/$(KERNEL) | |
53 $(MAKDIR) $@,CMDS | |
54 $(MAKDIR) $@,SYS | |
55 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS | |
1126 | 56 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
1122 | 57 $(CD) SYS; $(CPL) $(SYS) ../$@,SYS |
1126 | 58 $(foreach file, $(SYS), $(OS9ATTR_TEXT) $@,SYS/$(file);) |
1122 | 59 $(MAKDIR) $@,DEFS |
60 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS | |
1126 | 61 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) |
1122 | 62 $(CPL) $(ROOTFILES) $@,. |
1126 | 63 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) |
710 | 64 |
1026 | 65 $(DSK2): |
1122 | 66 $(RM) $@ |
67 $(OS9FORMAT_DS40) $@ -n"OS-9 Level One Modules Disk" | |
68 $(MAKDIR) $@,MODULES | |
69 $(CD) MODULES; $(CP) $(MODULES) ../$@,MODULES | |
1126 | 70 $(foreach file, $(MODULES), $(OS9ATTR_EXEC) $@,MODULES/$(file);) |
1026 | 71 |