annotate 3rdparty/packages/sierra/kingsquest2/makefile @ 3054:22ddd48b4ec2

level1 krn: Fix scheduler bug that only affected 6309 The original 6809 binary was correct, but it was disassembled and interpreted wrongly, so that reassembly went wrong on 6309.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 25 Jan 2015 22:36:02 +0100
parents 13885d9433d5
children dd553bb32ebb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2774
1868fbf470e7 Merged lwtools-port (2773:ce3dba57003b) and mainline (2772:0a3f4d8ea6d5)
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2724
diff changeset
1 include ../../../../rules.mak
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
2
2130
7d261213a689 Updated to LSL engine
boisy
parents: 2123
diff changeset
3 vpath %.asm ../objs_lsl
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
4
f4759cf9ae56 Updated
boisy
parents:
diff changeset
5 DEPENDS = ./makefile
f4759cf9ae56 Updated
boisy
parents:
diff changeset
6
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
7 DISK_1_40D = kingsquest2_d1_40d.dsk
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
8 DISK_2_40D = kingsquest2_d2_40d.dsk
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
9 DISK_80D = kingsquest2_80d.dsk
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
10 DSK_DW = kingsquest2_dw.dsk
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
11 DSK_DW_BECKER = kingsquest2_becker.dsk
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
12
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
13 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_80D) $(DSK_DW) $(DSK_DW_BECKER)
2216
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
14
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
15 DISK_1_40D_NAME = "King's Quest II Disk 1"
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
16 DISK_2_40D_NAME = "King's Quest II Disk 2"
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
17 DISK_80D_NAME = "King's Quest II"
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
18 DSK_DW_NAME = "King's Quest II"
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
19
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
20 CMDS = sierra mnln scrn shdw tocgen
f4759cf9ae56 Updated
boisy
parents:
diff changeset
21 MD = $(LEVEL2)/coco3/modules
f4759cf9ae56 Updated
boisy
parents:
diff changeset
22
f4759cf9ae56 Updated
boisy
parents:
diff changeset
23 # We make our own bootfile and kernel track
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
24 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
25 KERNEL_DW = $(MD)/rel_32 $(MD)/boot_dw $(MD)/krn
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
26 KERNEL_DW_BECKER = $(MD)/rel_32 $(MD)/boot_dw_becker $(MD)/krn
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
27
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
28 BOOTFILE_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
29 $(MD)/rbf.mn \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
30 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
31 $(MD)/scf.mn $(MD)/vtio.dr \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
32 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
33 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
34 $(MD)/vrn.dr $(MD)/vi.dd \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
35 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
f4759cf9ae56 Updated
boisy
parents:
diff changeset
36
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
37 BOOTFILE_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
38 $(MD)/rbf.mn \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
39 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
40 $(MD)/scf.mn $(MD)/vtio.dr \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
41 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
42 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
43 $(MD)/vrn.dr $(MD)/vi.dd \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
44 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
f4759cf9ae56 Updated
boisy
parents:
diff changeset
45
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
46 BOOTFILE_DW = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
47 $(MD)/rbf.mn \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
48 $(MD)/rbdw.dr $(MD)/dwio.sb $(MD)/ddx0.dd \
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
49 $(MD)/scf.mn $(MD)/vtio.dr \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
50 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
51 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
52 $(MD)/vrn.dr $(MD)/vi.dd \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
53 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
54
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
55 BOOTFILE_DW_BECKER = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
56 $(MD)/rbf.mn \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
57 $(MD)/rbdw.dr $(MD)/dwio_becker.sb $(MD)/ddx0.dd \
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
58 $(MD)/scf.mn $(MD)/vtio.dr \
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
59 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
60 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
61 $(MD)/vrn.dr $(MD)/vi.dd \
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
62 $(MD)/clock_60hz $(MD)/clock2_dw $(MD)/sysgo_dd
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
63
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
64 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
65 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
f4759cf9ae56 Updated
boisy
parents:
diff changeset
66 $(LEVEL2)/coco3/cmds/setime
f4759cf9ae56 Updated
boisy
parents:
diff changeset
67
2515
0fe5a04e9d0c Updated
boisy
parents: 2495
diff changeset
68 TEXTFILES_D1 = ../startup tOC_40d.txt
0fe5a04e9d0c Updated
boisy
parents: 2495
diff changeset
69 TEXTFILES = ../startup tOC_80d.txt
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
70
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
71 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
72 vol.1 words.tok
f4759cf9ae56 Updated
boisy
parents:
diff changeset
73
2099
c0e39b3fc9e9 Updated
boisy
parents: 2080
diff changeset
74 SUPPORTFILES_D2 = object vol.0 vol.2
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
75
2079
dbdf6dda765c Updated
boisy
parents: 2072
diff changeset
76 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
77 vol.1 vol.2 words.tok
f4759cf9ae56 Updated
boisy
parents:
diff changeset
78
f4759cf9ae56 Updated
boisy
parents:
diff changeset
79 ALLOBJS = $(CMDS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
80
f4759cf9ae56 Updated
boisy
parents:
diff changeset
81 all: $(ALLOBJS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
82
f4759cf9ae56 Updated
boisy
parents:
diff changeset
83 clean: dskclean
f4759cf9ae56 Updated
boisy
parents:
diff changeset
84 $(RM) $(ALLOBJS)
f4759cf9ae56 Updated
boisy
parents:
diff changeset
85
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
86 $(DISK_1_40D):
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
87 $(RM) $@
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
88 $(CD) $(LEVEL2)/coco3; make
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
89 $(OS9FORMAT_DS40) -q $@ -n$(DISK_1_40D_NAME)
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
90 $(MERGE) $(BOOTFILE_40D)>os9boot
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
91 $(MERGE) $(KERNEL_FLOPPY)>kernel
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
92 $(OS9GEN) $@ -b=os9boot -t=kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
93 $(RM) os9boot kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
94 $(MAKDIR) $@,CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
95 $(OS9COPY) $(CMDS) $@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
96 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
97 $(MERGE) $(BOOTCMDS)>shell
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
98 $(OS9COPY) shell $@,CMDS
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
99 $(RM) shell
2967
1c81c87c77d4 makefiles: Use OS9ATTR_EXEC macro when possible
Tormod Volden <debian.tormod@gmail.com>
parents: 2927
diff changeset
100 $(OS9ATTR_EXEC) $@,CMDS/shell
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
101 $(OS9RENAME) $@,CMDS/sierra AutoEx
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
102 $(CPL) $(TEXTFILES_D1) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
103 $(OS9RENAME) $@,tOC_40d.txt tOC.txt
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
104 $(OS9COPY) $(SUPPORTFILES_D1) $@,.
2927
9d256fa9ba31 sierra makefiles: Add comment about hiding tocgen file temporarily
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
105 $(MOVE) tocgen toctmp # to not confuse Windows hosts
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
106 tocgen $@,tOC.txt $@,tOC
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
107 $(MOVE) toctmp tocgen
2123
82081ff99be5 Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents: 2099
diff changeset
108
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
109 $(DISK_2_40D):
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
110 $(RM) $@
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
111 $(OS9FORMAT_DS40) -q $@ -n$(DISK_2_40D_NAME)
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
112 $(OS9COPY) $(SUPPORTFILES_D2) $@,.
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
113
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
114 $(DISK_80D):
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
115 $(RM) $@
2123
82081ff99be5 Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents: 2099
diff changeset
116 $(CD) $(LEVEL2)/coco3; make
2968
13885d9433d5 3rdparty: Further harmonize makefiles
Tormod Volden <debian.tormod@gmail.com>
parents: 2967
diff changeset
117 $(OS9FORMAT_DS80) -q $@ -n$(DISK_80D_NAME)
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
118 $(MERGE) $(BOOTFILE_80D)>os9boot
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
119 $(MERGE) $(KERNEL_FLOPPY)>kernel
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
120 $(OS9GEN) $@ -b=os9boot -t=kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
121 $(RM) os9boot kernel
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
122 $(MAKDIR) $@,CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
123 $(OS9COPY) $(CMDS) $@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
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
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
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
2967
1c81c87c77d4 makefiles: Use OS9ATTR_EXEC macro when possible
Tormod Volden <debian.tormod@gmail.com>
parents: 2927
diff changeset
128 $(OS9ATTR_EXEC) $@,CMDS/shell
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
129 $(OS9RENAME) $@,CMDS/sierra AutoEx
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
130 $(CPL) $(TEXTFILES) $@,.
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
131 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
132 $(OS9COPY) $(SUPPORTFILES) $@,.
2927
9d256fa9ba31 sierra makefiles: Add comment about hiding tocgen file temporarily
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
133 $(MOVE) tocgen toctmp # to not confuse Windows hosts
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
134 tocgen $@,tOC.txt $@,tOC
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
135 $(MOVE) toctmp tocgen
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
136
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
137 $(DSK_DW):
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
138 $(RM) $@
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
139 $(CD) $(LEVEL2)/coco3; make
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
140 $(OS9FORMAT_DW) -q $@ -n$(DSK_DW_NAME)
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
141 $(MERGE) $(BOOTFILE_DW)>os9boot
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
142 $(MERGE) $(KERNEL_DW)>kernel
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
143 $(OS9GEN) $@ -b=os9boot -t=kernel
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
144 $(RM) os9boot kernel
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
145 $(MAKDIR) $@,CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
146 $(OS9COPY) $(CMDS) $@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
147 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
148 $(MERGE) $(BOOTCMDS)>shell
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
149 $(OS9COPY) shell $@,CMDS
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
150 $(RM) shell
2967
1c81c87c77d4 makefiles: Use OS9ATTR_EXEC macro when possible
Tormod Volden <debian.tormod@gmail.com>
parents: 2927
diff changeset
151 $(OS9ATTR_EXEC) $@,CMDS/shell
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
152 $(OS9RENAME) $@,CMDS/sierra AutoEx
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
153 $(CPL) $(TEXTFILES) $@,.
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
154 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
155 $(OS9COPY) $(SUPPORTFILES) $@,.
2927
9d256fa9ba31 sierra makefiles: Add comment about hiding tocgen file temporarily
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
156 $(MOVE) tocgen toctmp # to not confuse Windows hosts
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
157 tocgen $@,tOC.txt $@,tOC
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
158 $(MOVE) toctmp tocgen
2495
9296f92ce18c Permits DW3 build to work. RG
robertgault
parents: 2228
diff changeset
159
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
160 $(DSK_DW_BECKER):
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
161 $(RM) $@
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
162 $(CD) $(LEVEL2)/coco3; make
2868
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
163 $(OS9FORMAT_DW) -q $@ -n$(DSK_DW_NAME)
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
164 $(MERGE) $(BOOTFILE_DW_BECKER)>os9boot
cfa46960b6bd makefiles: Rename DW3 to DW all over
Tormod Volden <debian.tormod@gmail.com>
parents: 2756
diff changeset
165 $(MERGE) $(KERNEL_DW_BECKER)>kernel
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
166 $(OS9GEN) $@ -b=os9boot -t=kernel
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
167 $(RM) os9boot kernel
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
168 $(MAKDIR) $@,CMDS
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
169 $(OS9COPY) $(CMDS) $@,CMDS
2873
46c80d4b0de1 makefiles: Factor out OS9ATTR_* command when using foreach()
Tormod Volden <debian.tormod@gmail.com>
parents: 2869
diff changeset
170 $(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
171 $(MERGE) $(BOOTCMDS)>shell
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
172 $(OS9COPY) shell $@,CMDS
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
173 $(RM) shell
2967
1c81c87c77d4 makefiles: Use OS9ATTR_EXEC macro when possible
Tormod Volden <debian.tormod@gmail.com>
parents: 2927
diff changeset
174 $(OS9ATTR_EXEC) $@,CMDS/shell
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
175 $(OS9RENAME) $@,CMDS/sierra AutoEx
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
176 $(CPL) $(TEXTFILES) $@,.
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
177 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
2869
cfa6222348f7 makefiles: Separate OS9COPY and CP macros
Tormod Volden <debian.tormod@gmail.com>
parents: 2868
diff changeset
178 $(OS9COPY) $(SUPPORTFILES) $@,.
2927
9d256fa9ba31 sierra makefiles: Add comment about hiding tocgen file temporarily
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
179 $(MOVE) tocgen toctmp # to not confuse Windows hosts
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
180 tocgen $@,tOC.txt $@,tOC
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
181 $(MOVE) toctmp tocgen
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
182
2228
77f41e861afc Udated makefiles to make DW3 disks
boisy
parents: 2216
diff changeset
183 dsk: all $(DSKS)
2123
82081ff99be5 Redid makefiles, separating 40 and 80 track disk images. Also added 80 track disk images to some games that didn't have one.
boisy
parents: 2099
diff changeset
184
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
185 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
186 $(CP) $(DSKS) $(DSKDIR)
2072
f4759cf9ae56 Updated
boisy
parents:
diff changeset
187
f4759cf9ae56 Updated
boisy
parents:
diff changeset
188 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
189 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
190
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
191 info:
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
192 @$(ECHO) "*** King's Quest II ***"
d096a278e068 Added info targets
boisy
parents: 2130
diff changeset
193 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)
2747
7aa39bea428b Fixed the tOC_80d.txt file related to manhunter1.
drencor-xeen
parents: 2515
diff changeset
194