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