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