annotate 3rdparty/packages/sierra/spacequest1/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
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
2
2135
f3b0e8f2e21c Updated to LSL engine
boisy
parents: 2123
diff changeset
3 vpath %.asm ../objs_lsl
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
4
8c8d07d2226b Updated
boisy
parents:
diff changeset
5 DEPENDS = ./makefile
8c8d07d2226b Updated
boisy
parents:
diff changeset
6
2135
f3b0e8f2e21c Updated to LSL engine
boisy
parents: 2123
diff changeset
7 DISK_1_40D = spacequest1_d1_40d.dsk
f3b0e8f2e21c Updated to LSL engine
boisy
parents: 2123
diff changeset
8 DISK_2_40D = spacequest1_d2_40d.dsk
f3b0e8f2e21c Updated to LSL engine
boisy
parents: 2123
diff changeset
9 DISK_80D = spacequest1_80d.dsk
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
10 DISK_DW = spacequest1_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 = spacequest1_becker.dsk
2083
f6697985fa37 Updated
boisy
parents: 2074
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_40D) $(DISK_2_40D) $(DISK_80D) $(DISK_DW) $(DISK_DW_BECKER)
2216
d096a278e068 Added info targets
boisy
parents: 2135
diff changeset
14
2083
f6697985fa37 Updated
boisy
parents: 2074
diff changeset
15 DISK_1_40D_NAME = "Space Quest I Disk 1"
f6697985fa37 Updated
boisy
parents: 2074
diff changeset
16 DISK_2_40D_NAME = "Space Quest I Disk 2"
f6697985fa37 Updated
boisy
parents: 2074
diff changeset
17 DISK_80D_NAME = "Space Quest I"
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
18 DISK_DW_NAME = "Space Quest I"
2083
f6697985fa37 Updated
boisy
parents: 2074
diff changeset
19
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
20 CMDS = sierra mnln scrn shdw tocgen
8c8d07d2226b Updated
boisy
parents:
diff changeset
21 MD = $(LEVEL2)/coco3/modules
8c8d07d2226b Updated
boisy
parents:
diff changeset
22
8c8d07d2226b Updated
boisy
parents:
diff changeset
23 # We make our own bootfile and kernel track
8c8d07d2226b Updated
boisy
parents:
diff changeset
24 KERNEL = $(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
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
28 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
8c8d07d2226b Updated
boisy
parents:
diff changeset
29 $(MD)/rbf.mn \
8c8d07d2226b Updated
boisy
parents:
diff changeset
30 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
8c8d07d2226b Updated
boisy
parents:
diff changeset
31 $(MD)/scf.mn $(MD)/vtio.dr \
8c8d07d2226b Updated
boisy
parents:
diff changeset
32 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
8c8d07d2226b Updated
boisy
parents:
diff changeset
33 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
8c8d07d2226b Updated
boisy
parents:
diff changeset
34 $(MD)/vrn.dr $(MD)/vi.dd \
8c8d07d2226b Updated
boisy
parents:
diff changeset
35 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
8c8d07d2226b Updated
boisy
parents:
diff changeset
36
8c8d07d2226b Updated
boisy
parents:
diff changeset
37 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
8c8d07d2226b Updated
boisy
parents:
diff changeset
38 $(MD)/rbf.mn \
8c8d07d2226b Updated
boisy
parents:
diff changeset
39 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
8c8d07d2226b Updated
boisy
parents:
diff changeset
40 $(MD)/scf.mn $(MD)/vtio.dr \
8c8d07d2226b Updated
boisy
parents:
diff changeset
41 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
8c8d07d2226b Updated
boisy
parents:
diff changeset
42 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
8c8d07d2226b Updated
boisy
parents:
diff changeset
43 $(MD)/vrn.dr $(MD)/vi.dd \
8c8d07d2226b Updated
boisy
parents:
diff changeset
44 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
8c8d07d2226b 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 OS9BOOT_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
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 \
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
49 $(MD)/scf.mn $(MD)/vtio.dr \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
50 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
51 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
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
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
54
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
55 OS9BOOT_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 \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
57 $(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
58 $(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
59 $(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
60 $(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
61 $(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
62 $(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
63
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
64 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
8c8d07d2226b Updated
boisy
parents:
diff changeset
65 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
8c8d07d2226b Updated
boisy
parents:
diff changeset
66 $(LEVEL2)/coco3/cmds/setime
8c8d07d2226b Updated
boisy
parents:
diff changeset
67
2515
0fe5a04e9d0c Updated
boisy
parents: 2499
diff changeset
68 TEXTFILES_D1 = ../startup tOC_40d.txt
0fe5a04e9d0c Updated
boisy
parents: 2499
diff changeset
69 TEXTFILES = ../startup tOC_80d.txt
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
70
2083
f6697985fa37 Updated
boisy
parents: 2074
diff changeset
71 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
72 vol.1 words.tok
8c8d07d2226b Updated
boisy
parents:
diff changeset
73
2099
c0e39b3fc9e9 Updated
boisy
parents: 2083
diff changeset
74 SUPPORTFILES_D2 = object vol.0 vol.2
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
75
2083
f6697985fa37 Updated
boisy
parents: 2074
diff changeset
76 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
77 vol.1 vol.2 words.tok
8c8d07d2226b Updated
boisy
parents:
diff changeset
78
8c8d07d2226b Updated
boisy
parents:
diff changeset
79 ALLOBJS = $(CMDS)
8c8d07d2226b Updated
boisy
parents:
diff changeset
80
8c8d07d2226b Updated
boisy
parents:
diff changeset
81 all: $(ALLOBJS)
8c8d07d2226b Updated
boisy
parents:
diff changeset
82
8c8d07d2226b Updated
boisy
parents:
diff changeset
83 clean: dskclean
8c8d07d2226b Updated
boisy
parents:
diff changeset
84 $(RM) $(ALLOBJS)
8c8d07d2226b Updated
boisy
parents:
diff changeset
85
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
86 $(DISK_1_40D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
87 $(RM) $@
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
88 $(CD) $(LEVEL2)/coco3; make
2083
f6697985fa37 Updated
boisy
parents: 2074
diff changeset
89 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME)
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
90 $(MERGE) $(OS9BOOT_40D)>os9boot
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
91 $(MERGE) $(KERNEL)>kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
92 $(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
93 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
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: 2774
diff changeset
96 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2074
8c8d07d2226b 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
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
99 $(RM) shell
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
100 $(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
101 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
102 $(CPL) $(TEXTFILES_D1) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
103 $(OS9RENAME) $@,tOC_40d.txt tOC.txt
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
104 $(MOVE) tocgen toctmp
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
105 tocgen $@,tOC.txt $@,tOC
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
106 $(MOVE) toctmp tocgen
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
107 $(OS9COPY) $(SUPPORTFILES_D1) $@,.
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
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
109 $(DISK_2_40D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
110 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
111 $(OS9FORMAT_DS40) -q $@ -n$(DISK_2_40D_NAME)
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
112 $(OS9COPY) $(SUPPORTFILES_D2) $@,.
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
113
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
114 $(DISK_80D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
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
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
117 $(OS9FORMAT_DS80) -q $@ -n$(DISK_80D_NAME)
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
118 $(MERGE) $(OS9BOOT_80D)>os9boot
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
119 $(MERGE) $(KERNEL)>kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
120 $(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
121 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
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: 2774
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
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
128 $(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
129 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
130 $(CPL) $(TEXTFILES) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
131 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
132 $(MOVE) tocgen toctmp
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
133 tocgen $@,tOC.txt $@,tOC
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
134 $(MOVE) toctmp tocgen
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
135 $(OS9COPY) $(SUPPORTFILES) $@,.
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
136
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
137 $(DISK_DW):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
138 $(RM) $@
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
139 $(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
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) $(OS9BOOT_DW)>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)>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))
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
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
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
150 $(RM) shell
2774
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) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
154 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
155 $(MOVE) tocgen toctmp
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
156 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
157 $(MOVE) toctmp tocgen
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
158 $(OS9COPY) $(SUPPORTFILES) $@,.
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
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 $(DISK_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$(DISK_DW_NAME)
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
164 $(MERGE) $(OS9BOOT_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: 2774
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
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
178 $(MOVE) tocgen toctmp
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
179 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
180 $(MOVE) toctmp tocgen
2856
84d284e812cd Makefiles: Rename CP to OS9COPY
Tormod Volden <debian.tormod@gmail.com>
parents: 2849
diff changeset
181 $(OS9COPY) $(SUPPORTFILES) $@,.
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
182
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
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
2074
8c8d07d2226b 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)
2074
8c8d07d2226b Updated
boisy
parents:
diff changeset
187
8c8d07d2226b Updated
boisy
parents:
diff changeset
188 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2135
diff changeset
189 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2135
diff changeset
190
d096a278e068 Added info targets
boisy
parents: 2135
diff changeset
191 info:
d096a278e068 Added info targets
boisy
parents: 2135
diff changeset
192 @$(ECHO) "*** Space Quest I ***"
d096a278e068 Added info targets
boisy
parents: 2135
diff changeset
193 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)
d096a278e068 Added info targets
boisy
parents: 2135
diff changeset
194