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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
1 ifndef NITROS9DIR
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
2 NITROS9DIR = $(HOME)/nitros9
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
3 endif
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
4 include $(NITROS9DIR)/rules.mak
f4759cf9ae56 Updated
boisy
parents:
diff changeset
5
2130
7d261213a689 Updated to LSL engine
boisy
parents: 2123
diff changeset
6 vpath %.asm ../objs_lsl
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
7
f4759cf9ae56 Updated
boisy
parents:
diff changeset
8 DEPENDS = ./makefile
f4759cf9ae56 Updated
boisy
parents:
diff changeset
9
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
10 DSK_1_40D = kingsquest2_d1_40d.dsk
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
11 DSK_2_40D = kingsquest2_d2_40d.dsk
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
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
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
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
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
16
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
17 DSK_1_40D_NAME = "King's Quest II Disk 1"
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
18 DSK_2_40D_NAME = "King's Quest II Disk 2"
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
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
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
21
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
22 CMDS = sierra mnln scrn shdw tocgen
f4759cf9ae56 Updated
boisy
parents:
diff changeset
23 MD = $(LEVEL2)/coco3/modules
f4759cf9ae56 Updated
boisy
parents:
diff changeset
24
f4759cf9ae56 Updated
boisy
parents:
diff changeset
25 # We make our own bootfile and kernel track
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
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
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
28 BOOTFILE_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
29 $(MD)/rbf.mn \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
30 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
31 $(MD)/scf.mn $(MD)/vtio.dr \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
32 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
33 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
34 $(MD)/vrn.dr $(MD)/vi.dd \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
35 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
f4759cf9ae56 Updated
boisy
parents:
diff changeset
36
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
37 BOOTFILE_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
38 $(MD)/rbf.mn \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
39 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
40 $(MD)/scf.mn $(MD)/vtio.dr \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
41 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
42 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
43 $(MD)/vrn.dr $(MD)/vi.dd \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
44 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
f4759cf9ae56 Updated
boisy
parents:
diff changeset
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
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
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
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
49 $(MD)/scf.mn $(MD)/vtio.dr \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
50 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
51 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
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
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
54
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
55 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
56 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
57 $(LEVEL2)/coco3/cmds/setime
f4759cf9ae56 Updated
boisy
parents:
diff changeset
58
2515
0fe5a04e9d0c Updated
boisy
parents: 2495
diff changeset
59 TEXTFILES_D1 = ../startup tOC_40d.txt
0fe5a04e9d0c Updated
boisy
parents: 2495
diff changeset
60 TEXTFILES = ../startup tOC_80d.txt
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
61
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
62 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
63 vol.1 words.tok
f4759cf9ae56 Updated
boisy
parents:
diff changeset
64
2099
c0e39b3fc9e9 Updated
boisy
parents: 2080
diff changeset
65 SUPPORTFILES_D2 = object vol.0 vol.2
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
66
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
67 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
68 vol.1 vol.2 words.tok
f4759cf9ae56 Updated
boisy
parents:
diff changeset
69
f4759cf9ae56 Updated
boisy
parents:
diff changeset
70 ALLOBJS = $(CMDS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
71
f4759cf9ae56 Updated
boisy
parents:
diff changeset
72 all: $(ALLOBJS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
73
f4759cf9ae56 Updated
boisy
parents:
diff changeset
74 clean: dskclean
f4759cf9ae56 Updated
boisy
parents:
diff changeset
75 $(RM) $(ALLOBJS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
76
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
77 $(DSK_1_40D):
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
78 $(RM) $@
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
79 $(CD) $(LEVEL2)/coco3; make
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
80 $(OS9FORMAT_DS40) -q $@ -n$(DSK_1_40D_NAME)
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
81 $(MERGE) $(BOOTFILE_40D)>os9boot
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
82 $(MERGE) $(KERNEL_FLOPPY)>kernel
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
83 $(OS9GEN) $@ -b=os9boot -t=kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
84 $(RM) os9boot kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
85 $(MAKDIR) $@,CMDS
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
86 $(CP) $(CMDS) $@,CMDS
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
87 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
88 $(MERGE) $(BOOTCMDS)>shell
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
89 $(CP) shell $@,CMDS
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
90 $(RM) shell
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
91 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
92 $(OS9RENAME) $@,CMDS/sierra AutoEx
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
93 $(CPL) $(TEXTFILES_D1) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
94 $(OS9RENAME) $@,tOC_40d.txt tOC.txt
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
95 $(CP) $(SUPPORTFILES_D1) $@,.
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
96 $(MOVE) tocgen toctmp
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
97 tocgen $@,tOC.txt $@,tOC
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
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
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
100 $(DSK_2_40D):
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
101 $(RM) $@
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
102 $(OS9FORMAT_DS40) -q $@ -n$(DSK_2_40D_NAME)
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
103 $(CP) $(SUPPORTFILES_D2) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
104
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
105 $(DSK_80D):
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
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
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
108 $(OS9FORMAT_DS80) -q $@ -n$(DSK_80D_NAME)
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
109 $(MERGE) $(BOOTFILE_80D)>os9boot
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
110 $(MERGE) $(KERNEL_FLOPPY)>kernel
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
111 $(OS9GEN) $@ -b=os9boot -t=kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
112 $(RM) os9boot kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
113 $(MAKDIR) $@,CMDS
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
114 $(CP) $(CMDS) $@,CMDS
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
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
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
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
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
119 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
120 $(OS9RENAME) $@,CMDS/sierra AutoEx
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
121 $(CPL) $(TEXTFILES) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
122 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
123 $(CP) $(SUPPORTFILES) $@,.
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
124 $(MOVE) tocgen toctmp
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
125 tocgen $@,tOC.txt $@,tOC
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
126 $(MOVE) toctmp tocgen
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
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
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
129 $(RM) $@
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
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
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
134 $(OS9GEN) $@ -b=os9boot -t=kernel
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
135 $(RM) os9boot kernel
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
136 $(MAKDIR) $@,CMDS
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
137 $(CP) $(CMDS) $@,CMDS
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
138 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
139 $(MERGE) $(BOOTCMDS)>shell
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
140 $(CP) shell $@,CMDS
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
141 $(RM) shell
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
142 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
143 $(OS9RENAME) $@,CMDS/sierra AutoEx
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
144 $(CPL) $(TEXTFILES) $@,.
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
145 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
146 $(CP) $(SUPPORTFILES) $@,.
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
147 $(RM) tocgen
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
148 tocgen $@,tOC.txt $@,tOC
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
149
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
150
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
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
f4759cf9ae56 Updated
boisy
parents:
diff changeset
153 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
154 $(CP) $(DSKS) $(DSKDIR)
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
155
f4759cf9ae56 Updated
boisy
parents:
diff changeset
156 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
157 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
158
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
159 info:
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
160 @$(ECHO) "*** King's Quest II ***"
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
161 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)