816
|
1 include ../../../Makefile.rules
|
|
2
|
|
3 DEPENDS = ./Makefile
|
|
4
|
|
5 DISK_1 = kq3_d1.dsk
|
|
6 DISK_2 = kq3_d2.dsk
|
|
7 DISK_3 = kq3_d3.dsk
|
|
8 CMDS = sierra mnln scrn shdw tocgen
|
|
9 MD = $(LEVEL2)/MODULES
|
|
10
|
|
11 # We make our own bootfile and kernel track
|
|
12 KERNEL = $(MD)/rel $(MD)/boot_1773 $(MD)/os9p1
|
|
13 OS9BOOT = $(MD)/os9p2 $(MD)/ioman $(MD)/init \
|
|
14 $(MD)/rbf.mn \
|
|
15 $(MD)/cc3disk.dr $(MD)/ddd0_40d.dd \
|
|
16 $(MD)/scf.mn $(MD)/cc3io.dr \
|
|
17 $(MD)/keydrv $(MD)/joydrv_joy $(MD)/snddrv \
|
|
18 $(MD)/vdgint_small.io $(MD)/term_vdg.dt \
|
|
19 $(MD)/vrn.dr $(MD)/vi.dd \
|
|
20 $(MD)/clock_soft $(MD)/cc3go
|
|
21
|
818
|
22 BOOTCMDS = $(LEVEL2)/CMDS/shell_21 $(LEVEL2)/CMDS/date \
|
|
23 $(LEVEL2)/CMDS/echo $(LEVEL2)/CMDS/link \
|
|
24 $(LEVEL2)/CMDS/setime
|
|
25
|
897
|
26 TEXTFILES_D1 = Startup tOC.txt
|
|
27
|
|
28 SUPPORTFILES_D1 = logDir object picDir sndDir tOC viewDir vol.0 \
|
|
29 vol.1 vol.2 vol.3 vol.4 vol.12 vol.14 words.tok
|
816
|
30
|
|
31 SUPPORTFILES_D2 = logDir object picDir sndDir tOC viewDir vol.0 \
|
|
32 vol.5 vol.6 vol.7 vol.8 vol.11 vol.12 vol.14 words.tok
|
|
33
|
|
34 SUPPORTFILES_D3 = logDir object picDir sndDir tOC viewDir vol.0 \
|
|
35 vol.5 vol.6 vol.7 vol.9 vol.11 vol.12 vol.14 words.tok
|
|
36
|
|
37 ALLOBJS = $(CMDS)
|
818
|
38 TEXTFILES = tOC.txt Startup
|
816
|
39
|
|
40 all: $(ALLOBJS)
|
|
41 $(CHMOD) 755 $(CMDS)
|
|
42
|
|
43 clean: dskclean
|
|
44 $(RM) $(ALLOBJS)
|
|
45
|
|
46 dsk: all
|
|
47 $(RM) $(DISK_1) $(DISK_2) $(DISK_3)
|
|
48 $(CD) $(LEVEL2); make
|
979
|
49 $(OS9FORMAT_DS40) $(DISK_1) -n"King's Quest III Disk 1"
|
816
|
50 $(MERGE) $(OS9BOOT)>os9boot
|
|
51 $(MERGE) $(KERNEL)>kernel_1773
|
1036
|
52 $(OS9GEN) $(DISK_1) -b=os9boot -t=kernel_1773
|
816
|
53 $(RM) os9boot kernel_1773
|
|
54 $(MAKDIR) $(DISK_1),CMDS
|
|
55 $(CP) $(CMDS) $(DISK_1),CMDS
|
818
|
56 $(MERGE) $(BOOTCMDS)>shell
|
|
57 $(CP) shell $(DISK_1),CMDS
|
|
58 $(RM) shell
|
|
59 $(OS9ATTR) $(DISK_1),CMDS/shell -e -pe -pr -e -w -r
|
816
|
60 $(OS9RENAME) $(DISK_1),CMDS/sierra AutoEx
|
897
|
61 $(CPL) $(TEXTFILES_D1) $(DISK_1),.
|
816
|
62 $(CP) $(SUPPORTFILES_D1) $(DISK_1),.
|
979
|
63 $(OS9FORMAT_DS40) $(DISK_2) -n"King's Quest III Disk 2"
|
816
|
64 $(CP) $(SUPPORTFILES_D2) $(DISK_2),.
|
979
|
65 $(OS9FORMAT_DS40) $(DISK_3) -n"King's Quest III Disk 3"
|
816
|
66 $(CP) $(SUPPORTFILES_D3) $(DISK_3),.
|
|
67
|
1121
|
68 dskcopy: dsk
|
|
69 $(CP) $(DISK_1) $(DISK_2) $(DISK_3) $(DSKDIR)
|
|
70
|
816
|
71 dskclean:
|
876
|
72 $(RM) $(DISK_1) $(DISK_2) $(DISK_3)
|