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