Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/spacequest0/makefile @ 2724:05b648103e78 lwtools-port
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Mon, 30 Jul 2012 19:35:05 -0500 |
parents | 0fe5a04e9d0c |
children | 1868fbf470e7 |
rev | line source |
---|---|
2499 | 1 ifndef NITROS9DIR |
2 NITROS9DIR = $(HOME)/nitros9 | |
3 endif | |
2138 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
6 vpath %.asm ../objs_lsl | |
7 | |
8 DEPENDS = ./makefile | |
9 | |
10 DISK_1_40D = spacequest0_d1_40d.dsk | |
11 DISK_2_40D = spacequest0_d2_40d.dsk | |
12 DISK_3_40D = spacequest0_d3_40d.dsk | |
13 DISK_1_80D = spacequest0_d1_80d.dsk | |
14 DISK_2_80D = spacequest0_d2_80d.dsk | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
15 DISK_DW = spacequest0_dw.dsk |
2138 | 16 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
17 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_1_80D) $(DISK_2_80D) $(DISK_DW) |
2216 | 18 |
2138 | 19 DISK_1_40D_NAME = "Space Quest 0 Disk 1" |
20 DISK_2_40D_NAME = "Space Quest 0 Disk 2" | |
21 DISK_3_40D_NAME = "Space Quest 0 Disk 3" | |
22 DISK_1_80D_NAME = "Space Quest 0 Disk 1" | |
23 DISK_2_80D_NAME = "Space Quest 0 Disk 2" | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
24 DISK_DW_NAME = "Space Quest 0" |
2138 | 25 |
26 CMDS = sierra mnln scrn shdw tocgen | |
27 MD = $(LEVEL2)/coco3/modules | |
28 | |
29 # We make our own bootfile and kernel track | |
30 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
31 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
2138 | 32 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
33 $(MD)/rbf.mn \ | |
34 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | |
35 $(MD)/scf.mn $(MD)/vtio.dr \ | |
36 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
37 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
38 $(MD)/vrn.dr $(MD)/vi.dd \ | |
39 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
40 | |
41 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | |
42 $(MD)/rbf.mn \ | |
43 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \ | |
44 $(MD)/scf.mn $(MD)/vtio.dr \ | |
45 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
46 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
47 $(MD)/vrn.dr $(MD)/vi.dd \ | |
48 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
49 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
50 OS9BOOT_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2499 | 51 $(MD)/rbf.mn \ |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
52 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2499 | 53 $(MD)/scf.mn $(MD)/vtio.dr \ |
54 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
55 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
56 $(MD)/vrn.dr $(MD)/vi.dd \ | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
57 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2499 | 58 |
2138 | 59 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ |
60 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
61 $(LEVEL2)/coco3/cmds/setime | |
62 | |
2515 | 63 TEXTFILES_D1 = ../startup tOC_40d.txt |
64 TEXTFILES = ../startup tOC_80d.txt | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
65 TEXTFILES_DW = ../startup tOC_dw.txt |
2138 | 66 |
67 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \ | |
68 vol.1 words.tok | |
69 | |
70 SUPPORTFILES_D2 = object vol.0 vol.2 | |
71 | |
72 SUPPORTFILES_D3 = object vol.0 vol.3 | |
73 | |
74 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ | |
75 vol.1 vol.2 words.tok | |
76 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
77 SUPPORTFILES_DW = logDir object picDir sndDir viewDir vol.0 \ |
2499 | 78 vol.1 vol.2 vol.3 words.tok |
79 | |
2138 | 80 ALLOBJS = $(CMDS) |
81 | |
82 all: $(ALLOBJS) | |
83 | |
84 clean: dskclean | |
85 $(RM) $(ALLOBJS) | |
86 | |
87 dsk_40d: all | |
88 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) | |
89 $(CD) $(LEVEL2)/coco3; make | |
90 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME) | |
91 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME) | |
92 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME) | |
93 $(MERGE) $(OS9BOOT_40D)>os9boot_40d | |
94 $(MERGE) $(KERNEL)>kernel_1773 | |
95 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773 | |
96 $(RM) os9boot_40d kernel_1773 | |
97 $(MAKDIR) $(DISK_1_40D),CMDS | |
98 $(CP) $(CMDS) $(DISK_1_40D),CMDS | |
99 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);) | |
100 $(MERGE) $(BOOTCMDS)>shell | |
101 $(CP) shell $(DISK_1_40D),CMDS | |
102 $(RM) shell | |
103 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r | |
104 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx | |
105 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),. | |
106 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt | |
2499 | 107 $(MOVE) tocgen toctmp |
2138 | 108 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC |
2499 | 109 $(MOVE) toctmp tocgen |
2138 | 110 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),. |
111 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),. | |
112 $(CP) $(SUPPORTFILES_D3) $(DISK_3_40D),. | |
113 | |
114 dsk_80d: all | |
115 $(RM) $(DISK_1_80D) $(DISK_2_80D) | |
116 $(CD) $(LEVEL2)/coco3; make | |
117 $(OS9FORMAT_DS80) -q $(DISK_1_80D) -n$(DISK_1_80D_NAME) | |
118 $(OS9FORMAT_DS80) -q $(DISK_2_80D) -n$(DISK_2_80D_NAME) | |
119 $(MERGE) $(OS9BOOT_80D)>os9boot_80d | |
120 $(MERGE) $(KERNEL)>kernel_1773 | |
121 $(OS9GEN) $(DISK_1_80D) -b=os9boot_80d -t=kernel_1773 | |
122 $(RM) os9boot_80d kernel_1773 | |
123 $(MAKDIR) $(DISK_1_80D),CMDS | |
124 $(CP) $(CMDS) $(DISK_1_80D),CMDS | |
125 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_80D),CMDS/$(file);) | |
126 $(MERGE) $(BOOTCMDS)>shell | |
127 $(CP) shell $(DISK_1_80D),CMDS | |
128 $(RM) shell | |
129 $(OS9ATTR) $(DISK_1_80D),CMDS/shell -e -pe -pr -e -w -r | |
130 $(OS9RENAME) $(DISK_1_80D),CMDS/sierra AutoEx | |
131 $(CPL) $(TEXTFILES) $(DISK_1_80D),. | |
132 $(OS9RENAME) $(DISK_1_80D),tOC_80d.txt tOC.txt | |
2499 | 133 $(MOVE) tocgen toctmp |
2138 | 134 tocgen $(DISK_1_80D),tOC.txt $(DISK_1_80D),tOC |
2499 | 135 $(MOVE) toctmp tocgen |
2138 | 136 $(CP) $(SUPPORTFILES) $(DISK_1_80D),. |
137 $(CP) $(SUPPORTFILES_D3) $(DISK_2_80D),. | |
138 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
139 dsk_dw: all |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
140 $(RM) $(DISK_DW) |
2499 | 141 $(CD) $(LEVEL2)/coco3; make |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
142 $(OS9FORMAT_DW) -q $(DISK_DW) -n$(DISK_DW_NAME) |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
143 $(MERGE) $(OS9BOOT_DW)>os9boot_dw |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
144 $(MERGE) $(KERNEL_DW)>kernel_dw |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
145 $(OS9GEN) $(DISK_DW) -b=os9boot_dw -t=kernel_dw |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
146 $(RM) os9boot_dw kernel_dw |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
147 $(MAKDIR) $(DISK_DW),CMDS |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
148 $(CP) $(CMDS) $(DISK_DW),CMDS |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
149 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_DW),CMDS/$(file);) |
2499 | 150 $(MERGE) $(BOOTCMDS)>shell |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
151 $(CP) shell $(DISK_DW),CMDS |
2499 | 152 $(RM) shell |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
153 $(OS9ATTR) $(DISK_DW),CMDS/shell -e -pe -pr -e -w -r |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
154 $(OS9RENAME) $(DISK_DW),CMDS/sierra AutoEx |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
155 $(CPL) $(TEXTFILES_DW) $(DISK_DW),. |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
156 $(OS9RENAME) $(DISK_DW),tOC_dw.txt tOC.txt |
2499 | 157 $(RM) tocgen |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
158 tocgen $(DISK_DW),tOC.txt $(DISK_DW),tOC |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
159 $(CP) $(SUPPORTFILES) $(DISK_DW),. |
2499 | 160 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
161 dsk: dsk_40d dsk_80d dsk_dw |
2499 | 162 $(CD) $(LEVEL2)/coco3; make |
2138 | 163 |
164 dskcopy: dsk | |
2216 | 165 $(CP) $(DSKS) $(DSKDIR) |
2138 | 166 |
167 dskclean: | |
2216 | 168 $(RM) $(DSKS) |
169 | |
170 info: | |
171 @$(ECHO) "*** Space Quest 0 ***" | |
172 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |