Mercurial > hg > Members > kono > nitros9-code
annotate level1/makefile @ 1119:f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
author | boisy |
---|---|
date | Sat, 12 Apr 2003 17:19:55 +0000 |
parents | 2bb48f58cba5 |
children | 99b993d4c94e |
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 |
29 $(CHMOD) 644 $(ROOTFILES) | |
0 | 30 |
31 # Clean all components | |
454 | 32 clean: dskclean |
323 | 33 -$(CD) CMDS; make clean |
34 -$(CD) MODULES; make clean | |
35 -$(CD) DEFS; make clean | |
36 -$(CD) SYS; make clean | |
454 | 37 -$(CD) BOOTFILES; make clean |
38 | |
39 dskclean: | |
1026 | 40 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2) |
454 | 41 |
42 dsk: all $(PACKAGENAME) | |
43 | |
1119
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
44 dskcopy: dsk |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
45 $(CP) $(DSK1) $(DSK2) $(PACKAGENAME) $(DSKDIR) |
f86ef3d1d7c9
Makefiles have been redone to take advantage of size and Make features
boisy
parents:
1076
diff
changeset
|
46 |
1026 | 47 $(PACKAGENAME): $(DSK1) $(DSK2) |
48 $(ZIP) $(PACKAGENAME) $(DSK1) $(DSK2) ReadMe ChangeLog | |
710 | 49 |
1026 | 50 $(DSK1): |
51 $(RM) $(DSK1) | |
52 $(OS9FORMAT_DS40) $(DSK1) -n"OS-9 Level One System Disk" | |
1034 | 53 $(OS9GEN) $(DSK1) -b=BOOTFILES/$(BOOTFILE) -t=BOOTFILES/$(KERNEL) |
1026 | 54 $(MAKDIR) $(DSK1),CMDS |
55 $(MAKDIR) $(DSK1),SYS | |
56 $(CD) CMDS; $(CP) $(CMDS) ../$(DSK1),CMDS | |
57 $(CD) SYS; $(CPL) $(SYS) ../$(DSK1),SYS | |
58 $(MAKDIR) $(DSK1),DEFS | |
59 $(CD) DEFS; $(CPL) $(DEFS) ../$(DSK1),DEFS | |
60 $(CPL) $(ROOTFILES) $(DSK1),. | |
710 | 61 |
1026 | 62 $(DSK2): |
63 $(RM) $(DSK2) | |
64 $(OS9FORMAT_DS40) $(DSK2) -n"OS-9 Level One Modules Disk" | |
65 $(MAKDIR) $(DSK2),MODULES | |
66 $(CD) MODULES; $(CP) $(MODULES) ../$(DSK2),MODULES | |
67 |