annotate level1/d64/defs/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 b8c7b7fbf3c9
children 1addfd8c9d5f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2058
27b36e424a4d More updates
boisy
parents: 2037
diff changeset
1 PORT = d64
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: 2624
diff changeset
2 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: 2624
diff changeset
3 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: 2624
diff changeset
4 endif
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
5 include $(NITROS9DIR)/rules.mak
e482bb12a954 tano port
boisy
parents:
diff changeset
6
e482bb12a954 tano port
boisy
parents:
diff changeset
7 DEPENDS = ./makefile
e482bb12a954 tano port
boisy
parents:
diff changeset
8
e482bb12a954 tano port
boisy
parents:
diff changeset
9 DEFOPTS = -ls -x -z -aLevel=1
e482bb12a954 tano port
boisy
parents:
diff changeset
10 DEFSDIR = ../../../defs
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
11 DEFS = defsfile os9.d rbf.d scf.d dragon.d dragonvtio.d
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
12 ALLOBJS = $(DEFS)
e482bb12a954 tano port
boisy
parents:
diff changeset
13
e482bb12a954 tano port
boisy
parents:
diff changeset
14 all: $(ALLOBJS)
e482bb12a954 tano port
boisy
parents:
diff changeset
15
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
16 defsfile: defsfile.asm
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
17 $(AS) $(DEFOPTS) -p $< > $@
e482bb12a954 tano port
boisy
parents:
diff changeset
18
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
19 os9.d: $(DEFSDIR)/os9.d
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
20 $(AS) $(DEFOPTS) -aOS9.D=0 $< > $@
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
21
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
22 rbf.d: $(DEFSDIR)/rbf.d
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
23 $(AS) $(DEFOPTS) -aRBF.D=0 $< > $@
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
24
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
25 scf.d: $(DEFSDIR)/scf.d
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
26 $(AS) $(DEFOPTS) -aSCF.D=0 $< > $@
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
27
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
28 dragon.d: $(DEFSDIR)/dragon.d
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
29 $(AS) $(DEFOPTS) -aDRAGON.D=0 $< > $@
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
30
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
31 dragonvtio.d: $(DEFSDIR)/cocovtio.d
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2058
diff changeset
32 $(AS) $(DEFOPTS) -aDRAGONVTIO.D=0 $< > $@
2036
e482bb12a954 tano port
boisy
parents:
diff changeset
33
e482bb12a954 tano port
boisy
parents:
diff changeset
34 clean:
e482bb12a954 tano port
boisy
parents:
diff changeset
35 $(RM) $(DEFS)
e482bb12a954 tano port
boisy
parents:
diff changeset
36
e482bb12a954 tano port
boisy
parents:
diff changeset
37 showobjs:
e482bb12a954 tano port
boisy
parents:
diff changeset
38 @$(ECHO) $(ALLOBJS)