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