annotate 3rdparty/packages/sierra/kingsquest4/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 b6ebe6071e63
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
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
2
2131
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
3 vpath %.asm ../objs_lsl
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
4
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
5 DEPENDS = ./makefile
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
6
2131
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
7 DISK_1_80D = kingsquest4_d1_80d.dsk
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
8 DISK_2_80D = kingsquest4_d2_80d.dsk
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
9 DISK_3_80D = kingsquest4_d3_80d.dsk
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2511
diff changeset
10 DISK_DW = kingsquest4_dw.dsk
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
11 DISK_DW_BECKER = kingsquest4_becker.dsk
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
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 = $(DISK_1_80D) $(DISK_2_80D) $(DISK_3_80D) $(DISK_DW) $(DISK_DW_BECKER)
2216
d096a278e068 Added info targets
boisy
parents: 2203
diff changeset
14
2131
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
15 DISK_1_80D_NAME = "King's Quest IV Disk 1"
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
16 DISK_2_80D_NAME = "King's Quest IV Disk 2"
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
17 DISK_3_80D_NAME = "King's Quest IV Disk 3"
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2511
diff changeset
18 DISK_DW_NAME = "King's Quest IV"
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
19
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
20 CMDS = sierra mnln scrn shdw tocgen
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
21 MD = $(LEVEL2)/coco3/modules
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
22
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
23 # We make our own bootfile and kernel track
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
24 KERNEL = $(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: 2511
diff changeset
25 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
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
2131
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
28 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
29 $(MD)/rbf.mn \
2131
d097237f67b2 Updated to LSL engine
boisy
parents: 2099
diff changeset
30 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
31 $(MD)/scf.mn $(MD)/vtio.dr \
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
32 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
33 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
34 $(MD)/vrn.dr $(MD)/vi.dd \
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
35 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
36
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
37 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2498
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
diff changeset
38 $(MD)/rbf.mn \
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2511
diff changeset
39 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \
2498
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
diff changeset
40 $(MD)/scf.mn $(MD)/vtio.dr \
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
diff changeset
41 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
diff changeset
42 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
diff changeset
43 $(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: 2511
diff changeset
44 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
2498
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
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_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
47 $(MD)/rbf.mn \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
48 $(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
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
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
55 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
56 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
57 $(LEVEL2)/coco3/cmds/setime
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
58
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
59 TEXTFILES_D1 = startup tOC_80d.txt
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
60 TEXTFILES = startup tOC_80d.txt
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2511
diff changeset
61 TEXTFILES_DW = startup tOC_dw.txt
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
62
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
63 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
64 vol.1 vol.6 vol.9 vol.11 words.tok
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
65
2099
c0e39b3fc9e9 Updated
boisy
parents: 2092
diff changeset
66 SUPPORTFILES_D2 = object vol.0 vol.2 vol.3 vol.9 vol.10 vol.11
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
67
2099
c0e39b3fc9e9 Updated
boisy
parents: 2092
diff changeset
68 SUPPORTFILES_D3 = object vol.0 vol.4 vol.5 vol.10 vol.11
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
69
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2511
diff changeset
70 SUPPORTFILES_DW = logDir object picDir sndDir viewDir vol.0 \
2498
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
diff changeset
71 vol.1 vol.2 vol.3 vol.4 vol.5 vol.6 vol.9 vol.10 \
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
diff changeset
72 vol.11 words.tok
4d2c295061dc Permits DW3 build to work. Minor change so Rules don't need to change. RG
robertgault
parents: 2216
diff changeset
73
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
74 ALLOBJS = $(CMDS)
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
75
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
76 all: $(ALLOBJS)
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
77
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
78 clean: dskclean
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
79 $(RM) $(ALLOBJS)
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
80
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
81 dsk: all $(DSKS)
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
82
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
83 $(DISK_1_80D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
84 $(RM) $@
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
85 $(CD) $(LEVEL2)/coco3; make
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
86 $(OS9FORMAT_DS80) -q $@ -n$(DISK_1_80D_NAME)
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
87 $(MERGE) $(OS9BOOT_80D)>os9boot
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
88 $(MERGE) $(KERNEL)>kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
89 $(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
90 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
91 $(MAKDIR) $@,CMDS
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
92 $(OS9COPY) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2774
diff changeset
93 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
94 $(MERGE) $(BOOTCMDS)>shell
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
95 $(OS9COPY) shell $@,CMDS
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
96 $(RM) shell
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
97 $(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
98 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
99 $(CPL) $(TEXTFILES_D1) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
100 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
101 $(OS9COPY) $(SUPPORTFILES_D1) $@,.
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
102 $(MOVE) tocgen toctmp
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
103 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
104 $(MOVE) toctmp tocgen
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
105
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
106 $(DISK_2_80D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
107 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
108 $(OS9FORMAT_DS80) -q $@ -n$(DISK_2_80D_NAME)
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
109 $(OS9COPY) $(SUPPORTFILES_D2) $@,.
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
110
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
111 $(DISK_3_80D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
112 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
113 $(OS9FORMAT_DS80) -q $@ -n$(DISK_3_80D_NAME)
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
114 $(OS9COPY) $(SUPPORTFILES_D3) $@,.
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
115
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
116 $(DISK_DW):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
117 $(RM) $@
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_DW_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)>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)>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_DW) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
132 $(OS9RENAME) $@,tOC_dw.txt tOC.txt
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
133 $(OS9COPY) $(SUPPORTFILES_DW) $@,.
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
134 $(MOVE) tocgen toctmp
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
135 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
136 $(MOVE) toctmp tocgen
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
137
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
138 $(DISK_DW_BECKER):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
139 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
140 $(OS9FORMAT_DW) -q $@ -n$(DISK_DW_NAME)
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
141 $(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
142 $(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
143 $(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
144 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
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: 2774
diff changeset
147 $(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
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
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
150 $(RM) shell
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
151 $(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
152 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
153 $(CPL) $(TEXTFILES_DW) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
154 $(OS9RENAME) $@,tOC_dw.txt tOC.txt
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
155 $(OS9COPY) $(SUPPORTFILES_DW) $@,.
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
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
157 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
158 $(MOVE) toctmp tocgen
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
159
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
160 dskcopy: dsk
2857
d5220b220313 Makefiles: Use native cp for copying dsk images
Tormod Volden <debian.tormod@gmail.com>
parents: 2856
diff changeset
161 $(CP) $(DSKS) $(DSKDIR)
2092
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
162
03a0b747b83d King's Quest IV now in repository
boisy
parents:
diff changeset
163 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2203
diff changeset
164 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2203
diff changeset
165
d096a278e068 Added info targets
boisy
parents: 2203
diff changeset
166 info:
d096a278e068 Added info targets
boisy
parents: 2203
diff changeset
167 @$(ECHO) "*** King's Quest IV ***"
d096a278e068 Added info targets
boisy
parents: 2203
diff changeset
168 @$(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
169