Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/goldrush/makefile @ 2868:cfa46960b6bd
makefiles: Rename DW3 to DW all over
Rename dw3*.sb to dwio*.sb
This is part of getting default and lwtools-port branches
together, trying to avoid things falling through the
cracks.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sun, 24 Nov 2013 11:13:40 +0100 |
parents | 8b00f21d5b86 |
children | cfa6222348f7 |
rev | line source |
---|---|
2495 | 1 ifndef NITROS9DIR |
2 NITROS9DIR = $(HOME)/nitros9 | |
3 endif | |
2095 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
2139 | 6 vpath %.asm ../objs_lsl |
2095 | 7 |
8 DEPENDS = ./makefile | |
9 | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
10 DSKDW = goldrush_dw.dsk |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
11 DSKDWBECKER = goldrush_becker.dsk |
2099 | 12 DISK_1_80D = goldrush_d1_80d.dsk |
13 DISK_2_80D = goldrush_d2_80d.dsk | |
14 DISK_3_80D = goldrush_d3_80d.dsk | |
2095 | 15 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
16 DSKS = $(DISK_1_80D) $(DISK_2_80D) $(DISK_3_80D) $(DSKDW) $(DSKDWBECKER) |
2216 | 17 |
2095 | 18 DISK_1_80D_NAME = "Gold Rush Disk 1" |
19 DISK_2_80D_NAME = "Gold Rush Disk 2" | |
2511 | 20 DISK_3_80D_NAME = "Gold Rush Disk 3" |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
21 DSKDW_NAME = "Gold Rush" |
2095 | 22 |
23 CMDS = sierra mnln scrn shdw tocgen | |
24 MD = $(LEVEL2)/coco3/modules | |
25 | |
26 # We make our own bootfile and kernel track | |
2219 | 27 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
28 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
29 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn |
2219 | 30 BOOTFILE_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2095 | 31 $(MD)/rbf.mn \ |
32 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \ | |
33 $(MD)/scf.mn $(MD)/vtio.dr \ | |
34 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
35 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
36 $(MD)/vrn.dr $(MD)/vi.dd \ | |
37 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
38 | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
39 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2219 | 40 $(MD)/rbf.mn \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
41 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2219 | 42 $(MD)/scf.mn $(MD)/vtio.dr \ |
43 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
44 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
45 $(MD)/vrn.dr $(MD)/vi.dd \ | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
46 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2219 | 47 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
48 BOOTFILE_DW_BECKER = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
49 $(MD)/rbf.mn \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
50 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \ |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
51 $(MD)/scf.mn $(MD)/vtio.dr \ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
52 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
53 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
54 $(MD)/vrn.dr $(MD)/vi.dd \ |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
55 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
56 |
2095 | 57 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ |
58 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
59 $(LEVEL2)/coco3/cmds/setime | |
60 | |
2515 | 61 TEXTFILES_D1 = ../startup tOC_80d.txt |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
62 TEXTFILES_DW = ../startup tOC_dw.txt |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
63 TEXTFILES_DW_BECKER = ../startup tOC_dw_becker.txt |
2095 | 64 |
65 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \ | |
66 vol.1 vol.2 vol.9 vol.10 vol.11 vol.12 words.tok | |
67 | |
68 SUPPORTFILES_D2 = object vol.0 vol.3 vol.9 vol.11 | |
69 | |
70 SUPPORTFILES_D3 = object vol.0 vol.4 vol.5 vol.9 vol.11 vol.12 | |
71 | |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
72 SUPPORTFILES_ALL = logDir object picDir sndDir viewDir vol.0 \ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
73 vol.1 vol.2 vol.3 vol.4 vol.5 vol.9 vol.10 \ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
74 vol.11 vol.12 words.tok |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
75 |
2095 | 76 ALLOBJS = $(CMDS) |
77 | |
78 all: $(ALLOBJS) | |
79 | |
80 clean: dskclean | |
81 $(RM) $(ALLOBJS) | |
82 | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
83 dsk: all $(DSKDW) $(DSKDWBECKER) $(DISK_1_80D) $(DISK_2_80D) $(DISK_3_80D) |
2219 | 84 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
85 $(DSKDW): |
2219 | 86 $(RM) $@ |
2095 | 87 $(CD) $(LEVEL2)/coco3; make |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
88 $(OS9FORMAT_DW) -q $@ -n$(DSKDW_NAME) |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
89 $(MERGE) $(BOOTFILE_DW)>os9boot |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
90 $(MERGE) $(KERNEL_DW)>kernel |
2219 | 91 $(OS9GEN) $@ -b=os9boot -t=kernel |
92 $(RM) os9boot kernel | |
93 $(MAKDIR) $@,CMDS | |
94 $(CP) $(CMDS) $@,CMDS | |
95 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
2095 | 96 $(MERGE) $(BOOTCMDS)>shell |
2219 | 97 $(CP) shell $@,CMDS |
2095 | 98 $(RM) shell |
2219 | 99 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
100 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
101 $(CPL) $(TEXTFILES_DW) $@,. |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
102 $(OS9RENAME) $@,tOC_dw.txt tOC.txt |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
103 $(CP) $(SUPPORTFILES_ALL) $@,. |
2507 | 104 $(MOVE) tocgen toctmp |
2219 | 105 tocgen $@,tOC.txt $@,tOC |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
106 $(MOVE) toctmp tocgen |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
107 |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
108 $(DSKDWBECKER): |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
109 $(RM) $@ |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
110 $(CD) $(LEVEL2)/coco3; make |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
111 $(OS9FORMAT_DW) -q $@ -n$(DSKDW_NAME) |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
112 $(MERGE) $(BOOTFILE_DW_BECKER)>os9boot |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
113 $(MERGE) $(KERNEL_DW_BECKER)>kernel |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
114 $(OS9GEN) $@ -b=os9boot -t=kernel |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
115 $(RM) os9boot kernel |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
116 $(MAKDIR) $@,CMDS |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
117 $(CP) $(CMDS) $@,CMDS |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
118 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
119 $(MERGE) $(BOOTCMDS)>shell |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
120 $(CP) shell $@,CMDS |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
121 $(RM) shell |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
122 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
123 $(OS9RENAME) $@,CMDS/sierra AutoEx |
2868
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
124 $(CPL) $(TEXTFILES_DW_BECKER) $@,. |
cfa46960b6bd
makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents:
2756
diff
changeset
|
125 $(OS9RENAME) $@,tOC_dw_becker.txt tOC.txt |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
126 $(CP) $(SUPPORTFILES_ALL) $@,. |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
127 $(MOVE) tocgen toctmp |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
128 tocgen $@,tOC.txt $@,tOC |
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
129 $(MOVE) toctmp tocgen |
2219 | 130 |
131 $(DISK_1_80D): | |
132 $(RM) $@ | |
133 $(CD) $(LEVEL2)/coco3; make | |
134 $(OS9FORMAT_DS80) -q $@ -n$(DISK_1_80D_NAME) | |
135 $(MERGE) $(BOOTFILE_80D)>os9boot | |
136 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
137 $(OS9GEN) $@ -b=os9boot -t=kernel | |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
138 $(RM) os9boot kernel |
2219 | 139 $(MAKDIR) $@,CMDS |
140 $(CP) $(CMDS) $@,CMDS | |
141 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
142 $(MERGE) $(BOOTCMDS)>shell | |
143 $(CP) shell $@,CMDS | |
144 $(RM) shell | |
145 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r | |
146 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
147 $(CPL) $(TEXTFILES_D1) $@,. | |
148 $(OS9RENAME) $@,tOC_80d.txt tOC.txt | |
149 $(CP) $(SUPPORTFILES_D1) $@,. | |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
150 $(MOVE) tocgen toctmp |
2219 | 151 tocgen $@,tOC.txt $@,tOC |
2746
20a6dfbe8982
Updated makefile(s) to build becker boot disks for drivewire4 server related to KingsQuest1 and Goldrush.
drencor-xeen
parents:
2515
diff
changeset
|
152 $(MOVE) toctmp tocgen |
2219 | 153 |
2495 | 154 |
2219 | 155 $(DISK_2_80D): |
156 $(RM) $@ | |
157 $(OS9FORMAT_DS80) -q $@ -n$(DISK_2_80D_NAME) | |
158 $(CP) $(SUPPORTFILES_D2) $@,. | |
159 | |
160 $(DISK_3_80D): | |
161 $(RM) $@ | |
162 $(OS9FORMAT_DS80) -q $@ -n$(DISK_3_80D_NAME) | |
163 $(CP) $(SUPPORTFILES_D3) $@,. | |
2095 | 164 |
165 dskcopy: dsk | |
2216 | 166 $(CP) $(DSKS) $(DSKDIR) |
2095 | 167 |
168 dskclean: | |
2216 | 169 $(RM) $(DSKS) |
170 | |
171 info: | |
172 @$(ECHO) "*** Gold Rush ***" | |
173 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |