Mercurial > hg > Members > kono > nitros9-code
annotate level2/makefile @ 1153:238d270bcb77
DEFS added to list of dirs, left of inadvertently
author | boisy |
---|---|
date | Wed, 30 Apr 2003 15:18:24 +0000 |
parents | 061823503a2f |
children | a3d0ac951684 |
rev | line source |
---|---|
0 | 1 include ../Makefile.rules |
2 | |
1075 | 3 RELEASE = os9l2v030101 |
1132 | 4 BOOTFILE = BOOTFILES/bootfile_vdg |
5 KERNEL = BOOTFILES/kernel_stock | |
1153 | 6 DIRS = CMDS MODULES DEFS SYS BOOTFILES |
455 | 7 |
900 | 8 CMDS = $(shell $(CD) CMDS; make showobjs) |
9 MODULES = $(shell $(CD) MODULES; make showcopyobjs) | |
10 DEFS = $(shell $(CD) DEFS; make showobjs) | |
11 SYSBIN = $(shell $(CD) SYS; make showbinobjs) | |
12 SYSTEXT = $(shell $(CD) SYS; make showtextobjs) | |
1141 | 13 ROOTFILES = startup |
1122 | 14 SYSGO = cc3go |
455 | 15 |
900 | 16 PACKAGENAME = $(RELEASE).zip |
1027 | 17 DSK1 = $(RELEASE)_ds40_1.dsk |
18 DSK2 = $(RELEASE)_ds40_2.dsk | |
558 | 19 TESTDSK = test.dsk |
455 | 20 |
341 | 21 |
0 | 22 # Make all components |
23 all: | |
24 @$(ECHO) "*********************************************" | |
25 @$(ECHO) "* *" | |
1132 | 26 @$(ECHO) "* OS-9 Level Two Distribution *" |
0 | 27 @$(ECHO) "* *" |
28 @$(ECHO) "*********************************************" | |
1132 | 29 $(foreach dir, $(DIRS), ($(CD) $(dir); make);) |
0 | 30 |
31 # Clean all components | |
455 | 32 clean: dskclean |
1132 | 33 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);) |
455 | 34 |
35 dskclean: | |
1027 | 36 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) |
455 | 37 |
38 dsk: all $(PACKAGENAME) | |
39 | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
40 dskcopy: dsk |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
41 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR) |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
42 |
1132 | 43 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog |
44 $(ARCHIVE) $@ $^ | |
455 | 45 |
1027 | 46 $(DSK1): |
1131 | 47 -$(RM) $@ |
48 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two System Disk" | |
1132 | 49 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNEL) |
1126 | 50 $(MAKDIR) $@,CMDS |
51 $(MAKDIR) $@,SYS | |
52 $(MAKDIR) $@,DEFS | |
53 $(CP) MODULES/$(SYSGO) $@, | |
54 $(OS9ATTR_EXEC) $@,$(SYSGO) | |
55 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS | |
56 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
57 $(CD) SYS; $(CP) $(SYSBIN) ../$@,SYS | |
58 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
59 $(CD) SYS; $(CPL) $(SYSTEXT) ../$@,SYS | |
60 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);) | |
61 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS | |
62 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);) | |
63 $(CPL) $(ROOTFILES) $@,. | |
64 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);) | |
455 | 65 |
1027 | 66 $(DSK2): |
1131 | 67 -$(RM) $@ |
68 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two Modules Disk" | |
69 $(MAKDIR) $@,MODULES | |
70 $(CD) MODULES; $(CP) $(MODULES) ../$@,MODULES | |
1126 | 71 $(foreach file, $(MODULES), $(OS9ATTR_EXEC) $@,MODULES/$(file);) |
72 |