Mercurial > hg > Members > kono > nitros9-code
annotate level1/coco/bootroms/makefile @ 2758:e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
To fix this the code needed to set the envirornment variable that is in the rules.mak is now in the makefile(s) right before the include for the rules.mak file. This should fix the problem for those who do not have the NITROS9DIR envirornment variable preset.
author | drencor-xeen |
---|---|
date | Mon, 14 Jan 2013 14:37:46 -0600 |
parents | 9dd4f422aac7 |
children | 1addfd8c9d5f |
rev | line source |
---|---|
2758
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2609
diff
changeset
|
1 ifndef NITROS9DIR |
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2609
diff
changeset
|
2 NITROS9DIR = $(HOME)/nitros9 |
e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
drencor-xeen
parents:
2609
diff
changeset
|
3 endif |
2609
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
4 include $(NITROS9DIR)/rules.mak |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
5 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
6 # Module directory |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
7 MD = ../modules |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
8 # Commands directory |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
9 CD = ../cmds |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
10 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
11 DEPENDS = ./makefile |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
12 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
13 KERNEL_ROM = $(MD)/rel $(MD)/krn $(MD)/krnp2 $(MD)/init $(MD)/boot_rom |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
14 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
15 BOOTFILE_ROM = $(MD)/rominfo $(MD)/ioman \ |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
16 $(MD)/scf.mn $(MD)/vtio.dr \ |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
17 $(MD)/covdg.io \ |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
18 $(MD)/term32.dt \ |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
19 $(MD)/clock_60hz $(MD)/clock2_soft |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
20 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
21 BOOTROMS = nos96809l1.rom |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
22 KERNELS = kernel_rom |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
23 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
24 ALLROMS = $(BOOTROMS) |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
25 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
26 all: $(ALLROMS) |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
27 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
28 # Bootfiles |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
29 nos96809l1.rom: $(BOOTFILE_ROM) $(KERNEL_ROM) $(DEPENDS) |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
30 $(MERGE) $(BOOTFILE_ROM)>$@.tmp |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
31 $(PADROM) 11776 $@.tmp |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
32 $(MERGE) $(KERNEL_ROM)>kernel_rom |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
33 $(PADROM) 4592 kernel_rom |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
34 $(MERGE) $@.tmp kernel_rom>$@.tmp2 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
35 $(MERGE) $@.tmp2 $(MD)/vectors>$@ |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
36 $(RM) $@.tmp $@.tmp2 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
37 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
38 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
39 # Kernels |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
40 kernel_rom: $(KERNEL_ROM) $(DEPENDS) |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
41 $(MERGE) $(KERNEL_ROM)>$@ |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
42 |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
43 clean: |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
44 $(RM) $(ALLROMS) $(KERNELS) |
9dd4f422aac7
Added NitrOS-9 ROM Kit from Cloud-9
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
45 |