annotate 3rdparty/packages/sierra/spacequest0/makefile @ 2515:0fe5a04e9d0c

Updated
author boisy
date Tue, 06 Apr 2010 13:33:37 +0000
parents 5a29eed1ca2d
children 05b648103e78 1ff9d261b398
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
1 ifndef NITROS9DIR
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
2 NITROS9DIR = $(HOME)/nitros9
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
3 endif
2138
boisy
parents:
diff changeset
4 include $(NITROS9DIR)/rules.mak
boisy
parents:
diff changeset
5
boisy
parents:
diff changeset
6 vpath %.asm ../objs_lsl
boisy
parents:
diff changeset
7
boisy
parents:
diff changeset
8 DEPENDS = ./makefile
boisy
parents:
diff changeset
9
boisy
parents:
diff changeset
10 DISK_1_40D = spacequest0_d1_40d.dsk
boisy
parents:
diff changeset
11 DISK_2_40D = spacequest0_d2_40d.dsk
boisy
parents:
diff changeset
12 DISK_3_40D = spacequest0_d3_40d.dsk
boisy
parents:
diff changeset
13 DISK_1_80D = spacequest0_d1_80d.dsk
boisy
parents:
diff changeset
14 DISK_2_80D = spacequest0_d2_80d.dsk
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
15 DISK_DW3 = spacequest0_dw3.dsk
2138
boisy
parents:
diff changeset
16
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
17 DSKS = $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_1_80D) $(DISK_2_80D) $(DISK_DW3)
2216
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
18
2138
boisy
parents:
diff changeset
19 DISK_1_40D_NAME = "Space Quest 0 Disk 1"
boisy
parents:
diff changeset
20 DISK_2_40D_NAME = "Space Quest 0 Disk 2"
boisy
parents:
diff changeset
21 DISK_3_40D_NAME = "Space Quest 0 Disk 3"
boisy
parents:
diff changeset
22 DISK_1_80D_NAME = "Space Quest 0 Disk 1"
boisy
parents:
diff changeset
23 DISK_2_80D_NAME = "Space Quest 0 Disk 2"
2511
5a29eed1ca2d Updated
boisy
parents: 2499
diff changeset
24 DISK_DW3_NAME = "Space Quest 0"
2138
boisy
parents:
diff changeset
25
boisy
parents:
diff changeset
26 CMDS = sierra mnln scrn shdw tocgen
boisy
parents:
diff changeset
27 MD = $(LEVEL2)/coco3/modules
boisy
parents:
diff changeset
28
boisy
parents:
diff changeset
29 # We make our own bootfile and kernel track
boisy
parents:
diff changeset
30 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
31 KERNEL_DW3 = $(MD)/rel_32 $(MD)/boot_dw3 $(MD)/krn
2138
boisy
parents:
diff changeset
32 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
boisy
parents:
diff changeset
33 $(MD)/rbf.mn \
boisy
parents:
diff changeset
34 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
boisy
parents:
diff changeset
35 $(MD)/scf.mn $(MD)/vtio.dr \
boisy
parents:
diff changeset
36 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
boisy
parents:
diff changeset
37 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
boisy
parents:
diff changeset
38 $(MD)/vrn.dr $(MD)/vi.dd \
boisy
parents:
diff changeset
39 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
boisy
parents:
diff changeset
40
boisy
parents:
diff changeset
41 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
boisy
parents:
diff changeset
42 $(MD)/rbf.mn \
boisy
parents:
diff changeset
43 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
boisy
parents:
diff changeset
44 $(MD)/scf.mn $(MD)/vtio.dr \
boisy
parents:
diff changeset
45 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
boisy
parents:
diff changeset
46 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
boisy
parents:
diff changeset
47 $(MD)/vrn.dr $(MD)/vi.dd \
boisy
parents:
diff changeset
48 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
boisy
parents:
diff changeset
49
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
50 OS9BOOT_DW3 = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
51 $(MD)/rbf.mn \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
52 $(MD)/rbdw3.dr $(MD)/dw3.sb $(MD)/ddx0.dd \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
53 $(MD)/scf.mn $(MD)/vtio.dr \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
54 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
55 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
56 $(MD)/vrn.dr $(MD)/vi.dd \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
57 $(MD)/clock_60hz $(MD)/clock2_dw3 $(MD)/sysgo_dd
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
58
2138
boisy
parents:
diff changeset
59 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
boisy
parents:
diff changeset
60 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
boisy
parents:
diff changeset
61 $(LEVEL2)/coco3/cmds/setime
boisy
parents:
diff changeset
62
2515
0fe5a04e9d0c Updated
boisy
parents: 2511
diff changeset
63 TEXTFILES_D1 = ../startup tOC_40d.txt
0fe5a04e9d0c Updated
boisy
parents: 2511
diff changeset
64 TEXTFILES = ../startup tOC_80d.txt
0fe5a04e9d0c Updated
boisy
parents: 2511
diff changeset
65 TEXTFILES_DW3 = ../startup tOC_dw3.txt
2138
boisy
parents:
diff changeset
66
boisy
parents:
diff changeset
67 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
boisy
parents:
diff changeset
68 vol.1 words.tok
boisy
parents:
diff changeset
69
boisy
parents:
diff changeset
70 SUPPORTFILES_D2 = object vol.0 vol.2
boisy
parents:
diff changeset
71
boisy
parents:
diff changeset
72 SUPPORTFILES_D3 = object vol.0 vol.3
boisy
parents:
diff changeset
73
boisy
parents:
diff changeset
74 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
boisy
parents:
diff changeset
75 vol.1 vol.2 words.tok
boisy
parents:
diff changeset
76
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
77 SUPPORTFILES_DW3 = logDir object picDir sndDir viewDir vol.0 \
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
78 vol.1 vol.2 vol.3 words.tok
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
79
2138
boisy
parents:
diff changeset
80 ALLOBJS = $(CMDS)
boisy
parents:
diff changeset
81
boisy
parents:
diff changeset
82 all: $(ALLOBJS)
boisy
parents:
diff changeset
83
boisy
parents:
diff changeset
84 clean: dskclean
boisy
parents:
diff changeset
85 $(RM) $(ALLOBJS)
boisy
parents:
diff changeset
86
boisy
parents:
diff changeset
87 dsk_40d: all
boisy
parents:
diff changeset
88 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D)
boisy
parents:
diff changeset
89 $(CD) $(LEVEL2)/coco3; make
boisy
parents:
diff changeset
90 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME)
boisy
parents:
diff changeset
91 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME)
boisy
parents:
diff changeset
92 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME)
boisy
parents:
diff changeset
93 $(MERGE) $(OS9BOOT_40D)>os9boot_40d
boisy
parents:
diff changeset
94 $(MERGE) $(KERNEL)>kernel_1773
boisy
parents:
diff changeset
95 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773
boisy
parents:
diff changeset
96 $(RM) os9boot_40d kernel_1773
boisy
parents:
diff changeset
97 $(MAKDIR) $(DISK_1_40D),CMDS
boisy
parents:
diff changeset
98 $(CP) $(CMDS) $(DISK_1_40D),CMDS
boisy
parents:
diff changeset
99 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);)
boisy
parents:
diff changeset
100 $(MERGE) $(BOOTCMDS)>shell
boisy
parents:
diff changeset
101 $(CP) shell $(DISK_1_40D),CMDS
boisy
parents:
diff changeset
102 $(RM) shell
boisy
parents:
diff changeset
103 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r
boisy
parents:
diff changeset
104 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx
boisy
parents:
diff changeset
105 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),.
boisy
parents:
diff changeset
106 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
107 $(MOVE) tocgen toctmp
2138
boisy
parents:
diff changeset
108 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
109 $(MOVE) toctmp tocgen
2138
boisy
parents:
diff changeset
110 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),.
boisy
parents:
diff changeset
111 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),.
boisy
parents:
diff changeset
112 $(CP) $(SUPPORTFILES_D3) $(DISK_3_40D),.
boisy
parents:
diff changeset
113
boisy
parents:
diff changeset
114 dsk_80d: all
boisy
parents:
diff changeset
115 $(RM) $(DISK_1_80D) $(DISK_2_80D)
boisy
parents:
diff changeset
116 $(CD) $(LEVEL2)/coco3; make
boisy
parents:
diff changeset
117 $(OS9FORMAT_DS80) -q $(DISK_1_80D) -n$(DISK_1_80D_NAME)
boisy
parents:
diff changeset
118 $(OS9FORMAT_DS80) -q $(DISK_2_80D) -n$(DISK_2_80D_NAME)
boisy
parents:
diff changeset
119 $(MERGE) $(OS9BOOT_80D)>os9boot_80d
boisy
parents:
diff changeset
120 $(MERGE) $(KERNEL)>kernel_1773
boisy
parents:
diff changeset
121 $(OS9GEN) $(DISK_1_80D) -b=os9boot_80d -t=kernel_1773
boisy
parents:
diff changeset
122 $(RM) os9boot_80d kernel_1773
boisy
parents:
diff changeset
123 $(MAKDIR) $(DISK_1_80D),CMDS
boisy
parents:
diff changeset
124 $(CP) $(CMDS) $(DISK_1_80D),CMDS
boisy
parents:
diff changeset
125 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_80D),CMDS/$(file);)
boisy
parents:
diff changeset
126 $(MERGE) $(BOOTCMDS)>shell
boisy
parents:
diff changeset
127 $(CP) shell $(DISK_1_80D),CMDS
boisy
parents:
diff changeset
128 $(RM) shell
boisy
parents:
diff changeset
129 $(OS9ATTR) $(DISK_1_80D),CMDS/shell -e -pe -pr -e -w -r
boisy
parents:
diff changeset
130 $(OS9RENAME) $(DISK_1_80D),CMDS/sierra AutoEx
boisy
parents:
diff changeset
131 $(CPL) $(TEXTFILES) $(DISK_1_80D),.
boisy
parents:
diff changeset
132 $(OS9RENAME) $(DISK_1_80D),tOC_80d.txt tOC.txt
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
133 $(MOVE) tocgen toctmp
2138
boisy
parents:
diff changeset
134 tocgen $(DISK_1_80D),tOC.txt $(DISK_1_80D),tOC
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
135 $(MOVE) toctmp tocgen
2138
boisy
parents:
diff changeset
136 $(CP) $(SUPPORTFILES) $(DISK_1_80D),.
boisy
parents:
diff changeset
137 $(CP) $(SUPPORTFILES_D3) $(DISK_2_80D),.
boisy
parents:
diff changeset
138
2499
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
139 dsk_dw3: all
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
140 $(RM) $(DISK_DW3)
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
141 $(CD) $(LEVEL2)/coco3; make
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
142 $(OS9FORMAT_DW3) -q $(DISK_DW3) -n$(DISK_DW3_NAME)
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
143 $(MERGE) $(OS9BOOT_DW3)>os9boot_dw3
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
144 $(MERGE) $(KERNEL_DW3)>kernel_dw3
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
145 $(OS9GEN) $(DISK_DW3) -b=os9boot_dw3 -t=kernel_dw3
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
146 $(RM) os9boot_dw3 kernel_dw3
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
147 $(MAKDIR) $(DISK_DW3),CMDS
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
148 $(CP) $(CMDS) $(DISK_DW3),CMDS
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
149 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_DW3),CMDS/$(file);)
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
150 $(MERGE) $(BOOTCMDS)>shell
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
151 $(CP) shell $(DISK_DW3),CMDS
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
152 $(RM) shell
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
153 $(OS9ATTR) $(DISK_DW3),CMDS/shell -e -pe -pr -e -w -r
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
154 $(OS9RENAME) $(DISK_DW3),CMDS/sierra AutoEx
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
155 $(CPL) $(TEXTFILES_DW3) $(DISK_DW3),.
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
156 $(OS9RENAME) $(DISK_DW3),tOC_dw3.txt tOC.txt
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
157 $(RM) tocgen
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
158 tocgen $(DISK_DW3),tOC.txt $(DISK_DW3),tOC
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
159 $(CP) $(SUPPORTFILES) $(DISK_DW3),.
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
160
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
161 dsk: dsk_40d dsk_80d dsk_dw3
2033e76ae3c0 Permits DW3 build to work. RG
robertgault
parents: 2216
diff changeset
162 $(CD) $(LEVEL2)/coco3; make
2138
boisy
parents:
diff changeset
163
boisy
parents:
diff changeset
164 dskcopy: dsk
2216
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
165 $(CP) $(DSKS) $(DSKDIR)
2138
boisy
parents:
diff changeset
166
boisy
parents:
diff changeset
167 dskclean:
2216
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
168 $(RM) $(DSKS)
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
169
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
170 info:
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
171 @$(ECHO) "*** Space Quest 0 ***"
d096a278e068 Added info targets
boisy
parents: 2138
diff changeset
172 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)