Mercurial > hg > Members > kono > nitros9-code
annotate level2/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 | 22b75f9788a5 |
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:
2224
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:
2224
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:
2224
diff
changeset
|
3 endif |
2046 | 4 include $(NITROS9DIR)/rules.mak |
455 | 5 |
2059 | 6 dirs = coco3 coco3_6309 |
341 | 7 |
0 | 8 # Make all components |
9 all: | |
1363 | 10 @$(ECHO) "**************************************************" |
11 @$(ECHO) "* *" | |
2046 | 12 @$(ECHO) "* NitrOS-9 Level 2 Ports *" |
1363 | 13 @$(ECHO) "* *" |
14 @$(ECHO) "**************************************************" | |
2046 | 15 $(foreach dir, $(dirs), ($(CD) $(dir); make);) |
0 | 16 |
17 # Clean all components | |
2224 | 18 clean: |
2046 | 19 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);) |
1705 | 20 |
2046 | 21 # Make DSK images |
22 dsk: | |
23 $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);) | |
1126 | 24 |
2199 | 25 # Copy DSK images |
26 dskcopy: | |
27 $(foreach dir, $(dirs), ($(CD) $(dir); make dskcopy);) | |
28 | |
2046 | 29 # Clean DSK images |
30 dskclean: | |
31 $(foreach dir, $(dirs), ($(CD) $(dir); make dskclean);) | |
2216 | 32 |
33 # Info | |
34 info: | |
35 @$(foreach dir, $(dirs), ($(CD) $(dir); make info; $(ECHO));) |