2096
|
1 include $(NITROS9DIR)/rules.mak
|
|
2
|
2132
|
3 vpath %.asm ../objs_lsl
|
2096
|
4
|
|
5 DEPENDS = ./makefile
|
|
6
|
|
7 DISK_1_80D = manhunter1_d1_80d.dsk
|
|
8 DISK_2_80D = manhunter1_d2_80d.dsk
|
|
9 DISK_3_80D = manhunter1_d3_80d.dsk
|
|
10
|
|
11 DISK_1_80D_NAME = "Manhunter I Disk 1"
|
|
12 DISK_2_80D_NAME = "Manhunter I Disk 2"
|
|
13 DISK_3_80D_NAME = "Manhunter 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_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
|
|
21 $(MD)/rbf.mn \
|
|
22 $(MD)/rb1773.dr $(MD)/ddd0_80d.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_80d.txt
|
|
34 TEXTFILES = startup tOC_80d.txt
|
|
35
|
|
36 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
|
2132
|
37 vol.1 vol.2 vol.9 vol.10 vol.11 vol.12 words.tok
|
2096
|
38
|
2132
|
39 SUPPORTFILES_D2 = object vol.0 vol.3 vol.4 vol.9 vol.10 vol.11 vol.12
|
2096
|
40
|
|
41 SUPPORTFILES_D3 = object vol.0 vol.5 vol.9 vol.10 vol.11 vol.12
|
|
42
|
|
43 ALLOBJS = $(CMDS)
|
|
44
|
|
45 all: $(ALLOBJS)
|
|
46
|
|
47 clean: dskclean
|
|
48 $(RM) $(ALLOBJS)
|
|
49
|
|
50 dsk: all
|
|
51 $(RM) $(DISK_1_80D) $(DISK_2_80D) $(DISK_3_80D)
|
|
52 $(CD) $(LEVEL2)/coco3; make
|
|
53 $(OS9FORMAT_DS80) -q $(DISK_1_80D) -n$(DISK_1_80D_NAME)
|
|
54 $(MERGE) $(OS9BOOT_80D)>os9boot_80d
|
|
55 $(MERGE) $(KERNEL)>kernel_1773
|
|
56 $(OS9GEN) $(DISK_1_80D) -b=os9boot_80d -t=kernel_1773
|
|
57 $(RM) os9boot_80d os9boot_80d kernel_1773
|
|
58 $(MAKDIR) $(DISK_1_80D),CMDS
|
|
59 $(CP) $(CMDS) $(DISK_1_80D),CMDS
|
|
60 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK_1_80D),CMDS/$(file);)
|
|
61 $(MERGE) $(BOOTCMDS)>shell
|
|
62 $(CP) shell $(DISK_1_80D),CMDS
|
|
63 $(RM) shell
|
|
64 $(OS9ATTR) $(DISK_1_80D),CMDS/shell -e -pe -pr -e -w -r
|
|
65 $(OS9RENAME) $(DISK_1_80D),CMDS/sierra AutoEx
|
|
66 $(CPL) $(TEXTFILES_D1) $(DISK_1_80D),.
|
|
67 $(OS9RENAME) $(DISK_1_80D),tOC_80d.txt tOC.txt
|
|
68 $(CP) $(SUPPORTFILES_D1) $(DISK_1_80D),.
|
|
69 tocgen $(DISK_1_80D),tOC.txt $(DISK_1_80D),tOC
|
|
70 $(OS9FORMAT_DS80) -q $(DISK_2_80D) -n$(DISK_2_80D_NAME)
|
|
71 $(CP) $(SUPPORTFILES_D2) $(DISK_2_80D),.
|
|
72 $(OS9FORMAT_DS80) -q $(DISK_3_80D) -n$(DISK_3_80D_NAME)
|
|
73 $(CP) $(SUPPORTFILES_D3) $(DISK_3_80D),.
|
|
74
|
|
75 dskcopy: dsk
|
|
76 $(CP) $(DISK_1_80D) $(DISK_2_80D) $(DISK_3_80D)
|
|
77
|
|
78 dskclean:
|
|
79 $(RM) $(DISK_1_80D) $(DISK_2_80D) $(DISK_3_80D)
|