Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/kingsquest3/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 | 49d72e4ebf23 |
children | 1868fbf470e7 |
rev | line source |
---|---|
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
1 ifndef NITROS9DIR |
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
2 NITROS9DIR = $(HOME)/nitros9 |
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
3 endif |
2073 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
2516 | 6 vpath %.asm ../objs_lsl |
816 | 7 |
1363 | 8 DEPENDS = ./makefile |
816 | 9 |
2099 | 10 DISK_1_40D = kingquest3_d1_40d.dsk |
11 DISK_2_40D = kingquest3_d2_40d.dsk | |
12 DISK_3_40D = kingquest3_d3_40d.dsk | |
13 DISK_80D = kingquest3_80d.dsk | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
14 DSK_DW = kingsquest3_dw.dsk |
2081 | 15 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
16 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_80D) $(DSK_DW) |
2216 | 17 |
2081 | 18 DISK_1_40D_NAME = "King's Quest III Disk 1" |
19 DISK_2_40D_NAME = "King's Quest III Disk 2" | |
20 DISK_3_40D_NAME = "King's Quest III Disk 3" | |
21 DISK_80D_NAME = "King's Quest III" | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
22 DSK_DW_NAME = "King's Quest III" |
2081 | 23 |
816 | 24 CMDS = sierra mnln scrn shdw tocgen |
2064 | 25 MD = $(LEVEL2)/coco3/modules |
816 | 26 |
27 # We make our own bootfile and kernel track | |
1638 | 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:
2516
diff
changeset
|
29 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
30 |
1940 | 31 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
816 | 32 $(MD)/rbf.mn \ |
1638 | 33 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ |
1934 | 34 $(MD)/scf.mn $(MD)/vtio.dr \ |
1311
e7cac8de00e9
Updated Makefiles to build bootfiles from new module filenames
boisy
parents:
1169
diff
changeset
|
35 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
1934 | 36 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
816 | 37 $(MD)/vrn.dr $(MD)/vi.dd \ |
1318 | 38 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd |
816 | 39 |
1940 | 40 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
41 $(MD)/rbf.mn \ | |
42 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \ | |
43 $(MD)/scf.mn $(MD)/vtio.dr \ | |
44 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
45 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
46 $(MD)/vrn.dr $(MD)/vi.dd \ | |
47 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
48 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
49 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
50 $(MD)/rbf.mn \ |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
51 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
52 $(MD)/scf.mn $(MD)/vtio.dr \ |
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
53 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ |
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
54 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ |
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
55 $(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:
2516
diff
changeset
|
56 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
57 |
2064 | 58 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ |
59 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
60 $(LEVEL2)/coco3/cmds/setime | |
818 | 61 |
2515 | 62 TEXTFILES_D1 = ../startup tOC_40d.txt |
63 TEXTFILES = ../startup tOC_80d.txt | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
64 TEXTFILES_DW = ../startup tOC_dw.txt |
897 | 65 |
2081 | 66 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \ |
897 | 67 vol.1 vol.2 vol.3 vol.4 vol.12 vol.14 words.tok |
816 | 68 |
2099 | 69 SUPPORTFILES_D2 = object vol.0 vol.5 vol.6 vol.7 vol.8 vol.11 vol.12 vol.14 |
816 | 70 |
2099 | 71 SUPPORTFILES_D3 = object vol.0 vol.5 vol.6 vol.7 vol.9 vol.11 vol.12 vol.14 |
816 | 72 |
2081 | 73 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ |
1941
f408295c1f0a
tOC files now properly made for 40 and 80 track disks
boisy
parents:
1940
diff
changeset
|
74 vol.1 vol.2 vol.3 vol.4 vol.5 vol.6 vol.7 vol.8 vol.9 \ |
f408295c1f0a
tOC files now properly made for 40 and 80 track disks
boisy
parents:
1940
diff
changeset
|
75 vol.11 vol.12 vol.14 words.tok |
f408295c1f0a
tOC files now properly made for 40 and 80 track disks
boisy
parents:
1940
diff
changeset
|
76 |
816 | 77 ALLOBJS = $(CMDS) |
78 | |
79 all: $(ALLOBJS) | |
80 | |
81 clean: dskclean | |
82 $(RM) $(ALLOBJS) | |
83 | |
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
|
84 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
|
85 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) |
2064 | 86 $(CD) $(LEVEL2)/coco3; make |
2081 | 87 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME) |
1940 | 88 $(MERGE) $(OS9BOOT_40D)>os9boot_40d |
816 | 89 $(MERGE) $(KERNEL)>kernel_1773 |
1940 | 90 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773 |
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
|
91 $(RM) os9boot_40d kernel_1773 |
1940 | 92 $(MAKDIR) $(DISK_1_40D),CMDS |
93 $(CP) $(CMDS) $(DISK_1_40D),CMDS | |
94 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);) | |
818 | 95 $(MERGE) $(BOOTCMDS)>shell |
1940 | 96 $(CP) shell $(DISK_1_40D),CMDS |
818 | 97 $(RM) shell |
1940 | 98 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r |
99 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx | |
100 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),. | |
1941
f408295c1f0a
tOC files now properly made for 40 and 80 track disks
boisy
parents:
1940
diff
changeset
|
101 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt |
1940 | 102 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),. |
2496
78636a6da2b3
Permits DW3 build to work. This requires obj code not obj_lsl. RG
robertgault
parents:
2492
diff
changeset
|
103 $(MOVE) tocgen toctmp |
2081 | 104 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC |
2496
78636a6da2b3
Permits DW3 build to work. This requires obj code not obj_lsl. RG
robertgault
parents:
2492
diff
changeset
|
105 $(MOVE) toctmp tocgen |
2081 | 106 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME) |
1940 | 107 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),. |
2081 | 108 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME) |
1940 | 109 $(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
|
110 |
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 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
|
112 $(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
|
113 $(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
|
114 $(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
|
115 $(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
|
116 $(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
|
117 $(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
|
118 $(RM) 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
|
119 $(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
|
120 $(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
|
121 $(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
|
122 $(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
|
123 $(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
|
124 $(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
|
125 $(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
|
126 $(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
|
127 $(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
|
128 $(OS9RENAME) $(DISK_80D),tOC_80d.txt tOC.txt |
1941
f408295c1f0a
tOC files now properly made for 40 and 80 track disks
boisy
parents:
1940
diff
changeset
|
129 $(CP) $(SUPPORTFILES) $(DISK_80D),. |
2496
78636a6da2b3
Permits DW3 build to work. This requires obj code not obj_lsl. RG
robertgault
parents:
2492
diff
changeset
|
130 $(MOVE) tocgen toctmp |
2081 | 131 tocgen $(DISK_80D),tOC.txt $(DISK_80D),tOC |
2496
78636a6da2b3
Permits DW3 build to work. This requires obj code not obj_lsl. RG
robertgault
parents:
2492
diff
changeset
|
132 $(MOVE) toctmp tocgen |
816 | 133 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
134 dsk_dw: all |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
135 $(RM) $(DSK_DW) |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
136 $(CD) $(LEVEL2)/coco3; make |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
137 $(OS9FORMAT_DW) -q $(DSK_DW) -n$(DSK_DW_NAME) |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
138 $(MERGE) $(BOOTFILE_DW)>os9boot_dw |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
139 $(MERGE) $(KERNEL_DW)>kernel_dw |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
140 $(OS9GEN) $(DSK_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:
2516
diff
changeset
|
141 $(RM) os9boot_dw kernel_dw |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
142 $(MAKDIR) $(DSK_DW),CMDS |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
143 $(CP) $(CMDS) $(DSK_DW),CMDS |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
144 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DSK_DW),CMDS/$(file);) |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
145 $(MERGE) $(BOOTCMDS)>shell |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
146 $(CP) shell $(DSK_DW),CMDS |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
147 $(RM) shell |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
148 $(OS9ATTR) $(DSK_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:
2516
diff
changeset
|
149 $(OS9RENAME) $(DSK_DW),CMDS/sierra AutoEx |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
150 $(CPL) $(TEXTFILES_DW) $(DSK_DW),. |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
151 $(OS9RENAME) $(DSK_DW),tOC_dw.txt tOC.txt |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
152 $(CP) $(SUPPORTFILES) $(DSK_DW),. |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
153 $(RM) tocgen |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
154 tocgen $(DSK_DW),tOC.txt $(DSK_DW),tOC |
2492
f8888442a156
Makefile incorrectly used obj_lsl. Changed to obj directory. RG
robertgault
parents:
2216
diff
changeset
|
155 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2516
diff
changeset
|
156 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
|
157 |
1121 | 158 dskcopy: dsk |
2216 | 159 $(CP) $(DSKS) $(DSKDIR) |
1121 | 160 |
816 | 161 dskclean: |
2216 | 162 $(RM) $(DSKS) |
163 | |
164 info: | |
165 @$(ECHO) "*** King's Quest III ***" | |
166 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |