Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/spacequest2/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 | |
2085 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
2136 | 6 vpath %.asm ../objs_lsl |
2085 | 7 |
8 DEPENDS = ./makefile | |
9 | |
2136 | 10 DISK_1_40D = spacequest2_d1_40d.dsk |
11 DISK_2_40D = spacequest2_d2_40d.dsk | |
12 DISK_3_40D = spacequest2_d3_40d.dsk | |
13 DISK_80D = spacequest2_80d.dsk | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
14 DISK_DW = spacequest3_dw.dsk |
2085 | 15 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
16 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_80D) $(DISK_DW) |
2216 | 17 |
2085 | 18 DISK_1_40D_NAME = "Space Quest II Disk 1" |
19 DISK_2_40D_NAME = "Space Quest II Disk 2" | |
20 DISK_3_40D_NAME = "Space Quest II Disk 3" | |
21 DISK_80D_NAME = "Space Quest II" | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
22 DISK_DW_NAME = "Space Quest II" |
2085 | 23 |
24 CMDS = sierra mnln scrn shdw tocgen | |
25 MD = $(LEVEL2)/coco3/modules | |
26 | |
27 # We make our own bootfile and kernel track | |
28 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
|
29 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
2085 | 30 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
31 $(MD)/rbf.mn \ | |
32 $(MD)/rb1773.dr $(MD)/ddd0_40d.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 | |
39 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ | |
40 $(MD)/rbf.mn \ | |
41 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \ | |
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 \ | |
46 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
47 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
48 OS9BOOT_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2499 | 49 $(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
|
50 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2499 | 51 $(MD)/scf.mn $(MD)/vtio.dr \ |
52 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
53 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
54 $(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
|
55 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2499 | 56 |
2085 | 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_40d.txt |
62 TEXTFILES = ../startup tOC_80d.txt | |
2085 | 63 |
64 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \ | |
65 vol.1 words.tok | |
66 | |
2099 | 67 SUPPORTFILES_D2 = object vol.0 vol.2 |
2085 | 68 |
2099 | 69 SUPPORTFILES_D3 = object vol.0 vol.3 |
2085 | 70 |
71 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ | |
72 vol.1 vol.2 vol.3 words.tok | |
73 | |
74 ALLOBJS = $(CMDS) | |
75 | |
76 all: $(ALLOBJS) | |
77 | |
78 clean: dskclean | |
79 $(RM) $(ALLOBJS) | |
80 | |
2123
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
81 dsk_40d: all |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
82 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) |
2085 | 83 $(CD) $(LEVEL2)/coco3; make |
84 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME) | |
85 $(MERGE) $(OS9BOOT_40D)>os9boot_40d | |
86 $(MERGE) $(KERNEL)>kernel_1773 | |
87 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773 | |
88 $(RM) os9boot_40d os9boot_80d kernel_1773 | |
89 $(MAKDIR) $(DISK_1_40D),CMDS | |
90 $(CP) $(CMDS) $(DISK_1_40D),CMDS | |
91 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);) | |
92 $(MERGE) $(BOOTCMDS)>shell | |
93 $(CP) shell $(DISK_1_40D),CMDS | |
94 $(RM) shell | |
95 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r | |
96 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx | |
97 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),. | |
98 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt | |
99 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),. | |
2499 | 100 $(MOVE) tocgen toctmp |
2085 | 101 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC |
2499 | 102 $(MOVE) toctmp tocgen |
2085 | 103 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME) |
104 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),. | |
105 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME) | |
106 $(CP) $(SUPPORTFILES_D3) $(DISK_3_40D),. | |
2123
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
107 |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
108 dsk_80d: all |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
109 $(RM) $(DISK_80D) |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
110 $(CD) $(LEVEL2)/coco3; make |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
111 $(OS9FORMAT_DS80) -q $(DISK_80D) -n$(DISK_80D_NAME) |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
112 $(MERGE) $(OS9BOOT_80D)>os9boot_80d |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
113 $(MERGE) $(KERNEL)>kernel_1773 |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
114 $(OS9GEN) $(DISK_80D) -b=os9boot_80d -t=kernel_1773 |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
115 $(RM) os9boot_40d os9boot_80d kernel_1773 |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
116 $(MAKDIR) $(DISK_80D),CMDS |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
117 $(CP) $(CMDS) $(DISK_80D),CMDS |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
118 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_80D),CMDS/$(file);) |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
119 $(MERGE) $(BOOTCMDS)>shell |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
120 $(CP) shell $(DISK_80D),CMDS |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
121 $(RM) shell |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
122 $(OS9ATTR) $(DISK_80D),CMDS/shell -e -pe -pr -e -w -r |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
123 $(OS9RENAME) $(DISK_80D),CMDS/sierra AutoEx |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
124 $(CPL) $(TEXTFILES) $(DISK_80D),. |
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
125 $(OS9RENAME) $(DISK_80D),tOC_80d.txt tOC.txt |
2085 | 126 $(CP) $(SUPPORTFILES) $(DISK_80D),. |
2499 | 127 $(MOVE) tocgen toctmp |
2085 | 128 tocgen $(DISK_80D),tOC.txt $(DISK_80D),tOC |
2499 | 129 $(MOVE) toctmp tocgen |
2085 | 130 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
131 dsk_dw: all |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
132 $(RM) $(DISK_DW) |
2499 | 133 $(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
|
134 $(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
|
135 $(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
|
136 $(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
|
137 $(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
|
138 $(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
|
139 $(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
|
140 $(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
|
141 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_DW),CMDS/$(file);) |
2499 | 142 $(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
|
143 $(CP) shell $(DISK_DW),CMDS |
2499 | 144 $(RM) shell |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
145 $(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
|
146 $(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
|
147 $(CPL) $(TEXTFILES) $(DISK_DW),. |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
148 $(OS9RENAME) $(DISK_DW),tOC_80d.txt tOC.txt |
2499 | 149 $(RM) tocgen |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
150 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
|
151 $(CP) $(SUPPORTFILES) $(DISK_DW),. |
2499 | 152 |
153 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
154 dsk: dsk_40d dsk_80d dsk_dw |
2123
82081ff99be5
Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents:
2099
diff
changeset
|
155 |
2085 | 156 dskcopy: dsk |
2216 | 157 $(CP) $(DSKS) $(DSKDIR) |
2085 | 158 |
159 dskclean: | |
2216 | 160 $(RM) $(DSKS) |
161 | |
162 info: | |
163 @$(ECHO) "*** Space Quest II ***" | |
164 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |