annotate 3rdparty/packages/sierra/kingsquest2/makefile @ 2857:d5220b220313 lwtools-port

Makefiles: Use native cp for copying dsk images The "os9 copy" is not able to do this on Cygwin, and is not the right tool for the job anyway. Thanks to Bob Devries for reporting this issue!
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 13 Jul 2013 11:53:36 +0200
parents 84d284e812cd
children 28ed72477814
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
1 include ../../../../rules.mak
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
2
2130
7d261213a689 Updated to LSL engine
boisy
parents: 2123
diff changeset
3 vpath %.asm ../objs_lsl
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
4
f4759cf9ae56 Updated
boisy
parents:
diff changeset
5 DEPENDS = ./makefile
f4759cf9ae56 Updated
boisy
parents:
diff changeset
6
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
7 DSK_1_40D = kingsquest2_d1_40d.dsk
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
8 DSK_2_40D = kingsquest2_d2_40d.dsk
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
9 DSK_80D = kingsquest2_80d.dsk
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
10 DSK_DW = kingsquest2_dw.dsk
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
11 DSK_DW_BECKER = kingsquest2_becker.dsk
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
12
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
13 DSKS = $(DSK_1_40D) $(DSK_2_40D) $(DSK_80D) $(DSK_DW) $(DSK_DW_BECKER)
2216
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
14
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
15 DSK_1_40D_NAME = "King's Quest II Disk 1"
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
16 DSK_2_40D_NAME = "King's Quest II Disk 2"
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
17 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
18 DSK_DW_NAME = "King's Quest II"
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
19
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
20 CMDS = sierra mnln scrn shdw tocgen
f4759cf9ae56 Updated
boisy
parents:
diff changeset
21 MD = $(LEVEL2)/coco3/modules
f4759cf9ae56 Updated
boisy
parents:
diff changeset
22
f4759cf9ae56 Updated
boisy
parents:
diff changeset
23 # We make our own bootfile and kernel track
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
24 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
25 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
26 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
27
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
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
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 \
2780
7bbf59fa99aa Updated two makefile(s) for correct .sb usage and disk name.
drencor-xeen
parents: 2774
diff changeset
48 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
49 $(MD)/scf.mn $(MD)/vtio.dr \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
50 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
51 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
52 $(MD)/vrn.dr $(MD)/vi.dd \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
53 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
54
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
55 BOOTFILE_DW_BECKER = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
56 $(MD)/rbf.mn \
2780
7bbf59fa99aa Updated two makefile(s) for correct .sb usage and disk name.
drencor-xeen
parents: 2774
diff changeset
57 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
58 $(MD)/scf.mn $(MD)/vtio.dr \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
59 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
60 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
61 $(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
62 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
63
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
64 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
65 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
66 $(LEVEL2)/coco3/cmds/setime
f4759cf9ae56 Updated
boisy
parents:
diff changeset
67
2515
0fe5a04e9d0c Updated
boisy
parents: 2495
diff changeset
68 TEXTFILES_D1 = ../startup tOC_40d.txt
0fe5a04e9d0c Updated
boisy
parents: 2495
diff changeset
69 TEXTFILES = ../startup tOC_80d.txt
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
70
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
71 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
72 vol.1 words.tok
f4759cf9ae56 Updated
boisy
parents:
diff changeset
73
2099
c0e39b3fc9e9 Updated
boisy
parents: 2080
diff changeset
74 SUPPORTFILES_D2 = object vol.0 vol.2
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
75
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
76 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
77 vol.1 vol.2 words.tok
f4759cf9ae56 Updated
boisy
parents:
diff changeset
78
f4759cf9ae56 Updated
boisy
parents:
diff changeset
79 ALLOBJS = $(CMDS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
80
f4759cf9ae56 Updated
boisy
parents:
diff changeset
81 all: $(ALLOBJS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
82
f4759cf9ae56 Updated
boisy
parents:
diff changeset
83 clean: dskclean
f4759cf9ae56 Updated
boisy
parents:
diff changeset
84 $(RM) $(ALLOBJS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
85
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
86 $(DSK_1_40D):
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
87 $(RM) $@
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
88 $(CD) $(LEVEL2)/coco3; make
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
89 $(OS9FORMAT_DS40) -q $@ -n$(DSK_1_40D_NAME)
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
90 $(MERGE) $(BOOTFILE_40D)>os9boot
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
91 $(MERGE) $(KERNEL_FLOPPY)>kernel
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
92 $(OS9GEN) $@ -b=os9boot -t=kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
93 $(RM) os9boot kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
94 $(MAKDIR) $@,CMDS
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
95 $(OS9COPY) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2780
diff changeset
96 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
97 $(MERGE) $(BOOTCMDS)>shell
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
98 $(OS9COPY) shell $@,CMDS
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
99 $(RM) shell
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
100 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
101 $(OS9RENAME) $@,CMDS/sierra AutoEx
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
102 $(CPL) $(TEXTFILES_D1) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
103 $(OS9RENAME) $@,tOC_40d.txt tOC.txt
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
104 $(OS9COPY) $(SUPPORTFILES_D1) $@,.
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
105 $(MOVE) tocgen toctmp
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
106 tocgen $@,tOC.txt $@,tOC
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
107 $(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
108
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
109 $(DSK_2_40D):
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
110 $(RM) $@
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
111 $(OS9FORMAT_DS40) -q $@ -n$(DSK_2_40D_NAME)
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
112 $(OS9COPY) $(SUPPORTFILES_D2) $@,.
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
113
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
114 $(DSK_80D):
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
115 $(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
116 $(CD) $(LEVEL2)/coco3; make
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
117 $(OS9FORMAT_DS80) -q $@ -n$(DSK_80D_NAME)
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
118 $(MERGE) $(BOOTFILE_80D)>os9boot
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
119 $(MERGE) $(KERNEL_FLOPPY)>kernel
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
120 $(OS9GEN) $@ -b=os9boot -t=kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
121 $(RM) os9boot kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
122 $(MAKDIR) $@,CMDS
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
123 $(OS9COPY) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2780
diff changeset
124 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,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
125 $(MERGE) $(BOOTCMDS)>shell
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
126 $(OS9COPY) 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
127 $(RM) shell
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
128 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
129 $(OS9RENAME) $@,CMDS/sierra AutoEx
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
130 $(CPL) $(TEXTFILES) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
131 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
132 $(OS9COPY) $(SUPPORTFILES) $@,.
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
133 $(MOVE) tocgen toctmp
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
134 tocgen $@,tOC.txt $@,tOC
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
135 $(MOVE) toctmp tocgen
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
136
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
137 $(DSK_DW):
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
138 $(RM) $@
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
139 $(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
140 $(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
141 $(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
142 $(MERGE) $(KERNEL_DW)>kernel
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
143 $(OS9GEN) $@ -b=os9boot -t=kernel
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
144 $(RM) os9boot kernel
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
145 $(MAKDIR) $@,CMDS
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
146 $(OS9COPY) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2780
diff changeset
147 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
148 $(MERGE) $(BOOTCMDS)>shell
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
149 $(OS9COPY) shell $@,CMDS
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
150 $(RM) shell
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
151 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
152 $(OS9RENAME) $@,CMDS/sierra AutoEx
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
153 $(CPL) $(TEXTFILES) $@,.
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
154 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
155 $(OS9COPY) $(SUPPORTFILES) $@,.
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
156 $(MOVE) tocgen toctmp
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
157 tocgen $@,tOC.txt $@,tOC
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
158 $(MOVE) toctmp tocgen
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
159
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
160 $(DSK_DW_BECKER):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
161 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
162 $(CD) $(LEVEL2)/coco3; make
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
163 $(OS9FORMAT_DW) -q $@ -n$(DSK_DW_NAME)
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
164 $(MERGE) $(BOOTFILE_DW_BECKER)>os9boot
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
165 $(MERGE) $(KERNEL_DW_BECKER)>kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
166 $(OS9GEN) $@ -b=os9boot -t=kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
167 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
168 $(MAKDIR) $@,CMDS
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
169 $(OS9COPY) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2780
diff changeset
170 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
171 $(MERGE) $(BOOTCMDS)>shell
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
172 $(OS9COPY) shell $@,CMDS
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
173 $(RM) shell
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
174 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
175 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
176 $(CPL) $(TEXTFILES) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
177 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
178 $(OS9COPY) $(SUPPORTFILES) $@,.
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
179 $(MOVE) tocgen toctmp
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
180 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
181 $(MOVE) toctmp tocgen
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
182
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
183 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
184
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
185 dskcopy: dsk
2857
d5220b220313 Makefiles: Use native cp for copying dsk images
Tormod Volden <debian.tormod@gmail.com>
parents: 2856
diff changeset
186 $(CP) $(DSKS) $(DSKDIR)
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
187
f4759cf9ae56 Updated
boisy
parents:
diff changeset
188 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
189 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
190
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
191 info:
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
192 @$(ECHO) "*** King's Quest II ***"
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
193 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
194