Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/sierra/kingsquest1/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 |
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 |
2071 | 2 |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
3 vpath %.asm ../objs_lsl |
2071 | 4 |
5 DEPENDS = ./makefile | |
6 | |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
7 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
|
8 DSKDW = kingsquest1_dw.dsk |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
9 DSKDWBECKER = kingsquest1_becker.dsk |
2078 | 10 |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
11 DSKS = $(DISK_40D) $(DSKDW) $(DSKDWBECKER) |
2216 | 12 |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
13 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
|
14 DSKDW_NAME = $(DISK_40D_NAME) |
2078 | 15 |
2071 | 16 CMDS = sierra mnln scrn shdw tocgen |
17 MD = $(LEVEL2)/coco3/modules | |
18 | |
19 # We make our own bootfile and kernel track | |
2219 | 20 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
|
21 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
22 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
23 |
2219 | 24 BOOTFILE_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2071 | 25 $(MD)/rbf.mn \ |
26 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \ | |
27 $(MD)/scf.mn $(MD)/vtio.dr \ | |
28 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
29 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
30 $(MD)/vrn.dr $(MD)/vi.dd \ | |
31 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd | |
32 | |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
33 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \ |
2219 | 34 $(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
|
35 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \ |
2219 | 36 $(MD)/scf.mn $(MD)/vtio.dr \ |
37 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \ | |
38 $(MD)/covdg_small.io $(MD)/term_vdg.dt \ | |
39 $(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
|
40 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd |
2219 | 41 |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
42 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
|
43 $(MD)/rbf.mn \ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
44 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
45 $(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
|
46 $(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
|
47 $(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
|
48 $(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
|
49 $(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
|
50 |
2071 | 51 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \ |
52 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \ | |
53 $(LEVEL2)/coco3/cmds/setime | |
54 | |
2515 | 55 TEXTFILES = ../startup tOC_40d.txt |
2071 | 56 |
2129
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
57 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \ |
e1d1f7c55f32
Updated to LSL interpreter and compression, now fits on 40d
boisy
parents:
2128
diff
changeset
|
58 vol.1 vol.2 words.tok |
2071 | 59 |
60 ALLOBJS = $(CMDS) | |
61 | |
62 all: $(ALLOBJS) | |
63 | |
64 clean: dskclean | |
65 $(RM) $(ALLOBJS) | |
66 | |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
67 dsk: all $(DISK_40D) $(DSKDW) $(DSKDWBECKER) |
2219 | 68 |
69 $(DISK_40D): | |
70 $(RM) $@ | |
2071 | 71 $(CD) $(LEVEL2)/coco3; make |
2219 | 72 $(OS9FORMAT_DS40) -q $@ -n$(DISK_40D_NAME) |
73 $(MERGE) $(BOOTFILE_40D)>os9boot | |
74 $(MERGE) $(KERNEL_FLOPPY)>kernel | |
75 $(OS9GEN) $@ -b=os9boot -t=kernel | |
76 $(RM) os9boot kernel | |
77 $(MAKDIR) $@,CMDS | |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
78 $(OS9COPY) $(CMDS) $@,CMDS |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
79 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2071 | 80 $(MERGE) $(BOOTCMDS)>shell |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
81 $(OS9COPY) shell $@,CMDS |
2071 | 82 $(RM) shell |
2219 | 83 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r |
84 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
85 $(CPL) $(TEXTFILES) $@,. | |
86 $(OS9RENAME) $@,tOC_40d.txt tOC.txt | |
2495 | 87 $(MOVE) tocgen toctmp |
2219 | 88 tocgen $@,tOC.txt $@,tOC |
2495 | 89 $(MOVE) toctmp tocgen |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
90 $(OS9COPY) $(SUPPORTFILES) $@,. |
2219 | 91 |
2724
05b648103e78
Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2515
diff
changeset
|
92 $(DSKDW): |
2219 | 93 $(RM) $@ |
94 $(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
|
95 $(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
|
96 $(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
|
97 $(MERGE) $(KERNEL_DW)>kernel |
2219 | 98 $(OS9GEN) $@ -b=os9boot -t=kernel |
99 $(RM) os9boot kernel | |
100 $(MAKDIR) $@,CMDS | |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
101 $(OS9COPY) $(CMDS) $@,CMDS |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
102 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file)) |
2219 | 103 $(MERGE) $(BOOTCMDS)>shell |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
104 $(OS9COPY) shell $@,CMDS |
2219 | 105 $(RM) shell |
106 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r | |
107 $(OS9RENAME) $@,CMDS/sierra AutoEx | |
108 $(CPL) $(TEXTFILES) $@,. | |
109 $(OS9RENAME) $@,tOC_40d.txt tOC.txt | |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
110 $(MOVE) tocgen toctmp |
2219 | 111 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
|
112 $(MOVE) toctmp tocgen |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
113 $(OS9COPY) $(SUPPORTFILES) $@,. |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
114 |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
115 $(DSKDWBECKER): |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
116 $(RM) $@ |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
117 $(CD) $(LEVEL2)/coco3; make |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
118 $(OS9FORMAT_DW) -q $@ -n$(DISK_40D_NAME) |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
119 $(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
|
120 $(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
|
121 $(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
|
122 $(RM) os9boot kernel |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
123 $(MAKDIR) $@,CMDS |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
124 $(OS9COPY) $(CMDS) $@,CMDS |
2849
84d9d5765057
Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents:
2774
diff
changeset
|
125 $(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
|
126 $(MERGE) $(BOOTCMDS)>shell |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
127 $(OS9COPY) shell $@,CMDS |
2774
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
128 $(RM) shell |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
129 $(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
|
130 $(OS9RENAME) $@,CMDS/sierra AutoEx |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
131 $(CPL) $(TEXTFILES) $@,. |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
132 $(OS9RENAME) $@,tOC_40d.txt tOC.txt |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
133 $(MOVE) tocgen toctmp |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
134 tocgen $@,tOC.txt $@,tOC |
1868fbf470e7
Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2724
diff
changeset
|
135 $(MOVE) toctmp tocgen |
2856
84d284e812cd
Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents:
2849
diff
changeset
|
136 $(OS9COPY) $(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
|
137 |
2071 | 138 dskcopy: dsk |
2857
d5220b220313
Makefiles: Use native cp for copying dsk images
Tormod Volden <debian.tormod@gmail.com>
parents:
2856
diff
changeset
|
139 $(CP) $(DSKS) $(DSKDIR) |
2071 | 140 |
141 dskclean: | |
2216 | 142 $(RM) $(DSKS) |
143 | |
144 info: | |
145 @$(ECHO) "*** King's Quest I ***" | |
146 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |