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
|
0
|
15
|
|
16 # OS-9 disk bootfile to allow booting from WD1773 disk controller
|
429
|
17 BOOTFILE_1773 = $(MD)/os9p2 $(MD)/ioman $(MD)/init \
|
|
18 $(MD)/rbf.mn \
|
|
19 $(MD)/cc3disk.dr $(MD)/d0_40d.dd $(MD)/d1_80d.dd \
|
|
20 $(MD)/ddd0_40d.dd \
|
|
21 $(MD)/scf.mn $(MD)/cc3io.dr \
|
|
22 $(MD)/keydrv $(MD)/joydrv_joy $(MD)/snddrv \
|
|
23 $(MD)/windint.io $(MD)/vdgint.io \
|
|
24 $(MD)/term_vdg.dt \
|
|
25 $(MD)/w.dw $(MD)/w1.dw $(MD)/w2.dw $(MD)/w3.dw $(MD)/w4.dw \
|
|
26 $(MD)/w5.dw $(MD)/w6.dw $(MD)/w7.dw \
|
|
27 $(MD)/pipeman.mn $(MD)/piper.dr $(MD)/pipe.dd \
|
|
28 $(MD)/clock $(MD)/clock2_soft
|
0
|
29
|
|
30 BOOTFILE_1773_ROM = $(MD)/rominfo
|
|
31
|
|
32 # OS-9 ROM image to allow booting from ROM
|
|
33 BOOTFILE_ROM = $(MD)/rominfo $(MD)/os9p2 $(MD)/init $(MD)/ioman \
|
|
34 $(MD)/scf.mn $(MD)/sio.dr $(MD)/term_t1.dd \
|
|
35 $(MD)/sspak.dr $(MD)/ssp.dd \
|
|
36 $(MD)/clock $(MD)/clock2_soft $(MD)/cc3go_rom \
|
|
37 $(CD)/shell $(CD)/mdir $(CD)/mfree $(CD)/procs
|
|
38
|
501
|
39 BOOTFILES = bootfile_1773 bootfile_rom
|
|
40 KERNELS = kernel_1773 kernel_rom
|
0
|
41
|
428
|
42 ALLOBJS = $(BOOTFILES) $(KERNELS)
|
|
43
|
|
44 all: $(ALLOBJS)
|
|
45 $(CHMOD) 600 $(ALLOBJS)
|
0
|
46
|
|
47 bootfile_1773: $(BOOTFILE_1773) $(DEPENDS)
|
|
48 $(MERGE) $(BOOTFILE_1773)>$@
|
|
49
|
428
|
50 kernel_1773: $(KERNEL_1773) $(DEPENDS)
|
|
51 $(MERGE) $(KERNEL_1773)>$@
|
|
52
|
|
53 kernel_rom: $(KERNEL_ROM) $(DEPENDS)
|
|
54 $(MERGE) $(KERNEL_ROM)>$@
|
|
55
|
0
|
56 # ROM image (32,768 bytes long) to burn into ROM on CoCo 3
|
428
|
57 bootfile_1773_rom: $(BOOTFILE_1773_ROM) $(DEPENDS) kernel_1773
|
0
|
58 $(MERGE) $(BOOTFILE_1773_ROM)>$@
|
|
59 $(PADROM) \$$6C00 $@ -c=\$$FF
|
428
|
60 $(MERGE) kernel_1773>>$@
|
0
|
61 $(PADROM) \$$7FF0 $@ -c=\$$FF
|
|
62 $(MERGE) $(MD)/rom_vectors>>$@
|
|
63
|
|
64 # ROM image (32,768 bytes long) to burn into ROM on CoCo 3
|
428
|
65 bootfile_rom: $(BOOTFILE_ROM) $(DEPENDS) kernel_rom
|
0
|
66 $(MERGE) $(BOOTFILE_ROM)>$@
|
|
67 ls -l $@
|
|
68 $(PADROM) \$$6C00 $@ -c=\$$FF
|
428
|
69 $(MERGE) kernel_rom>>$@
|
0
|
70 $(PADROM) \$$7FF0 $@ -c=\$$FF
|
|
71 $(MERGE) $(MD)/rom_vectors>>$@
|
|
72
|
|
73 clean:
|
428
|
74 $(RM) $(ALLOBJS)
|
0
|
75
|