annotate 3rdparty/packages/sierra/kingsquest1/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: 2219
diff changeset
1 ifndef NITROS9DIR
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2219
diff changeset
2 NITROS9DIR = $(HOME)/nitros9
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2219
diff changeset
3 endif
2071
b1c59791822b Updated
boisy
parents:
diff changeset
4 include $(NITROS9DIR)/rules.mak
b1c59791822b Updated
boisy
parents:
diff changeset
5
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
6 vpath %.asm ../objs_lsl
2071
b1c59791822b Updated
boisy
parents:
diff changeset
7
b1c59791822b Updated
boisy
parents:
diff changeset
8 DEPENDS = ./makefile
b1c59791822b Updated
boisy
parents:
diff changeset
9
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
10 DISK_40D = kingsquest1_40d.dsk
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
11 DSKDW = kingsquest1_dw.dsk
2078
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
12
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
13 DSKS = $(DISK_40D) $(DSKDW)
2216
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
14
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
15 DISK_40D_NAME = "King's Quest I"
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
16 DSKDW_NAME = $(DISK_40D_NAME)
2078
975880f2e543 Updated makefile, added startup
boisy
parents: 2077
diff changeset
17
2071
b1c59791822b Updated
boisy
parents:
diff changeset
18 CMDS = sierra mnln scrn shdw tocgen
b1c59791822b Updated
boisy
parents:
diff changeset
19 MD = $(LEVEL2)/coco3/modules
b1c59791822b Updated
boisy
parents:
diff changeset
20
b1c59791822b Updated
boisy
parents:
diff changeset
21 # We make our own bootfile and kernel track
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
22 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
23 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
24
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
25 BOOTFILE_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2071
b1c59791822b Updated
boisy
parents:
diff changeset
26 $(MD)/rbf.mn \
b1c59791822b Updated
boisy
parents:
diff changeset
27 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
b1c59791822b Updated
boisy
parents:
diff changeset
28 $(MD)/scf.mn $(MD)/vtio.dr \
b1c59791822b Updated
boisy
parents:
diff changeset
29 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
b1c59791822b Updated
boisy
parents:
diff changeset
30 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
b1c59791822b Updated
boisy
parents:
diff changeset
31 $(MD)/vrn.dr $(MD)/vi.dd \
b1c59791822b Updated
boisy
parents:
diff changeset
32 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
b1c59791822b Updated
boisy
parents:
diff changeset
33
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
34 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
35 $(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
36 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
37 $(MD)/scf.mn $(MD)/vtio.dr \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
38 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
39 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
40 $(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
41 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
42
2071
b1c59791822b Updated
boisy
parents:
diff changeset
43 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
b1c59791822b Updated
boisy
parents:
diff changeset
44 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
b1c59791822b Updated
boisy
parents:
diff changeset
45 $(LEVEL2)/coco3/cmds/setime
b1c59791822b Updated
boisy
parents:
diff changeset
46
2515
0fe5a04e9d0c Updated
boisy
parents: 2495
diff changeset
47 TEXTFILES = ../startup tOC_40d.txt
2071
b1c59791822b Updated
boisy
parents:
diff changeset
48
2129
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
49 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
e1d1f7c55f32 Updated to LSL interpreter and compression, now fits on 40d
boisy
parents: 2128
diff changeset
50 vol.1 vol.2 words.tok
2071
b1c59791822b Updated
boisy
parents:
diff changeset
51
b1c59791822b Updated
boisy
parents:
diff changeset
52 ALLOBJS = $(CMDS)
b1c59791822b Updated
boisy
parents:
diff changeset
53
b1c59791822b Updated
boisy
parents:
diff changeset
54 all: $(ALLOBJS)
b1c59791822b Updated
boisy
parents:
diff changeset
55
b1c59791822b Updated
boisy
parents:
diff changeset
56 clean: dskclean
b1c59791822b Updated
boisy
parents:
diff changeset
57 $(RM) $(ALLOBJS)
b1c59791822b Updated
boisy
parents:
diff changeset
58
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
59 dsk: all $(DISK_40D) $(DSKDW)
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
60
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
61 $(DISK_40D):
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
62 $(RM) $@
2071
b1c59791822b Updated
boisy
parents:
diff changeset
63 $(CD) $(LEVEL2)/coco3; make
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
64 $(OS9FORMAT_DS40) -q $@ -n$(DISK_40D_NAME)
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
65 $(MERGE) $(BOOTFILE_40D)>os9boot
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
66 $(MERGE) $(KERNEL_FLOPPY)>kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
67 $(OS9GEN) $@ -b=os9boot -t=kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
68 $(RM) os9boot kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
69 $(MAKDIR) $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
70 $(CP) $(CMDS) $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
71 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
2071
b1c59791822b Updated
boisy
parents:
diff changeset
72 $(MERGE) $(BOOTCMDS)>shell
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
73 $(CP) shell $@,CMDS
2071
b1c59791822b Updated
boisy
parents:
diff changeset
74 $(RM) shell
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
75 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
76 $(OS9RENAME) $@,CMDS/sierra AutoEx
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
77 $(CPL) $(TEXTFILES) $@,.
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
78 $(OS9RENAME) $@,tOC_40d.txt tOC.txt
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2219
diff changeset
79 $(MOVE) tocgen toctmp
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
80 tocgen $@,tOC.txt $@,tOC
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2219
diff changeset
81 $(MOVE) toctmp tocgen
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
82 $(CP) $(SUPPORTFILES) $@,.
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
83
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
84 $(DSKDW):
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
85 $(RM) $@
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
86 $(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
87 $(OS9FORMAT_DW) -q $@ -n$(DISK_40D_NAME)
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
88 $(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
89 $(MERGE) $(KERNEL_DW)>kernel
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
90 $(OS9GEN) $@ -b=os9boot -t=kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
91 $(RM) os9boot kernel
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
92 $(MAKDIR) $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
93 $(CP) $(CMDS) $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
94 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
95 $(MERGE) $(BOOTCMDS)>shell
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
96 $(CP) shell $@,CMDS
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
97 $(RM) shell
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
98 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
99 $(OS9RENAME) $@,CMDS/sierra AutoEx
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
100 $(CPL) $(TEXTFILES) $@,.
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
101 $(OS9RENAME) $@,tOC_40d.txt tOC.txt
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2219
diff changeset
102 $(RM) tocgen
2219
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
103 tocgen $@,tOC.txt $@,tOC
94ccee3fceda Updated makefiles
boisy
parents: 2216
diff changeset
104 $(CP) $(SUPPORTFILES) $@,.
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
105
2071
b1c59791822b Updated
boisy
parents:
diff changeset
106 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
107 $(CP) $(DSKS) $(DSKDIR)
2071
b1c59791822b Updated
boisy
parents:
diff changeset
108
b1c59791822b Updated
boisy
parents:
diff changeset
109 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
110 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
111
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
112 info:
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
113 @$(ECHO) "*** King's Quest I ***"
d096a278e068 Added info targets
boisy
parents: 2129
diff changeset
114 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)