Mercurial > hg > Members > kono > nitros9-code
annotate level1/coco1/bootroms/makefile @ 3295:6b7a7b233925 default tip
makefile: Allow PORTS with level1/2 mix
https://sourceforge.net/p/nitros9/feature-requests/10/
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Tue, 19 Apr 2022 18:12:17 +0200 |
parents | b547712d6209 |
children |
rev | line source |
---|---|
2826
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2691
diff
changeset
|
1 include ../port.mak |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
2 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
3 # Module directory |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
4 MD = ../modules |
2928
4ec45bc24278
coco1/bootroms: Add sysgo and shell_21 to bootfile
Tormod Volden <debian.tormod@gmail.com>
parents:
2847
diff
changeset
|
5 CMDS = ../cmds |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
6 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
7 DEPENDS = ./makefile |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
8 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
9 KERNEL_ROM = $(MD)/rel $(MD)/krn $(MD)/krnp2 $(MD)/init $(MD)/boot_rom |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
10 |
2956
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
11 KERNEL_ROM_1773 = $(MD)/rel $(MD)/krn $(MD)/krnp2 $(MD)/init $(MD)/boot_1773_6ms |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
12 |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
13 BOOTFILE_ROM = $(MD)/rominfo $(MD)/ioman \ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
14 $(MD)/scf.mn $(MD)/vtio.dr \ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
15 $(MD)/covdg.io \ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
16 $(MD)/term_vdg.dt \ |
2928
4ec45bc24278
coco1/bootroms: Add sysgo and shell_21 to bootfile
Tormod Volden <debian.tormod@gmail.com>
parents:
2847
diff
changeset
|
17 $(MD)/sysgo_dd \ |
4ec45bc24278
coco1/bootroms: Add sysgo and shell_21 to bootfile
Tormod Volden <debian.tormod@gmail.com>
parents:
2847
diff
changeset
|
18 $(CMDS)/shell_21 \ |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
19 $(MD)/clock_60hz $(MD)/clock2_soft |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
20 |
2956
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
21 BOOTFILE_ROM_1773 = $(MD)/rominfo |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
22 |
2931
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
23 BOOTFILE_ROMPAK = $(MD)/rominfo_pak $(MD)/ioman \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
24 $(MD)/scf.mn $(MD)/vtio.dr \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
25 $(MD)/covdg.io \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
26 $(MD)/term_vdg.dt \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
27 $(MD)/sysgo_dd \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
28 $(CMDS)/shell_21 \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
29 $(MD)/clock_60hz $(MD)/clock2_soft |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
30 |
3068
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
31 BOOTFILE_ROMPAK_1773 = $(MD)/rominfo |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
32 |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
33 BOOTROMS = nos96809l1.rom nos96809l1.rompak nos96809l1_1773.rom nos96809l1_1773.rompak |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
34 KERNELS = kernel_rom |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
35 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
36 ALLROMS = $(BOOTROMS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
37 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
38 all: $(ALLROMS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
39 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
40 # Bootfiles |
2956
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
41 # Kernel file in ROM (no BASIC needed), but boot file on floppy |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
42 nos96809l1_1773.rom: $(BOOTFILE_ROM_1773) $(KERNEL_ROM_1773) $(DEPENDS) |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
43 $(MERGE) $(BOOTFILE_ROM_1773)>$@.tmp |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
44 $(PADROM) 11776 $@.tmp |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
45 $(MERGE) $(KERNEL_ROM_1773)>kernel_rom |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
46 $(PADROM) 4592 kernel_rom |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
47 $(MERGE) $@.tmp kernel_rom>$@.tmp2 |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
48 $(MERGE) $@.tmp2 $(MD)/vectors>$@ |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
49 $(RM) $@.tmp $@.tmp2 |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
50 |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
51 nos96809l1.rom: $(BOOTFILE_ROM) $(KERNEL_ROM) $(DEPENDS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
52 $(MERGE) $(BOOTFILE_ROM)>$@.tmp |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
53 $(PADROM) 11776 $@.tmp |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
54 $(MERGE) $(KERNEL_ROM)>kernel_rom |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
55 $(PADROM) 4592 kernel_rom |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
56 $(MERGE) $@.tmp kernel_rom>$@.tmp2 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
57 $(MERGE) $@.tmp2 $(MD)/vectors>$@ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
58 $(RM) $@.tmp $@.tmp2 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
59 |
3068
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
60 nos96809l1_1773.rompak: $(BOOTFILE_ROMPAK_1773) $(KERNEL_ROM_1773) $(DEPENDS) |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
61 $(MERGE) $(BOOTFILE_ROMPAK_1773)>$@.tmp |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
62 $(PADROM) 11776 $@.tmp |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
63 $(MERGE) $(KERNEL_ROM_1773)>kernel_rom |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
64 $(PADROM) 4352 kernel_rom |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
65 $(MERGE) $@.tmp kernel_rom>$@ |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
66 $(RM) $@.tmp |
b547712d6209
level1: Add rompak version with bootfile from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2956
diff
changeset
|
67 |
2931
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
68 nos96809l1.rompak: $(BOOTFILE_ROMPAK) $(KERNEL_ROM) $(DEPENDS) |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
69 $(MERGE) $(BOOTFILE_ROMPAK)>$@.tmp |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
70 $(PADROM) 11776 $@.tmp |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
71 $(MERGE) $(KERNEL_ROM)>kernel_rom |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
72 $(PADROM) 4352 kernel_rom |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
73 $(MERGE) $@.tmp kernel_rom>$@ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
74 $(RM) $@.tmp |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
75 |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
76 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
77 # Kernels |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
78 kernel_rom: $(KERNEL_ROM) $(DEPENDS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
79 $(MERGE) $(KERNEL_ROM)>$@ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
80 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
81 clean: |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
82 $(RM) $(ALLROMS) $(KERNELS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
83 |