0
|
1 include ../../Makefile.rules
|
|
2
|
|
3 # Module directory
|
|
4 MD = ../MODULES
|
|
5 # Commands directory
|
|
6 CD = ../CMDS
|
|
7 # Third Party directory
|
355
|
8 3PB = $(3RDPARTY)/booters
|
|
9 3PD = $(3RDPARTY)/drivers
|
0
|
10
|
|
11 DEPENDS = ./Makefile
|
|
12
|
|
13 KERNEL_1773 = $(MD)/rel $(MD)/boot_1773 $(MD)/os9p1
|
355
|
14 KERNEL_ROM = $(MD)/rel $(3PB)/boot_rom $(MD)/os9p1
|
|
15 KERNEL_KENTON = $(MD)/rel $(3PB)/boot_kenton $(MD)/os9p1
|
0
|
16
|
|
17 # OS-9 disk bootfile to allow booting from WD1773 disk controller
|
|
18 BOOTFILE_1773 = $(MD)/os9p2 $(MD)/ioman $(MD)/init $(MD)/rbf.mn $(MD)/cc3disk.dr $(MD)/d0_40d.dd \
|
|
19 $(MD)/d1_80d.dd $(MD)/ddd0_40d.dd $(MD)/scf.mn $(MD)/cc3io.dr $(MD)/keydrv $(MD)/joydrv_joy \
|
|
20 $(MD)/snddrv $(MD)/windint.io $(MD)/term_win80.dt $(MD)/w.dw $(MD)/w1.dw $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw \
|
|
21 $(MD)/w5.dw $(MD)/w6.dw $(MD)/w7.dw $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd $(MD)/clock \
|
346
|
22 $(MD)/clock2_soft
|
0
|
23
|
|
24 BOOTFILE_1773_ROM = $(MD)/rominfo
|
|
25
|
|
26 # OS-9 ROM image to allow booting from ROM
|
|
27 BOOTFILE_ROM = $(MD)/rominfo $(MD)/os9p2 $(MD)/init $(MD)/ioman \
|
|
28 $(MD)/scf.mn $(MD)/sio.dr $(MD)/term_t1.dd \
|
|
29 $(MD)/sspak.dr $(MD)/ssp.dd \
|
|
30 $(MD)/clock $(MD)/clock2_soft $(MD)/cc3go_rom \
|
|
31 $(CD)/shell $(CD)/mdir $(CD)/mfree $(CD)/procs
|
|
32
|
|
33 # OS-9 disk bootfile to allow booting from Ken-Ton SCSI controller
|
355
|
34 BOOTFILE_KENTON = $(MD)/os9p2 $(MD)/ioman $(MD)/rbf.mn $(MD)/clock $(MD)/clock2_soft $(3PD)/disto/rampak.dr \
|
|
35 $(3PD)/disto/r0_256_l2.dd $(MD)/cc3disk.dr $(MD)/d0_40d.dd $(MD)/d1_80d.dd \
|
|
36 $(3PD)/scsisys/scsisys_68_ktlr.dr \
|
|
37 $(3PD)/scsisys/h0_ktlr.dd $(MD)/scf.mn $(MD)/cc3io.dr $(MD)/keydrv \
|
|
38 $(MD)/joydrv_6551L $(3PD)/s16550/s16550_large.dr $(3PD)/s16550/t2_s16550.dd \
|
0
|
39 $(MD)/snddrv $(MD)/windint.io $(MD)/term_win80.dt $(MD)/w.dw $(MD)/w1.dw $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw \
|
|
40 $(MD)/w5.dw $(MD)/w6.dw $(MD)/w7.dw $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd $(MD)/init
|
|
41
|
|
42 BOOTFILES = bootfile_1773 bootfile_kenton bootfile_rom
|
|
43
|
|
44 all: $(BOOTFILES)
|
341
|
45 $(CHMOD) 600 $(BOOTFILES)
|
0
|
46
|
|
47 bootfile_1773: $(BOOTFILE_1773) $(DEPENDS)
|
|
48 $(MERGE) $(BOOTFILE_1773)>$@
|
|
49
|
|
50 bootfile_kenton: $(BOOTFILE_KENTON) $(DEPENDS)
|
|
51 $(MERGE) $(BOOTFILE_KENTON)>$@
|
|
52
|
|
53 # ROM image (32,768 bytes long) to burn into ROM on CoCo 3
|
|
54 bootfile_1773_rom: $(BOOTFILE_1773_ROM) $(DEPENDS) $(KERNEL_1773)
|
|
55 $(MERGE) $(BOOTFILE_1773_ROM)>$@
|
|
56 $(PADROM) \$$6C00 $@ -c=\$$FF
|
|
57 $(MERGE) $(KERNEL_1773)>>$@
|
|
58 $(PADROM) \$$7FF0 $@ -c=\$$FF
|
|
59 $(MERGE) $(MD)/rom_vectors>>$@
|
|
60
|
|
61 # ROM image (32,768 bytes long) to burn into ROM on CoCo 3
|
|
62 bootfile_rom: $(BOOTFILE_ROM) $(DEPENDS) $(KERNEL_ROM)
|
|
63 $(MERGE) $(BOOTFILE_ROM)>$@
|
|
64 ls -l $@
|
|
65 $(PADROM) \$$6C00 $@ -c=\$$FF
|
|
66 $(MERGE) $(KERNEL_ROM)>>$@
|
|
67 $(PADROM) \$$7FF0 $@ -c=\$$FF
|
|
68 $(MERGE) $(MD)/rom_vectors>>$@
|
|
69
|
|
70 clean:
|
|
71 $(RM) $(BOOTFILES)
|
|
72
|