2095
|
1 include $(NITROS9DIR)/rules.mak
|
|
2
|
2139
|
3 vpath %.asm ../objs_lsl
|
2095
|
4
|
|
5 DEPENDS = ./makefile
|
|
6
|
2219
|
7 DSKDW3 = goldrush_dw3.dsk
|
2099
|
8 DISK_1_80D = goldrush_d1_80d.dsk
|
|
9 DISK_2_80D = goldrush_d2_80d.dsk
|
|
10 DISK_3_80D = goldrush_d3_80d.dsk
|
2095
|
11
|
2219
|
12 DSKS = $(DISK_1_80D) $(DISK_2_80D) $(DISK_3_80D) $(DSKDW3)
|
2216
|
13
|
2095
|
14 DISK_1_80D_NAME = "Gold Rush Disk 1"
|
|
15 DISK_2_80D_NAME = "Gold Rush Disk 2"
|
2219
|
16 DISK_3_80D_NAME = "Gold Rush d1_80dDisk 3"
|
|
17 DSKDW3_NAME = "Gold Rush"
|
2095
|
18
|
|
19 CMDS = sierra mnln scrn shdw tocgen
|
|
20 MD = $(LEVEL2)/coco3/modules
|
|
21
|
|
22 # We make our own bootfile and kernel track
|
2219
|
23 KERNEL_FLOPPY = $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/krn
|
|
24 KERNEL_DW3 = $(MD)/rel_32 $(MD)/boot_dw3 $(MD)/krn
|
|
25 BOOTFILE_80D = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
|
2095
|
26 $(MD)/rbf.mn \
|
|
27 $(MD)/rb1773.dr $(MD)/ddd0_80d.dd \
|
|
28 $(MD)/scf.mn $(MD)/vtio.dr \
|
|
29 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
|
|
30 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
|
|
31 $(MD)/vrn.dr $(MD)/vi.dd \
|
|
32 $(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd
|
|
33
|
2219
|
34 BOOTFILE_DW3 = $(MD)/krnp2 $(MD)/ioman $(MD)/init \
|
|
35 $(MD)/rbf.mn \
|
|
36 $(MD)/rbdw3.dr $(MD)/dw3.sb $(MD)/ddx0.dd \
|
|
37 $(MD)/scf.mn $(MD)/vtio.dr \
|
|
38 $(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
|
|
39 $(MD)/covdg_small.io $(MD)/term_vdg.dt \
|
|
40 $(MD)/vrn.dr $(MD)/vi.dd \
|
|
41 $(MD)/clock_60hz $(MD)/clock2_dw3 $(MD)/sysgo_dd
|
|
42
|
2095
|
43 BOOTCMDS = $(LEVEL2)/coco3/cmds/shell_21 $(LEVEL2)/coco3/cmds/date \
|
|
44 $(LEVEL2)/coco3/cmds/echo $(LEVEL2)/coco3/cmds/link \
|
|
45 $(LEVEL2)/coco3/cmds/setime
|
|
46
|
2219
|
47 TEXTFILES_D1 = startup tOC_80d.txt tOC_dw3.txt
|
|
48 TEXTFILES = startup tOC_80d.txt tOC_dw3.txt
|
2095
|
49
|
|
50 SUPPORTFILES_D1 = logDir object picDir sndDir viewDir vol.0 \
|
|
51 vol.1 vol.2 vol.9 vol.10 vol.11 vol.12 words.tok
|
|
52
|
|
53 SUPPORTFILES_D2 = object vol.0 vol.3 vol.9 vol.11
|
|
54
|
|
55 SUPPORTFILES_D3 = object vol.0 vol.4 vol.5 vol.9 vol.11 vol.12
|
|
56
|
|
57 ALLOBJS = $(CMDS)
|
|
58
|
|
59 all: $(ALLOBJS)
|
|
60
|
|
61 clean: dskclean
|
|
62 $(RM) $(ALLOBJS)
|
|
63
|
2219
|
64 dsk: all $(DSKDW3) $(DISK_1_80D) $(DISK_2_80D) $(DISK_3_80D)
|
|
65
|
|
66 $(DSKDW3):
|
|
67 $(RM) $@
|
2095
|
68 $(CD) $(LEVEL2)/coco3; make
|
2219
|
69 $(OS9FORMAT_DW3) -q $@ -n$(DSKDW3_NAME)
|
|
70 $(MERGE) $(BOOTFILE_DW3)>os9boot
|
|
71 $(MERGE) $(KERNEL_DW3)>kernel
|
|
72 $(OS9GEN) $@ -b=os9boot -t=kernel
|
|
73 $(RM) os9boot kernel
|
|
74 $(MAKDIR) $@,CMDS
|
|
75 $(CP) $(CMDS) $@,CMDS
|
|
76 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
|
2095
|
77 $(MERGE) $(BOOTCMDS)>shell
|
2219
|
78 $(CP) shell $@,CMDS
|
2095
|
79 $(RM) shell
|
2219
|
80 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
|
|
81 $(OS9RENAME) $@,CMDS/sierra AutoEx
|
|
82 $(CPL) $(TEXTFILES_D1) $@,.
|
|
83 $(CPL) $(TEXTFILES_D2) $@,.
|
|
84 $(CPL) $(TEXTFILES_D3) $@,.
|
|
85 $(OS9RENAME) $@,tOC_dw3.txt tOC.txt
|
|
86 $(CP) $(SUPPORTFILES_D1) $@,.
|
|
87 $(CP) $(SUPPORTFILES_D2) $@,.
|
|
88 $(CP) $(SUPPORTFILES_D3) $@,.
|
|
89 tocgen $@,tOC.txt $@,tOC
|
|
90
|
|
91 $(DISK_1_80D):
|
|
92 $(RM) $@
|
|
93 $(CD) $(LEVEL2)/coco3; make
|
|
94 $(OS9FORMAT_DS80) -q $@ -n$(DISK_1_80D_NAME)
|
|
95 $(MERGE) $(BOOTFILE_80D)>os9boot
|
|
96 $(MERGE) $(KERNEL_FLOPPY)>kernel
|
|
97 $(OS9GEN) $@ -b=os9boot -t=kernel
|
|
98 $(RM) os9boot_80d os9boot_80d kernel_1773
|
|
99 $(MAKDIR) $@,CMDS
|
|
100 $(CP) $(CMDS) $@,CMDS
|
|
101 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);)
|
|
102 $(MERGE) $(BOOTCMDS)>shell
|
|
103 $(CP) shell $@,CMDS
|
|
104 $(RM) shell
|
|
105 $(OS9ATTR) $@,CMDS/shell -e -pe -pr -e -w -r
|
|
106 $(OS9RENAME) $@,CMDS/sierra AutoEx
|
|
107 $(CPL) $(TEXTFILES_D1) $@,.
|
|
108 $(OS9RENAME) $@,tOC_80d.txt tOC.txt
|
|
109 $(CP) $(SUPPORTFILES_D1) $@,.
|
|
110 tocgen $@,tOC.txt $@,tOC
|
|
111
|
|
112 $(DISK_2_80D):
|
|
113 $(RM) $@
|
|
114 $(OS9FORMAT_DS80) -q $@ -n$(DISK_2_80D_NAME)
|
|
115 $(CP) $(SUPPORTFILES_D2) $@,.
|
|
116
|
|
117 $(DISK_3_80D):
|
|
118 $(RM) $@
|
|
119 $(OS9FORMAT_DS80) -q $@ -n$(DISK_3_80D_NAME)
|
|
120 $(CP) $(SUPPORTFILES_D3) $@,.
|
2095
|
121
|
|
122 dskcopy: dsk
|
2216
|
123 $(CP) $(DSKS) $(DSKDIR)
|
2095
|
124
|
|
125 dskclean:
|
2216
|
126 $(RM) $(DSKS)
|
|
127
|
|
128 info:
|
|
129 @$(ECHO) "*** Gold Rush ***"
|
|
130 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)
|