0
|
1 include ../../Makefile.rules
|
|
2
|
|
3 DEPENDS = ./Makefile
|
46
|
4 TPB = ../../3rdparty/booters
|
0
|
5
|
46
|
6 BOOTERS = boot_1773
|
0
|
7 KERNELS = os9p1 os9p2
|
38
|
8 SYSMODS = rel rominfo rom_vectors ioman init pakrom
|
0
|
9 CLOCKS = clock clock2_soft clock2_disto clock2_146818
|
|
10 FMGRS = scf.mn rbf.mn pipeman.mn pipeman_named.mn
|
|
11 DRIVERS = cc3disk.dr cc3hdisk.dr cc3io.dr modpak.dr \
|
|
12 vrn.dr piper.dr printer.dr parallel.dr sio.dr ram.dr sspak.dr \
|
38
|
13 hdisk.dr sacia.dr dacia.dr
|
0
|
14 IOSUBS = windint.io vdgint.io keydrv joydrv_joy \
|
|
15 joydrv_6551L joydrv_6552L joydrv_6551M joydrv_6552M snddrv
|
|
16 DESCS = d0_35s.dd d1_35s.dd d2_35s.dd d3_35s.dd \
|
|
17 d0_40d.dd d1_40d.dd d2_40d.dd d0_80d.dd \
|
|
18 d1_80d.dd d2_80d.dd ddd0_35s.dd ddd0_40d.dd \
|
|
19 ddd0_80d.dd r0_8k.dd r0_96k.dd r0_128k.dd r0_192k.dd \
|
|
20 ddr0_8k.dd ddr0_96k.dd ddr0_128k.dd ddr0_192k.dd \
|
|
21 m1.dd m2.dd nil.dd p.dd pp.dd pipe.dd t1.dd t2_sacia.dd \
|
|
22 t3_sacia.dd t2_dacia.dd t3_dacia.dd \
|
|
23 h0_10.dd h1_10.dd h0_15.dd h1_15.dd h0_35.dd h1_35.dd \
|
38
|
24 ftdd.dd vi.dd ssp.dd h0_hdisk.dd term_t1.dd
|
0
|
25 WINDESCS = term_vdg.dt term_win40.dt term_win80.dt w.dw w1.dw w2.dw \
|
|
26 w3.dw w4.dw w5.dw w6.dw w7.dw v1.dw v2.dw v3.dw v4.dw v5.dw \
|
|
27 v6.dw v7.dw
|
|
28 SYSGOS = cc3go cc3go_rom
|
|
29
|
|
30 #
|
|
31 # The following macros represent a collection of modules for various
|
|
32 # kernel tracks and bootfile configurations.
|
|
33 #
|
|
34 KERNEL_1773 = rel boot_1773 os9p1
|
46
|
35 KERNEL_RAMPAK = rel $(TPB)/boot_rampak os9p1
|
|
36 KERNEL_KENTON = rel $(TPB)/boot_kenton os9p1
|
|
37 KERNEL_ROM = rel $(TPB)/boot_rom os9p1
|
|
38 KERNEL_IDE = rel $(TPB)/boot_ide os9p1
|
0
|
39 # These kernels are intended to be ROMmed in a disk controller or program pak
|
|
40 KERNEL_PAK_KENTON = pakrom $(KERNEL_KENTON)
|
|
41
|
|
42 ALLOBJS = $(BOOTERS) $(KERNELS) $(SYSMODS) $(CLOCKS) $(FMGRS) \
|
|
43 $(DRIVERS) $(IOSUBS) $(DESCS) $(WINDESCS) $(SYSGOS) \
|
|
44 kernel_1773 kernel_rom kernel_kenton kernel_pak_kenton \
|
|
45 kernel_rampak kernel_ide
|
|
46
|
|
47 all: $(ALLOBJS)
|
|
48
|
|
49 # Special cases here
|
|
50 sacia.dr: xacia.asm
|
|
51 $(AS) -aA6551=1 -aA6552=0 -aMPI.Slot=00 $(AFLAGS) $< $(ASOUT)$@
|
|
52
|
|
53 dacia.dr: xacia.asm
|
|
54 $(AS) -aA6551=0 -aA6552=1 -aMPI.Slot=00 $(AFLAGS) $< $(ASOUT)$@
|
|
55
|
|
56
|
|
57
|
|
58 kernel_1773: $(KERNEL_1773) $(DEPENDS)
|
|
59 $(MERGE) $(KERNEL_1773)>$@
|
|
60
|
|
61 kernel_rampak: $(KERNEL_RAMPAK) $(DEPENDS)
|
|
62 $(MERGE) $(KERNEL_RAMPAK)>$@
|
|
63
|
|
64 kernel_rom: $(KERNEL_ROM) $(DEPENDS)
|
|
65 $(MERGE) $(KERNEL_ROM)>$@
|
|
66
|
|
67 kernel_kenton: $(KERNEL_KENTON) $(DEPENDS)
|
|
68 $(MERGE) $(KERNEL_KENTON)>$@
|
|
69
|
|
70 kernel_ide: $(KERNEL_IDE) $(DEPENDS)
|
|
71 $(MERGE) $(KERNEL_IDE)>$@
|
|
72
|
|
73 kernel_pak_kenton: $(KERNEL_PAK_KENTON) $(DEPENDS)
|
|
74 $(MERGE) $(KERNEL_PAK_KENTON)>$@
|
|
75 $(PADROM) \$$2000 $@ -c=\$$FF
|
|
76
|
37
|
77 rominfo: rominfo.asm
|
|
78 $(AS) -aROMPak=0 $(AFLAGS) $< $(ASOUT)$@
|
|
79
|
0
|
80 clean:
|
|
81 $(RM) $(ALLOBJS)
|
|
82
|
100
|
83 identify:
|
|
84 $(IDENT_SHORT) $(ALLOBJS)
|