501
|
1 include ../../Makefile.rules
|
|
2
|
|
3 # Module directory
|
|
4 MD = ../MODULES
|
|
5 # Commands directory
|
|
6 CD = ../CMDS
|
|
7 # Third Party directory
|
|
8 3PB = $(3RDPARTY)/booters
|
|
9 3PD = $(3RDPARTY)/drivers
|
|
10
|
|
11 DEPENDS = ./Makefile
|
|
12
|
|
13 KERNEL_1773 = $(MD)/rel $(MD)/boot_1773 $(MD)/os9p1
|
|
14 KERNEL_ROM = $(MD)/rel $(3PB)/boot_rom $(MD)/os9p1
|
|
15 KERNEL_KENTON = $(MD)/rel $(3PB)/boot_ktlr_id5 $(MD)/os9p1
|
701
|
16 KERNEL_TC3 = $(MD)/rel $(3PB)/boot_tc3 $(MD)/os9p1
|
501
|
17
|
|
18 # OS-9 disk bootfile to allow booting from WD1773 disk controller
|
|
19 BOOTFILE_1773 = $(MD)/os9p2 $(MD)/ioman $(MD)/init \
|
|
20 $(MD)/rbf.mn \
|
|
21 $(MD)/cc3disk.dr $(MD)/d0_40d.dd $(MD)/d1_80d.dd \
|
|
22 $(MD)/ddd0_40d.dd \
|
|
23 $(MD)/scf.mn $(MD)/cc3io.dr \
|
|
24 $(MD)/keydrv $(MD)/joydrv_joy $(MD)/snddrv \
|
|
25 $(MD)/windint.io $(MD)/vdgint.io \
|
|
26 $(MD)/term_vdg.dt \
|
|
27 $(MD)/w.dw $(MD)/w1.dw $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw \
|
|
28 $(MD)/w5.dw $(MD)/w6.dw $(MD)/w7.dw \
|
|
29 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
701
|
30 $(MD)/clock_tc3
|
501
|
31
|
|
32 BOOTFILE_1773_ROM = $(MD)/rominfo
|
|
33
|
|
34 # OS-9 ROM image to allow booting from ROM
|
|
35 BOOTFILE_ROM = $(MD)/rominfo $(MD)/os9p2 $(MD)/init $(MD)/ioman \
|
|
36 $(MD)/scf.mn $(MD)/sio.dr $(MD)/term_t1.dd \
|
|
37 $(MD)/sspak.dr $(MD)/ssp.dd \
|
701
|
38 $(MD)/clock_soft $(MD)/cc3go_rom \
|
501
|
39 $(CD)/shell $(CD)/mdir $(CD)/mfree $(CD)/procs
|
|
40
|
|
41 # OS-9 disk bootfile to allow booting from Ken-Ton SCSI controller
|
|
42 # This is a custom boot for Boisy's system
|
701
|
43 BOOTFILE_TC3 = $(3PD)/scsimax/scsimax_tc3_l2.dr \
|
501
|
44 $(MD)/os9p2 $(MD)/ioman $(MD)/init \
|
|
45 $(MD)/rbf.mn \
|
701
|
46 $(3PD)/scsimax/h5_zip100_tc3ktlr_l2.dd \
|
|
47 $(MD)/scf.mn $(MD)/cc3io.dr \
|
|
48 $(MD)/keydrv $(MD)/joydrv_6551L $(MD)/snddrv \
|
|
49 $(3PD)/disto/rampak.dr $(3PD)/disto/r0_256_l2.dd \
|
|
50 $(MD)/cc3disk.dr \
|
|
51 $(MD)/ddd0_40d.dd $(MD)/d0_40d.dd $(MD)/d1_80d.dd \
|
|
52 $(MD)/windint.io $(MD)/term_win80.dt \
|
|
53 $(MD)/w.dw $(MD)/w1.dw $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw \
|
|
54 $(MD)/w5.dw $(MD)/w6.dw $(MD)/w7.dw \
|
|
55 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
56 $(MD)/clock_soft
|
|
57
|
|
58 # OS-9 disk bootfile to allow booting from Ken-Ton SCSI controller
|
|
59 BOOTFILE_KENTON = $(3PD)/scsimax/scsimax_ktlr_l2.dr \
|
|
60 $(MD)/os9p2 $(MD)/ioman $(MD)/init \
|
|
61 $(MD)/rbf.mn \
|
|
62 $(3PD)/scsimax/h5_zip100_tc3ktlr_l2.dd \
|
501
|
63 $(MD)/scf.mn $(MD)/cc3io.dr \
|
|
64 $(MD)/keydrv $(MD)/joydrv_6551L $(MD)/snddrv \
|
|
65 $(3PD)/disto/rampak.dr $(3PD)/disto/r0_256_l2.dd \
|
|
66 $(MD)/cc3disk.dr $(MD)/d0_40d.dd $(MD)/d1_80d.dd \
|
|
67 $(MD)/windint.io $(MD)/term_win80.dt \
|
|
68 $(MD)/w.dw $(MD)/w1.dw $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw \
|
|
69 $(MD)/w5.dw $(MD)/w6.dw $(MD)/w7.dw \
|
|
70 $(3PD)/s16550/s16550_large.dr $(3PD)/s16550/t2_s16550.dd \
|
|
71 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
701
|
72 $(MD)/clock_soft
|
501
|
73
|
|
74 BOOTFILES = bootfile_1773 bootfile_tc3 bootfile_kenton bootfile_rom
|
|
75 KERNELS = kernel_1773 kernel_tc3 kernel_kenton kernel_rom
|
|
76
|
|
77 ALLOBJS = $(BOOTFILES) $(KERNELS)
|
|
78
|
|
79 all: $(ALLOBJS)
|
|
80 $(CHMOD) 600 $(ALLOBJS)
|
|
81
|
|
82 bootfile_1773: $(BOOTFILE_1773) $(DEPENDS)
|
|
83 $(MERGE) $(BOOTFILE_1773)>$@
|
|
84
|
|
85 bootfile_tc3: $(BOOTFILE_TC3) $(DEPENDS)
|
|
86 $(MERGE) $(BOOTFILE_TC3)>$@
|
|
87
|
|
88 bootfile_kenton: $(BOOTFILE_KENTON) $(DEPENDS)
|
|
89 $(MERGE) $(BOOTFILE_KENTON)>$@
|
|
90
|
|
91 kernel_1773: $(KERNEL_1773) $(DEPENDS)
|
|
92 $(MERGE) $(KERNEL_1773)>$@
|
|
93
|
|
94 kernel_tc3: $(KERNEL_TC3) $(DEPENDS)
|
|
95 $(MERGE) $(KERNEL_TC3)>$@
|
|
96
|
|
97 kernel_rom: $(KERNEL_ROM) $(DEPENDS)
|
|
98 $(MERGE) $(KERNEL_ROM)>$@
|
|
99
|
|
100 kernel_kenton: $(KERNEL_KENTON) $(DEPENDS)
|
|
101 $(MERGE) $(KERNEL_KENTON)>$@
|
|
102
|
|
103 # ROM image (32,768 bytes long) to burn into ROM on CoCo 3
|
|
104 bootfile_1773_rom: $(BOOTFILE_1773_ROM) $(DEPENDS) kernel_1773
|
|
105 $(MERGE) $(BOOTFILE_1773_ROM)>$@
|
|
106 $(PADROM) \$$6C00 $@ -c=\$$FF
|
|
107 $(MERGE) kernel_1773>>$@
|
|
108 $(PADROM) \$$7FF0 $@ -c=\$$FF
|
|
109 $(MERGE) $(MD)/rom_vectors>>$@
|
|
110
|
|
111 # ROM image (32,768 bytes long) to burn into ROM on CoCo 3
|
|
112 bootfile_rom: $(BOOTFILE_ROM) $(DEPENDS) kernel_rom
|
|
113 $(MERGE) $(BOOTFILE_ROM)>$@
|
|
114 ls -l $@
|
|
115 $(PADROM) \$$6C00 $@ -c=\$$FF
|
|
116 $(MERGE) kernel_rom>>$@
|
|
117 $(PADROM) \$$7FF0 $@ -c=\$$FF
|
|
118 $(MERGE) $(MD)/rom_vectors>>$@
|
|
119
|
|
120 clean:
|
|
121 $(RM) $(ALLOBJS)
|
|
122
|