annotate 3rdparty/packages/sierra/spacequest2/makefile @ 2849:84d9d5765057 lwtools-port

Makefiles: Call OS9ATTR with multiple files (part 2/2) These were all done with a sed -i line, but have been manually verified.
author Tormod Volden <debian.tormod@gmail.com>
date Fri, 12 Jul 2013 01:01:17 +0200
parents 1868fbf470e7
children 84d284e812cd
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
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
2
2136
9b93f639a2e1 Updated to LSL engine
boisy
parents: 2123
diff changeset
3 vpath %.asm ../objs_lsl
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
4
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
5 DEPENDS = ./makefile
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
6
2136
9b93f639a2e1 Updated to LSL engine
boisy
parents: 2123
diff changeset
7 DISK_1_40D = spacequest2_d1_40d.dsk
9b93f639a2e1 Updated to LSL engine
boisy
parents: 2123
diff changeset
8 DISK_2_40D = spacequest2_d2_40d.dsk
9b93f639a2e1 Updated to LSL engine
boisy
parents: 2123
diff changeset
9 DISK_3_40D = spacequest2_d3_40d.dsk
9b93f639a2e1 Updated to LSL engine
boisy
parents: 2123
diff changeset
10 DISK_80D = spacequest2_80d.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 = spacequest2_dw.dsk
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
12 DISK_DW_BECKER = spacequest2_becker.dsk
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
13
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
14 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_80D) \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
15 $(DISK_DW) $(DISK_DW_BECKER)
2216
d096a278e068 Added info targets
boisy
parents: 2136
diff changeset
16
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
17 DISK_1_40D_NAME = "Space Quest II Disk 1"
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
18 DISK_2_40D_NAME = "Space Quest II Disk 2"
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
19 DISK_3_40D_NAME = "Space Quest II Disk 3"
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
20 DISK_80D_NAME = "Space Quest II"
2724
05b648103e78 Renamed dw3.sb to dwio.sb and rbdw3 to rbdw
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2515
diff changeset
21 DISK_DW_NAME = "Space Quest II"
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
22
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
23 CMDS = sierra mnln scrn shdw tocgen
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
24 MD = $(LEVEL2)/coco3/modules
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
25
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
26 # We make our own bootfile and kernel track
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
27 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
28 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
29 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
30
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
31 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
32 $(MD)/rbf.mn \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
33 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
34 $(MD)/scf.mn $(MD)/vtio.dr \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
35 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
36 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
37 $(MD)/vrn.dr $(MD)/vi.dd \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
38 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
39
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
40 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
41 $(MD)/rbf.mn \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
42 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
43 $(MD)/scf.mn $(MD)/vtio.dr \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
44 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
45 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
46 $(MD)/vrn.dr $(MD)/vi.dd \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
47 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
48
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
49 OS9BOOT_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
50 $(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
51 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
52 $(MD)/scf.mn $(MD)/vtio.dr \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
53 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
54 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
55 $(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
56 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
57
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
58 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
59 $(MD)/rbf.mn \
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
60 $(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
61 $(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
62 $(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
63 $(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
64 $(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
65 $(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
66
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
67 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
68 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
69 $(LEVEL2)/coco3/cmds/setime
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
70
2515
0fe5a04e9d0c Updated
boisy
parents: 2499
diff changeset
71 TEXTFILES_D1 = ../startup tOC_40d.txt
0fe5a04e9d0c Updated
boisy
parents: 2499
diff changeset
72 TEXTFILES = ../startup tOC_80d.txt
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
73
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
74 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
75 vol.1 words.tok
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
76
2099
c0e39b3fc9e9 Updated
boisy
parents: 2085
diff changeset
77 SUPPORTFILES_D2 = object vol.0 vol.2
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
78
2099
c0e39b3fc9e9 Updated
boisy
parents: 2085
diff changeset
79 SUPPORTFILES_D3 = object vol.0 vol.3
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
80
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
81 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
82 vol.1 vol.2 vol.3 words.tok
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
83
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
84 ALLOBJS = $(CMDS)
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
85
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
86 all: $(ALLOBJS)
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
87
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
88 clean: dskclean
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
89 $(RM) $(ALLOBJS)
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
90
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
91 $(DISK_1_40D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
92 $(RM) $@
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
93 $(CD) $(LEVEL2)/coco3; make
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
94 $(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
95 $(MERGE) $(OS9BOOT_40D)>os9boot
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
96 $(MERGE) $(KERNEL)>kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
97 $(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
98 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
99 $(MAKDIR) $@,CMDS
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
100 $(CP) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2774
diff changeset
101 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
102 $(MERGE) $(BOOTCMDS)>shell
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
103 $(CP) shell $@,CMDS
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
104 $(RM) shell
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
105 $(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
106 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
107 $(CPL) $(TEXTFILES_D1) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
108 $(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
109 $(CP) $(SUPPORTFILES_D1) $@,.
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
110 $(MOVE) tocgen toctmp
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
111 tocgen $@,tOC.txt $@,tOC
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
112 $(MOVE) toctmp tocgen
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
113
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
114 $(DISK_2_40D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
115 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
116 $(OS9FORMAT_DS40) -q $@ -n$(DISK_2_40D_NAME)
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
117 $(CP) $(SUPPORTFILES_D2) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
118
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
119 $(DISK_3_40D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
120 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
121 $(OS9FORMAT_DS40) -q $@ -n$(DISK_3_40D_NAME)
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
122 $(CP) $(SUPPORTFILES_D3) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
123
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
124 $(DISK_80D):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
125 $(RM) $@
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
126 $(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
127 $(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
128 $(MERGE) $(OS9BOOT_80D)>os9boot
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
129 $(MERGE) $(KERNEL)>kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
130 $(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
131 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
132 $(MAKDIR) $@,CMDS
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
133 $(CP) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2774
diff changeset
134 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
135 $(MERGE) $(BOOTCMDS)>shell
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
136 $(CP) shell $@,CMDS
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
137 $(RM) shell
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
138 $(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
139 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
140 $(CPL) $(TEXTFILES) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
141 $(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
142 $(CP) $(SUPPORTFILES) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
143 $(MOVE) tocgen toctmp
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
144 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
145 $(MOVE) toctmp tocgen
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
146
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
147 $(DISK_DW):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
148 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
149 $(CD) $(LEVEL2)/coco3; make
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
150 $(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
151 $(MERGE) $(OS9BOOT_DW)>os9boot
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
152 $(MERGE) $(KERNEL_DW)>kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
153 $(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
154 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
155 $(MAKDIR) $@,CMDS
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
156 $(CP) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2774
diff changeset
157 $(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
158 $(MERGE) $(BOOTCMDS)>shell
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
159 $(CP) shell $@,CMDS
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
160 $(RM) shell
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
161 $(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
162 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
163 $(CPL) $(TEXTFILES) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
164 $(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
165 $(MOVE) tocgen toctmp
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
166 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
167 $(MOVE) toctmp tocgen
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
168 $(CP) $(SUPPORTFILES) $@,.
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
169
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
170 $(DISK_DW_BECKER):
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
171 $(RM) $@
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
172 $(CD) $(LEVEL2)/coco3; make
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
173 $(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
174 $(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
175 $(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
176 $(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
177 $(RM) os9boot kernel
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
178 $(MAKDIR) $@,CMDS
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
179 $(CP) $(CMDS) $@,CMDS
2849
84d9d5765057 Makefiles: Call OS9ATTR with multiple files (part 2/2)
Tormod Volden <debian.tormod@gmail.com>
parents: 2774
diff changeset
180 $(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
181 $(MERGE) $(BOOTCMDS)>shell
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
182 $(CP) shell $@,CMDS
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
183 $(RM) shell
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
184 $(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
185 $(OS9RENAME) $@,CMDS/sierra AutoEx
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
186 $(CPL) $(TEXTFILES) $@,.
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
187 $(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
188 $(MOVE) tocgen toctmp
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
189 tocgen $@,tOC.txt $@,tOC
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
190 $(MOVE) toctmp tocgen
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
191 $(CP) $(SUPPORTFILES) $@,.
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
192
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
193 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
194
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
195 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2136
diff changeset
196 $(CP) $(DSKS) $(DSKDIR)
2085
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
197
5b4802bc4a61 Added makefile
boisy
parents:
diff changeset
198 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2136
diff changeset
199 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2136
diff changeset
200
d096a278e068 Added info targets
boisy
parents: 2136
diff changeset
201 info:
d096a278e068 Added info targets
boisy
parents: 2136
diff changeset
202 @$(ECHO) "*** Space Quest II ***"
d096a278e068 Added info targets
boisy
parents: 2136
diff changeset
203 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)