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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 include ../Makefile.rules
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2
1075
1e3b13dfb976 Updated version to 3.01.01
boisy
parents: 1035
diff changeset
3 RELEASE = os9l2v030101
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
4 BOOTFILE = BOOTFILES/bootfile_vdg
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
5 KERNEL = BOOTFILES/kernel_stock
1153
238d270bcb77 DEFS added to list of dirs, left of inadvertently
boisy
parents: 1141
diff changeset
6 DIRS = CMDS MODULES DEFS SYS BOOTFILES
455
boisy
parents: 355
diff changeset
7
900
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
8 CMDS = $(shell $(CD) CMDS; make showobjs)
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
9 MODULES = $(shell $(CD) MODULES; make showcopyobjs)
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
10 DEFS = $(shell $(CD) DEFS; make showobjs)
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
11 SYSBIN = $(shell $(CD) SYS; make showbinobjs)
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
12 SYSTEXT = $(shell $(CD) SYS; make showtextobjs)
1141
061823503a2f upgrade_song is now gone
boisy
parents: 1132
diff changeset
13 ROOTFILES = startup
1122
99b993d4c94e Modified to use attr
boisy
parents: 1119
diff changeset
14 SYSGO = cc3go
455
boisy
parents: 355
diff changeset
15
900
d7969e08a482 os9copy now does eol translation
boisy
parents: 875
diff changeset
16 PACKAGENAME = $(RELEASE).zip
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
17 DSK1 = $(RELEASE)_ds40_1.dsk
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
18 DSK2 = $(RELEASE)_ds40_2.dsk
558
0ff357df35c5 Modified : to ,
boisy
parents: 520
diff changeset
19 TESTDSK = test.dsk
455
boisy
parents: 355
diff changeset
20
341
20944721d3e6 Major makefile mods
boisy
parents: 337
diff changeset
21
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 # Make all components
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 all:
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 @$(ECHO) "*********************************************"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 @$(ECHO) "* *"
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
26 @$(ECHO) "* OS-9 Level Two Distribution *"
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 @$(ECHO) "* *"
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 @$(ECHO) "*********************************************"
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
29 $(foreach dir, $(DIRS), ($(CD) $(dir); make);)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 # Clean all components
455
boisy
parents: 355
diff changeset
32 clean: dskclean
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
33 $(foreach dir, $(DIRS), ($(CD) $(dir); make clean);)
455
boisy
parents: 355
diff changeset
34
boisy
parents: 355
diff changeset
35 dskclean:
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
36 -$(RM) $(PACKAGENAME) $(DSK1) $(DSK2)
455
boisy
parents: 355
diff changeset
37
boisy
parents: 355
diff changeset
38 dsk: all $(PACKAGENAME)
boisy
parents: 355
diff changeset
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
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
43 $(PACKAGENAME): $(DSK1) $(DSK2) ReadMe ChangeLog
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
44 $(ARCHIVE) $@ $^
455
boisy
parents: 355
diff changeset
45
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
46 $(DSK1):
1131
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
47 -$(RM) $@
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
48 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two System Disk"
1132
2690efca4eaf More sensible changes to Mkaefiles
boisy
parents: 1131
diff changeset
49 $(OS9GEN) $@ -b=$(BOOTFILE) -t=$(KERNEL)
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
50 $(MAKDIR) $@,CMDS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
51 $(MAKDIR) $@,SYS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
52 $(MAKDIR) $@,DEFS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
53 $(CP) MODULES/$(SYSGO) $@,
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
54 $(OS9ATTR_EXEC) $@,$(SYSGO)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
55 $(CD) CMDS; $(CP) $(CMDS) ../$@,CMDS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
56 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
57 $(CD) SYS; $(CP) $(SYSBIN) ../$@,SYS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
58 $(foreach file, $(SYSBIN), $(OS9ATTR_TEXT) $@,SYS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
59 $(CD) SYS; $(CPL) $(SYSTEXT) ../$@,SYS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
60 $(foreach file, $(SYSTEXT), $(OS9ATTR_TEXT) $@,SYS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
61 $(CD) DEFS; $(CPL) $(DEFS) ../$@,DEFS
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
62 $(foreach file, $(DEFS), $(OS9ATTR_TEXT) $@,DEFS/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
63 $(CPL) $(ROOTFILES) $@,.
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
64 $(foreach file, $(ROOTFILES), $(OS9ATTR_TEXT) $@,$(file);)
455
boisy
parents: 355
diff changeset
65
1027
72ceb9308d20 MODULES is now on disk 2
boisy
parents: 960
diff changeset
66 $(DSK2):
1131
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
67 -$(RM) $@
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
68 $(OS9FORMAT_DS40) $@ -n"OS-9 Level Two Modules Disk"
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
69 $(MAKDIR) $@,MODULES
c0ec19adf137 Removed -e from os9 format
boisy
parents: 1129
diff changeset
70 $(CD) MODULES; $(CP) $(MODULES) ../$@,MODULES
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
71 $(foreach file, $(MODULES), $(OS9ATTR_EXEC) $@,MODULES/$(file);)
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
72