Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/kingsquest2/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 |
---|---|
2495 | 1 ifndef NITROS9DIR |
2 NITROS9DIR = $(HOME)/nitros9 | |
3 endif | |
2072 | 4 include $(NITROS9DIR)/rules.mak |
5 | |
2130 | 6 vpath %.asm ../objs_lsl |
2072 | 7 |
8 DEPENDS = ./makefile | |
9 | |
2228 | 10 DSK_1_40D = kingsquest2_d1_40d.dsk |
11 DSK_2_40D = kingsquest2_d2_40d.dsk | |
12 DSK_80D = kingsquest2_80d.dsk | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
13 DSK_DW = kingsquest2_dw.dsk |
2079 | 14 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
15 DSKS = $(DSK_1_40D) $(DSK_2_40D) $(DSK_80D) $(DSK_DW) |
2216 | 16 |
2228 | 17 DSK_1_40D_NAME = "King's Quest II Disk 1" |
18 DSK_2_40D_NAME = "King's Quest II Disk 2" | |
19 DSK_80D_NAME = "King's Quest II" | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
20 DSK_DW_NAME = "King's Quest II" |
2079 | 21 |
2072 | 22 CMDS = sierra mnln scrn shdw tocgen |
23 MD = $(LEVEL2)/coco3/modules | |
24 | |
25 # We make our own bootfile and kernel track | |
2495 | 26 KERNEL_FLOPPY = $(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
|
27 KERNEL_DW =$(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
2495 | 28 BOOTFILE_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2072 | 29 $(MD)/rbf.mn \ |
30 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | |
31 $(MD)/scf.mn $(MD)/vtio.dr \ | |
32 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
33 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
34 $(MD)/vrn.dr $(MD)/vi.dd \ | |
35 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
36 | |
2495 | 37 BOOTFILE_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2072 | 38 $(MD)/rbf.mn \ |
39 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \ | |
40 $(MD)/scf.mn $(MD)/vtio.dr \ | |
41 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
42 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
43 $(MD)/vrn.dr $(MD)/vi.dd \ | |
44 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
45 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
46 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2495 | 47 $(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
|
48 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2495 | 49 $(MD)/scf.mn $(MD)/vtio.dr \ |
50 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
51 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
52 $(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
|
53 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2495 | 54 |
2072 | 55 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ |
56 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
57 $(LEVEL2)/coco3/cmds/setime | |
58 | |
2515 | 59 TEXTFILES_D1 = ../startup tOC_40d.txt |
60 TEXTFILES = ../startup tOC_80d.txt | |
2072 | 61 |
2079 | 62 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \ |
2072 | 63 vol.1 words.tok |
64 | |
2099 | 65 SUPPORTFILES_D2 = object vol.0 vol.2 |
2072 | 66 |
2079 | 67 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ |
2072 | 68 vol.1 vol.2 words.tok |
69 | |
70 ALLOBJS = $(CMDS) | |
71 | |
72 all: $(ALLOBJS) | |
73 | |
74 clean: dskclean | |
75 $(RM) $(ALLOBJS) | |
76 | |
2228 | 77 $(DSK_1_40D): |
78 $(RM) $@ | |
2072 | 79 $(CD) $(LEVEL2)/coco3; make |
2228 | 80 $(OS9FORMAT_DS40) -q $@ -n$(DSK_1_40D_NAME) |
2495 | 81 $(MERGE) $(BOOTFILE_40D)>os9boot |
82 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
2228 | 83 $(OS9GEN) $@ -b=os9boot -t=kernel |
84 $(RM) os9boot kernel | |
85 $(MAKDIR) $@,CMDS | |
86 $(CP) $(CMDS) $@,CMDS | |
87 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
2072 | 88 $(MERGE) $(BOOTCMDS)>shell |
2228 | 89 $(CP) shell $@,CMDS |
2072 | 90 $(RM) shell |
2228 | 91 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
92 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
93 $(CPL) $(TEXTFILES_D1) $@,. | |
94 $(OS9RENAME) $@,tOC_40d.txt tOC.txt | |
2495 | 95 $(CP) $(SUPPORTFILES_D1) $@,. |
96 $(MOVE) tocgen toctmp | |
2228 | 97 tocgen $@,tOC.txt $@,tOC |
2495 | 98 $(MOVE) toctmp tocgen |
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
|
99 |
2228 | 100 $(DSK_2_40D): |
101 $(RM) $@ | |
102 $(OS9FORMAT_DS40) -q $@ -n$(DSK_2_40D_NAME) | |
103 $(CP) $(SUPPORTFILES_D2) $@,. | |
104 | |
105 $(DSK_80D): | |
106 $(RM) $@ | |
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 $(CD) $(LEVEL2)/coco3; make |
2228 | 108 $(OS9FORMAT_DS80) -q $@ -n$(DSK_80D_NAME) |
2495 | 109 $(MERGE) $(BOOTFILE_80D)>os9boot |
110 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
2228 | 111 $(OS9GEN) $@ -b=os9boot -t=kernel |
112 $(RM) os9boot kernel | |
113 $(MAKDIR) $@,CMDS | |
114 $(CP) $(CMDS) $@,CMDS | |
115 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
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
|
116 $(MERGE) $(BOOTCMDS)>shell |
2228 | 117 $(CP) shell $@,CMDS |
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
|
118 $(RM) shell |
2228 | 119 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
120 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
121 $(CPL) $(TEXTFILES) $@,. | |
122 $(OS9RENAME) $@,tOC_80d.txt tOC.txt | |
2495 | 123 $(CP) $(SUPPORTFILES) $@,. |
124 $(MOVE) tocgen toctmp | |
2228 | 125 tocgen $@,tOC.txt $@,tOC |
2495 | 126 $(MOVE) toctmp tocgen |
127 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
128 $(DSK_DW): |
2495 | 129 $(RM) $@ |
130 $(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
|
131 $(OS9FORMAT_DW) -q $@ -n$(DSK_DW_NAME) |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
132 $(MERGE) $(BOOTFILE_DW)>os9boot |
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
133 $(MERGE) $(KERNEL_DW)>kernel |
2495 | 134 $(OS9GEN) $@ -b=os9boot -t=kernel |
135 $(RM) os9boot kernel | |
136 $(MAKDIR) $@,CMDS | |
137 $(CP) $(CMDS) $@,CMDS | |
138 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) | |
139 $(MERGE) $(BOOTCMDS)>shell | |
140 $(CP) shell $@,CMDS | |
141 $(RM) shell | |
142 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r | |
143 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
144 $(CPL) $(TEXTFILES) $@,. | |
145 $(OS9RENAME) $@,tOC_80d.txt tOC.txt | |
2228 | 146 $(CP) $(SUPPORTFILES) $@,. |
2495 | 147 $(RM) tocgen |
148 tocgen $@,tOC.txt $@,tOC | |
149 | |
2072 | 150 |
2228 | 151 dsk: all $(DSKS) |
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
|
152 |
2072 | 153 dskcopy: dsk |
2216 | 154 $(CP) $(DSKS) $(DSKDIR) |
2072 | 155 |
156 dskclean: | |
2216 | 157 $(RM) $(DSKS) |
158 | |
159 info: | |
160 @$(ECHO) "*** King's Quest II ***" | |
161 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |