2085
|
1 include $(NITROS9DIR)/rules.mak
|
|
2
|
|
3 vpath %.asm ../objs
|
|
4
|
|
5 DEPENDS = ./makefile
|
|
6
|
|
7 DISK_1_40D = sq2_d1_40d.dsk
|
|
8 DISK_2_40D = sq2_d2_40d.dsk
|
|
9 DISK_3_40D = sq2_d3_40d.dsk
|
|
10 DISK_80D = sq2_80d.dsk
|
|
11
|
|
12 DISK_1_40D_NAME = "Space Quest II Disk 1"
|
|
13 DISK_2_40D_NAME = "Space Quest II Disk 2"
|
|
14 DISK_3_40D_NAME = "Space Quest II Disk 3"
|
|
15 DISK_80D_NAME = "Space Quest II"
|
|
16
|
|
17 CMDS = sierra mnln scrn shdw tocgen
|
|
18 MD = $(LEVEL2)/coco3/modules
|
|
19
|
|
20 # We make our own bootfile and kernel track
|
|
21 KERNEL = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
|
|
22 OS9BOOT_40D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
|
|
23 $(MD)/rbf.mn \
|
|
24 $(MD)/rb1773.dr $(MD)/ddd0_40d.dd \
|
|
25 $(MD)/scf.mn $(MD)/vtio.dr \
|
|
26 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
|
|
27 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
|
|
28 $(MD)/vrn.dr $(MD)/vi.dd \
|
|
29 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
|
|
30
|
|
31 OS9BOOT_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
|
|
32 $(MD)/rbf.mn \
|
|
33 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
|
|
34 $(MD)/scf.mn $(MD)/vtio.dr \
|
|
35 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
|
|
36 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
|
|
37 $(MD)/vrn.dr $(MD)/vi.dd \
|
|
38 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
|
|
39
|
|
40 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
|
|
41 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
|
|
42 $(LEVEL2)/coco3/cmds/setime
|
|
43
|
|
44 TEXTFILES_D1 = startup tOC_40d.txt
|
|
45 TEXTFILES = startup tOC_80d.txt
|
|
46
|
|
47 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
|
|
48 vol.1 words.tok
|
|
49
|
|
50 SUPPORTFILES_D2 = logDir object picDir sndDir viewDir vol.0 \
|
|
51 vol.2 words.tok
|
|
52
|
|
53 SUPPORTFILES_D3 = logDir object picDir sndDir viewDir vol.0 \
|
|
54 vol.3 words.tok
|
|
55
|
|
56 SUPPORTFILES = logDir object picDir sndDir viewDir vol.0 \
|
|
57 vol.1 vol.2 vol.3 words.tok
|
|
58
|
|
59 ALLOBJS = $(CMDS)
|
|
60
|
|
61 all: $(ALLOBJS)
|
|
62
|
|
63 clean: dskclean
|
|
64 $(RM) $(ALLOBJS)
|
|
65
|
|
66 dsk: all
|
|
67 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_80D)
|
|
68 $(CD) $(LEVEL2)/coco3; make
|
|
69 $(OS9FORMAT_DS40) -q $(DISK_1_40D) -n$(DISK_1_40D_NAME)
|
|
70 $(OS9FORMAT_DS80) -q $(DISK_80D) -n$(DISK_80D_NAME)
|
|
71 $(MERGE) $(OS9BOOT_40D)>os9boot_40d
|
|
72 $(MERGE) $(OS9BOOT_80D)>os9boot_80d
|
|
73 $(MERGE) $(KERNEL)>kernel_1773
|
|
74 $(OS9GEN) $(DISK_1_40D) -b=os9boot_40d -t=kernel_1773
|
|
75 $(OS9GEN) $(DISK_80D) -b=os9boot_80d -t=kernel_1773
|
|
76 $(RM) os9boot_40d os9boot_80d kernel_1773
|
|
77 $(MAKDIR) $(DISK_1_40D),CMDS
|
|
78 $(MAKDIR) $(DISK_80D),CMDS
|
|
79 $(CP) $(CMDS) $(DISK_1_40D),CMDS
|
|
80 $(CP) $(CMDS) $(DISK_80D),CMDS
|
|
81 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_40D),CMDS/$(file);)
|
|
82 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_80D),CMDS/$(file);)
|
|
83 $(MERGE) $(BOOTCMDS)>shell
|
|
84 $(CP) shell $(DISK_1_40D),CMDS
|
|
85 $(CP) shell $(DISK_80D),CMDS
|
|
86 $(RM) shell
|
|
87 $(OS9ATTR) $(DISK_1_40D),CMDS/shell -e -pe -pr -e -w -r
|
|
88 $(OS9ATTR) $(DISK_80D),CMDS/shell -e -pe -pr -e -w -r
|
|
89 $(OS9RENAME) $(DISK_1_40D),CMDS/sierra AutoEx
|
|
90 $(OS9RENAME) $(DISK_80D),CMDS/sierra AutoEx
|
|
91 $(CPL) $(TEXTFILES_D1) $(DISK_1_40D),.
|
|
92 $(OS9RENAME) $(DISK_1_40D),tOC_40d.txt tOC.txt
|
|
93 $(CPL) $(TEXTFILES) $(DISK_80D),.
|
|
94 $(OS9RENAME) $(DISK_80D),tOC_80d.txt tOC.txt
|
|
95 $(CP) $(SUPPORTFILES_D1) $(DISK_1_40D),.
|
|
96 tocgen $(DISK_1_40D),tOC.txt $(DISK_1_40D),tOC
|
|
97 $(OS9FORMAT_DS40) -q $(DISK_2_40D) -n$(DISK_2_40D_NAME)
|
|
98 $(CP) $(SUPPORTFILES_D2) $(DISK_2_40D),.
|
|
99 tocgen $(DISK_1_40D),tOC.txt $(DISK_2_40D),tOC
|
|
100 $(OS9FORMAT_DS40) -q $(DISK_3_40D) -n$(DISK_3_40D_NAME)
|
|
101 $(CP) $(SUPPORTFILES_D3) $(DISK_3_40D),.
|
|
102 tocgen $(DISK_1_40D),tOC.txt $(DISK_3_40D),tOC
|
|
103 $(CP) $(SUPPORTFILES) $(DISK_80D),.
|
|
104 tocgen $(DISK_80D),tOC.txt $(DISK_80D),tOC
|
|
105
|
|
106 dskcopy: dsk
|
|
107 $(CP) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_80D) $(DSKDIR)
|
|
108
|
|
109 dskclean:
|
|
110 $(RM) $(DISK_1_40D) $(DISK_2_40D) $(DISK_3_40D) $(DISK_80D)
|