Mercurial > hg > Members > kono > nitros9-code
comparison 3rdparty/packages/sierra/spacequest0/makefile @ 2774:1868fbf470e7 lwtools-port
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
changeset: 2773:ce3dba57003b
branch: lwtools-port
tag: tip
parent: 2770:bfe3de781ddf
user: Boisy Pitre <boisy.pitre@nuance.com>
date: Wed Jan 23 14:54:29 2013 -0600
summary: boot_dw now uses dwinit.asm.
changeset: 2772:0a3f4d8ea6d5
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Wed, 23 Jan 2013 21:02:34 -0600 |
parents | 05b648103e78 |
children | 84d9d5765057 |
comparison
equal
deleted
inserted
replaced
2773:ce3dba57003b | 2774:1868fbf470e7 |
---|---|
1 ifndef NITROS9DIR | 1 include ../../../../rules.mak |
2 NITROS9DIR = $(HOME)/nitros9 | |
3 endif | |
4 include $(NITROS9DIR)/rules.mak | |
5 | 2 |
6 vpath %.asm ../objs_lsl | 3 vpath %.asm ../objs_lsl |
7 | 4 |
8 DEPENDS = ./makefile | 5 DEPENDS = ./makefile |
9 | 6 |
11 DISK_2_40D = spacequest0_d2_40d.dsk | 8 DISK_2_40D = spacequest0_d2_40d.dsk |
12 DISK_3_40D = spacequest0_d3_40d.dsk | 9 DISK_3_40D = spacequest0_d3_40d.dsk |
13 DISK_1_80D = spacequest0_d1_80d.dsk | 10 DISK_1_80D = spacequest0_d1_80d.dsk |
14 DISK_2_80D = spacequest0_d2_80d.dsk | 11 DISK_2_80D = spacequest0_d2_80d.dsk |
15 DISK_DW = spacequest0_dw.dsk | 12 DISK_DW = spacequest0_dw.dsk |
16 | 13 DISK_DW_BECKER = spacequest0_becker.dsk |
17 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_1_80D) $(DISK_2_80D) $(DISK_DW) | 14 |
15 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_1_80D) $(DISK_2_80D) $(DISK_DW) $(DISK_DW_BECKER) | |
18 | 16 |
19 DISK_1_40D_NAME = "Space Quest 0 Disk 1" | 17 DISK_1_40D_NAME = "Space Quest 0 Disk 1" |
20 DISK_2_40D_NAME = "Space Quest 0 Disk 2" | 18 DISK_2_40D_NAME = "Space Quest 0 Disk 2" |
21 DISK_3_40D_NAME = "Space Quest 0 Disk 3" | 19 DISK_3_40D_NAME = "Space Quest 0 Disk 3" |
22 DISK_1_80D_NAME = "Space Quest 0 Disk 1" | 20 DISK_1_80D_NAME = "Space Quest 0 Disk 1" |
26 CMDS = sierra mnln scrn shdw tocgen | 24 CMDS = sierra mnln scrn shdw tocgen |
27 MD = $(LEVEL2)/coco3/modules | 25 MD = $(LEVEL2)/coco3/modules |
28 | 26 |
29 # We make our own bootfile and kernel track | 27 # We make our own bootfile and kernel track |
30 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn | 28 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn |
31 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn | 29 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
30 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn | |
31 | |
32 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | 32 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
33 $(MD)/rbf.mn \ | 33 $(MD)/rbf.mn \ |
34 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | 34 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ |
35 $(MD)/scf.mn $(MD)/vtio.dr \ | 35 $(MD)/scf.mn $(MD)/vtio.dr \ |
36 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | 36 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
45 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | 45 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
46 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | 46 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
47 $(MD)/vrn.dr $(MD)/vi.dd \ | 47 $(MD)/vrn.dr $(MD)/vi.dd \ |
48 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | 48 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd |
49 | 49 |
50 OS9BOOT_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | 50 OS9BOOT_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
51 $(MD)/rbf.mn \ | 51 $(MD)/rbf.mn \ |
52 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ | 52 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
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 \ | |
57 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd | |
58 | |
59 OS9BOOT_DW_BECKER = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | |
60 $(MD)/rbf.mn \ | |
61 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \ | |
53 $(MD)/scf.mn $(MD)/vtio.dr \ | 62 $(MD)/scf.mn $(MD)/vtio.dr \ |
54 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | 63 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
55 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | 64 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
56 $(MD)/vrn.dr $(MD)/vi.dd \ | 65 $(MD)/vrn.dr $(MD)/vi.dd \ |
57 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd | 66 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
82 all: $(ALLOBJS) | 91 all: $(ALLOBJS) |
83 | 92 |
84 clean: dskclean | 93 clean: dskclean |
85 $(RM) $(ALLOBJS) | 94 $(RM) $(ALLOBJS) |
86 | 95 |
87 dsk_40d: all | 96 $(DISK_1_40D): |
88 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) | 97 $(RM) $@ |
89 $(CD) $(LEVEL2)/coco3; make | 98 $(CD) $(LEVEL2)/coco3; make |
90 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME) | 99 $(OS9FORMAT_DS40) -q $@ -n$(DISK_1_40D_NAME) |
91 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME) | 100 $(MERGE) $(OS9BOOT_40D)>os9boot |
92 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME) | 101 $(MERGE) $(KERNEL)>kernel |
93 $(MERGE) $(OS9BOOT_40D)>os9boot_40d | 102 $(OS9GEN) $@ -b=os9boot -t=kernel |
94 $(MERGE) $(KERNEL)>kernel_1773 | 103 $(RM) os9boot kernel |
95 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773 | 104 $(MAKDIR) $@,CMDS |
96 $(RM) os9boot_40d kernel_1773 | 105 $(CP) $(CMDS) $@,CMDS |
97 $(MAKDIR) $(DISK_1_40D),CMDS | 106 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
98 $(CP) $(CMDS) $(DISK_1_40D),CMDS | 107 $(MERGE) $(BOOTCMDS)>shell |
99 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);) | 108 $(CP) shell $@,CMDS |
100 $(MERGE) $(BOOTCMDS)>shell | 109 $(RM) shell |
101 $(CP) shell $(DISK_1_40D),CMDS | 110 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
102 $(RM) shell | 111 $(OS9RENAME) $@,CMDS/sierra AutoEx |
103 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r | 112 $(CPL) $(TEXTFILES_D1) $@,. |
104 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx | 113 $(OS9RENAME) $@,tOC_40d.txt tOC.txt |
105 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),. | 114 $(MOVE) tocgen toctmp |
106 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt | 115 tocgen $@,tOC.txt $@,tOC |
107 $(MOVE) tocgen toctmp | 116 $(MOVE) toctmp tocgen |
108 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC | 117 $(CP) $(SUPPORTFILES_D1) $@,. |
109 $(MOVE) toctmp tocgen | 118 |
110 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),. | 119 $(DISK_2_40D): |
111 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),. | 120 $(RM) $@ |
112 $(CP) $(SUPPORTFILES_D3) $(DISK_3_40D),. | 121 $(OS9FORMAT_DS40) -q $@ -n$(DISK_2_40D_NAME) |
113 | 122 $(CP) $(SUPPORTFILES_D2) $@,. |
114 dsk_80d: all | 123 |
115 $(RM) $(DISK_1_80D) $(DISK_2_80D) | 124 $(DISK_3_40D): |
116 $(CD) $(LEVEL2)/coco3; make | 125 $(RM) $@ |
117 $(OS9FORMAT_DS80) -q $(DISK_1_80D) -n$(DISK_1_80D_NAME) | 126 $(OS9FORMAT_DS40) -q $@ -n$(DISK_3_40D_NAME) |
118 $(OS9FORMAT_DS80) -q $(DISK_2_80D) -n$(DISK_2_80D_NAME) | 127 $(CP) $(SUPPORTFILES_D3) $@,. |
119 $(MERGE) $(OS9BOOT_80D)>os9boot_80d | 128 |
120 $(MERGE) $(KERNEL)>kernel_1773 | 129 $(DISK_1_80D): |
121 $(OS9GEN) $(DISK_1_80D) -b=os9boot_80d -t=kernel_1773 | 130 $(RM) $@ |
122 $(RM) os9boot_80d kernel_1773 | 131 $(CD) $(LEVEL2)/coco3; make |
123 $(MAKDIR) $(DISK_1_80D),CMDS | 132 $(OS9FORMAT_DS80) -q $@ -n$(DISK_1_80D_NAME) |
124 $(CP) $(CMDS) $(DISK_1_80D),CMDS | 133 $(MERGE) $(OS9BOOT_80D)>os9boot |
125 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_80D),CMDS/$(file);) | 134 $(MERGE) $(KERNEL)>kernel |
126 $(MERGE) $(BOOTCMDS)>shell | 135 $(OS9GEN) $@ -b=os9boot -t=kernel |
127 $(CP) shell $(DISK_1_80D),CMDS | 136 $(RM) os9boot kernel |
128 $(RM) shell | 137 $(MAKDIR) $@,CMDS |
129 $(OS9ATTR) $(DISK_1_80D),CMDS/shell -e -pe -pr -e -w -r | 138 $(CP) $(CMDS) $@,CMDS |
130 $(OS9RENAME) $(DISK_1_80D),CMDS/sierra AutoEx | 139 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
131 $(CPL) $(TEXTFILES) $(DISK_1_80D),. | 140 $(MERGE) $(BOOTCMDS)>shell |
132 $(OS9RENAME) $(DISK_1_80D),tOC_80d.txt tOC.txt | 141 $(CP) shell $@,CMDS |
133 $(MOVE) tocgen toctmp | 142 $(RM) shell |
134 tocgen $(DISK_1_80D),tOC.txt $(DISK_1_80D),tOC | 143 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
135 $(MOVE) toctmp tocgen | 144 $(OS9RENAME) $@,CMDS/sierra AutoEx |
136 $(CP) $(SUPPORTFILES) $(DISK_1_80D),. | 145 $(CPL) $(TEXTFILES) $@,. |
137 $(CP) $(SUPPORTFILES_D3) $(DISK_2_80D),. | 146 $(OS9RENAME) $@,tOC_80d.txt tOC.txt |
138 | 147 $(MOVE) tocgen toctmp |
139 dsk_dw: all | 148 tocgen $@,tOC.txt $@,tOC |
140 $(RM) $(DISK_DW) | 149 $(MOVE) toctmp tocgen |
141 $(CD) $(LEVEL2)/coco3; make | 150 $(CP) $(SUPPORTFILES) $@,. |
142 $(OS9FORMAT_DW) -q $(DISK_DW) -n$(DISK_DW_NAME) | 151 |
143 $(MERGE) $(OS9BOOT_DW)>os9boot_dw | 152 $(DISK_2_80D): |
144 $(MERGE) $(KERNEL_DW)>kernel_dw | 153 $(RM) $@ |
145 $(OS9GEN) $(DISK_DW) -b=os9boot_dw -t=kernel_dw | 154 $(OS9FORMAT_DS80) -q $@ -n$(DISK_2_80D_NAME) |
146 $(RM) os9boot_dw kernel_dw | 155 $(CP) $(SUPPORTFILES_D3) $@,. |
147 $(MAKDIR) $(DISK_DW),CMDS | 156 |
148 $(CP) $(CMDS) $(DISK_DW),CMDS | 157 $(DISK_DW): |
149 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_DW),CMDS/$(file);) | 158 $(RM) $@ |
150 $(MERGE) $(BOOTCMDS)>shell | 159 $(CD) $(LEVEL2)/coco3; make |
151 $(CP) shell $(DISK_DW),CMDS | 160 $(OS9FORMAT_DW) -q $@ -n$(DISK_DW_NAME) |
152 $(RM) shell | 161 $(MERGE) $(OS9BOOT_DW)>os9boot |
153 $(OS9ATTR) $(DISK_DW),CMDS/shell -e -pe -pr -e -w -r | 162 $(MERGE) $(KERNEL_DW)>kernel |
154 $(OS9RENAME) $(DISK_DW),CMDS/sierra AutoEx | 163 $(OS9GEN) $@ -b=os9boot -t=kernel |
155 $(CPL) $(TEXTFILES_DW) $(DISK_DW),. | 164 $(RM) os9boot kernel |
156 $(OS9RENAME) $(DISK_DW),tOC_dw.txt tOC.txt | 165 $(MAKDIR) $@,CMDS |
157 $(RM) tocgen | 166 $(CP) $(CMDS) $@,CMDS |
158 tocgen $(DISK_DW),tOC.txt $(DISK_DW),tOC | 167 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
159 $(CP) $(SUPPORTFILES) $(DISK_DW),. | 168 $(MERGE) $(BOOTCMDS)>shell |
160 | 169 $(CP) shell $@,CMDS |
161 dsk: dsk_40d dsk_80d dsk_dw | 170 $(RM) shell |
162 $(CD) $(LEVEL2)/coco3; make | 171 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
172 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
173 $(CPL) $(TEXTFILES_DW) $@,. | |
174 $(OS9RENAME) $@,tOC_dw.txt tOC.txt | |
175 $(MOVE) tocgen toctmp | |
176 tocgen $@,tOC.txt $@,tOC | |
177 $(MOVE) toctmp tocgen | |
178 $(CP) $(SUPPORTFILES) $@,. | |
179 | |
180 $(DISK_DW_BECKER): | |
181 $(RM) $@ | |
182 $(CD) $(LEVEL2)/coco3; make | |
183 $(OS9FORMAT_DW) -q $@ -n$(DISK_DW_NAME) | |
184 $(MERGE) $(OS9BOOT_DW_BECKER)>os9boot | |
185 $(MERGE) $(KERNEL_DW_BECKER)>kernel | |
186 $(OS9GEN) $@ -b=os9boot -t=kernel | |
187 $(RM) os9boot kernel | |
188 $(MAKDIR) $@,CMDS | |
189 $(CP) $(CMDS) $@,CMDS | |
190 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
191 $(MERGE) $(BOOTCMDS)>shell | |
192 $(CP) shell $@,CMDS | |
193 $(RM) shell | |
194 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r | |
195 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
196 $(CPL) $(TEXTFILES_DW) $@,. | |
197 $(OS9RENAME) $@,tOC_dw.txt tOC.txt | |
198 $(MOVE) tocgen toctmp | |
199 tocgen $@,tOC.txt $@,tOC | |
200 $(MOVE) toctmp tocgen | |
201 $(CP) $(SUPPORTFILES) $@,. | |
202 | |
203 dsk: all $(DSKS) | |
163 | 204 |
164 dskcopy: dsk | 205 dskcopy: dsk |
165 $(CP) $(DSKS) $(DSKDIR) | 206 $(CP) $(DSKS) $(DSKDIR) |
166 | 207 |
167 dskclean: | 208 dskclean: |
168 $(RM) $(DSKS) | 209 $(RM) $(DSKS) |
169 | 210 |
170 info: | 211 info: |
171 @$(ECHO) "*** Space Quest 0 ***" | 212 @$(ECHO) "*** Space Quest 0 ***" |
172 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) | 213 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |
214 |