Mercurial > hg > Members > kono > nitros9-code
annotate level2/makefile @ 1122:99b993d4c94e
Modified to use attr
author | boisy |
---|---|
date | Sun, 13 Apr 2003 22:18:49 +0000 |
parents | f86ef3d1d7c9 |
children | 85eed1cde1b7 |
rev | line source |
---|---|
0 | 1 include ../Makefile.rules |
2 | |
1075 | 3 RELEASE = os9l2v030101 |
751
6ec99f9702bc
init no longer references cc3go from CMDS. This way, cc3go can
boisy
parents:
739
diff
changeset
|
4 BOOTFILE = bootfile_vdg |
519
6c626a142234
Eliminated SS disks... distribution is too large, now we only have
boisy
parents:
485
diff
changeset
|
5 KERNEL = kernel_stock |
455 | 6 |
900 | 7 CMDS = $(shell $(CD) CMDS; make showobjs) |
8 MODULES = $(shell $(CD) MODULES; make showcopyobjs) | |
9 DEFS = $(shell $(CD) DEFS; make showobjs) | |
10 SYSBIN = $(shell $(CD) SYS; make showbinobjs) | |
11 SYSTEXT = $(shell $(CD) SYS; make showtextobjs) | |
355 | 12 ROOTFILES = startup upgrade_song |
1122 | 13 SYSGO = cc3go |
455 | 14 |
900 | 15 PACKAGENAME = $(RELEASE).zip |
1027 | 16 DSK1 = $(RELEASE)_ds40_1.dsk |
17 DSK2 = $(RELEASE)_ds40_2.dsk | |
558 | 18 TESTDSK = test.dsk |
455 | 19 |
341 | 20 |
0 | 21 # Make all components |
22 all: | |
23 @$(ECHO) "*********************************************" | |
24 @$(ECHO) "* *" | |
25 @$(ECHO) "* OS-9 Level Two Vr3 Distribution *" | |
26 @$(ECHO) "* The Rumored Upgrade Version *" | |
27 @$(ECHO) "* *" | |
28 @$(ECHO) "*********************************************" | |
329 | 29 $(CD) CMDS; make |
30 $(CD) MODULES; make | |
31 $(CD) DEFS; make | |
337 | 32 $(CD) SYS; make |
329 | 33 $(CD) BOOTFILES; make |
341 | 34 $(CHMOD) 644 $(ROOTFILES) |
0 | 35 |
36 # Clean all components | |
455 | 37 clean: dskclean |
329 | 38 -$(CD) CMDS; make clean |
39 -$(CD) MODULES; make clean | |
40 -$(CD) DEFS; make clean | |
337 | 41 -$(CD) SYS; make clean |
329 | 42 -$(CD) BOOTFILES; 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 |
1027 | 52 $(PACKAGENAME): $(DSK1) $(DSK2) |
1122 | 53 $(ARCHIVE) $(PACKAGENAME) $(DSK1) $(DSK2) ReadMe ChangeLog |
455 | 54 |
1027 | 55 $(DSK1): |
56 -$(RM) $(DSK1) | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
57 $(OS9FORMAT_DS40) -e $(DSK1) -n"OS-9 Level Two System Disk" |
1035 | 58 $(OS9GEN) $(DSK1) -b=BOOTFILES/$(BOOTFILE) -t=BOOTFILES/$(KERNEL) |
1027 | 59 $(MAKDIR) $(DSK1),CMDS |
60 $(MAKDIR) $(DSK1),SYS | |
61 $(MAKDIR) $(DSK1),DEFS | |
1122 | 62 $(CP) MODULES/$(SYSGO) $(DSK1), |
63 $(OS9ATTR) $@,$(SYSGO) -ewr -pepr | |
1027 | 64 $(CD) CMDS; $(CP) $(CMDS) ../$(DSK1),CMDS |
1122 | 65 $(foreach file, $(CMDS), $(OS9ATTR) $@,CMDS/$(file) -ewr -pepr;) |
1027 | 66 $(CD) SYS; $(CP) $(SYSBIN) ../$(DSK1),SYS |
67 $(CD) SYS; $(CPL) $(SYSTEXT) ../$(DSK1),SYS | |
68 $(CD) DEFS; $(CPL) $(DEFS) ../$(DSK1),DEFS | |
69 $(CPL) $(ROOTFILES) $(DSK1),. | |
455 | 70 |
1027 | 71 $(DSK2): |
72 -$(RM) $(DSK2) | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1075
diff
changeset
|
73 $(OS9FORMAT_DS40) -e $(DSK2) -n"OS-9 Level Two Modules Disk" |
1027 | 74 $(MAKDIR) $(DSK2),MODULES |
75 $(CD) MODULES; $(CP) $(MODULES) ../$(DSK2),MODULES |