Mercurial > hg > Members > kono > nitros9-code
annotate level1/tano/modules/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 | cfa6222348f7 |
rev | line source |
---|---|
2036 | 1 PORT = tano |
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 | 5 include $(NITROS9DIR)/rules.mak |
6 | |
2049 | 7 vpath %.asm $(LEVEL1)/modules |
8 | |
9 AFLAGS += -I$(LEVEL1)/modules | |
2036 | 10 |
11 CLOCKELIM = -aRTCElim=1 | |
12 CLOCKDISTO2 = -aRTCDsto2=1 | |
13 CLOCKDISTO4 = -aRTCDsto4=1 | |
14 CLOCKBNB = -aRTCBB=1 | |
15 CLOCKSMART = -aRTCSmart=1 -aMPIFlag=1 | |
16 CLOCKHARRIS = -aRTCHarrs=1 | |
17 CLOCKCLOUD9 = -aRTCCloud9=1 | |
18 CLOCKSOFT = -aRTCSoft=1 | |
19 CLOCKMESSEMU = -aRTCMessEmu=1 | |
20 CLOCKJVEMU = -aRTCJVEmu=1 | |
21 | |
22 DEPENDS = ./makefile | |
23 TPB = $(3RDPARTY)/booters | |
24 | |
2624 | 25 BOOTERS = boot_1773_6ms boot_1773_30ms |
26 # boot_rampak boot_wd1002 boot_burke | |
2040 | 27 BOOTTRACK = rel $(BOOTERS) |
2036 | 28 KERNEL = krn krnp2 |
29 SYSMODS = ioman init sysgo_dd sysgo_h0 | |
30 CLOCKS = clock_60hz clock_50hz \ | |
31 clock2_elim clock2_disto2 clock2_disto4 clock2_bnb \ | |
32 clock2_smart clock2_harris clock2_cloud9 clock2_soft \ | |
2040 | 33 clock2_messemu clock2_jvemu |
2036 | 34 |
35 RBF = rbf.mn \ | |
2040 | 36 rb1773.dr rb1773_scii_ff74.dr rb1773_scii_ff58.dr \ |
37 ddd0_35s.dd d0_35s.dd d1_35s.dd d2_35s.dd d3_35s.dd \ | |
38 ddd0_40d.dd d0_40d.dd d1_40d.dd d2_40d.dd \ | |
39 ddd0_80d.dd d0_80d.dd d1_80d.dd d2_80d.dd | |
40 | |
2036 | 41 SCF = scf.mn \ |
2042 | 42 sc6551dragon.dr vrn.dr scdpp.dr sspak.dr vtio.dr \ |
2040 | 43 covdg.io cohr.io \ |
2042 | 44 nil.dd p_dpp.dd p1_sc6551dragon.dd pipe.dd ssp.dd \ |
2043 | 45 term_sc6551.dt t2_sc6551.dd t3_sc6551.dd \ |
2040 | 46 term32.dt term51.dt |
2036 | 47 |
48 PIPE = pipeman.mn \ | |
49 piper.dr \ | |
50 pipe.dd | |
51 | |
2040 | 52 ALLOBJS = $(BOOTTRACK) $(KERNEL) $(SYSMODS) $(CLOCKS) $(RBF) $(SCF) $(PIPE) |
2036 | 53 |
54 all: $(ALLOBJS) | |
55 | |
56 # Special cases | |
57 | |
58 # Kernel | |
59 krn krnp2: | |
60 $(CD) kernel; make $@ | |
61 $(CP) kernel/$@ . | |
62 | |
2040 | 63 boot_1773_6ms: boot_1773.asm |
64 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=0 -aSTEP=0 | |
65 | |
66 boot_1773_30ms: boot_1773.asm | |
67 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aDNum=0 -aSTEP=3 | |
2036 | 68 |
2040 | 69 rb1773_scii_ff74.dr: rb1773.asm |
70 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 | |
2036 | 71 |
2040 | 72 rb1773_scii_ff58.dr: rb1773.asm |
73 $(AS) $< $(ASOUT)$@ $(AFLAGS) -aSCII=1 -aSCIIALT=1 | |
2036 | 74 |
75 # Clocks | |
76 clock_60hz: clock.asm | |
77 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=60 | |
78 | |
79 clock_50hz: clock.asm | |
80 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aPwrLnFrq=50 | |
81 | |
82 clock2_bnb: clock2_ds1315.asm | |
83 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aBNB=1 | |
84 | |
85 clock2_cloud9: clock2_ds1315.asm | |
86 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aCLOUD9=1 | |
87 | |
88 # Floppy descriptors | |
89 SSDD35 = -aCyls=35 -aSides=1 -aSectTrk=18 -aSectTrk0=18 \ | |
2040 | 90 -aInterlv=3 -aSAS=8 -aDensity=1 |
2036 | 91 DSDD40 = -aCyls=40 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ |
2040 | 92 -aInterlv=3 -aSAS=8 -aDensity=1 |
2036 | 93 DSDD80 = -aCyls=80 -aSides=2 -aSectTrk=18 -aSectTrk0=18 \ |
2040 | 94 -aInterlv=3 -aSAS=8 -aDensity=1 -aD35 |
2036 | 95 |
2040 | 96 ddd0_35s.dd: rb1773desc.asm |
97 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 -aDD=1 | |
2036 | 98 |
2040 | 99 d0_35s.dd: rb1773desc.asm |
100 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=0 | |
2036 | 101 |
2040 | 102 d1_35s.dd: rb1773desc.asm |
103 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=1 | |
2036 | 104 |
2040 | 105 d2_35s.dd: rb1773desc.asm |
106 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=2 | |
2036 | 107 |
2040 | 108 d3_35s.dd: rb1773desc.asm |
109 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(SSDD35) -aDNum=3 | |
2036 | 110 |
2040 | 111 ddd0_40d.dd: rb1773desc.asm |
112 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 -aDD=1 | |
2036 | 113 |
2040 | 114 d0_40d.dd: rb1773desc.asm |
115 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=0 | |
2036 | 116 |
2040 | 117 d1_40d.dd: rb1773desc.asm |
118 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=1 | |
2036 | 119 |
2040 | 120 d2_40d.dd: rb1773desc.asm |
121 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD40) -aDNum=2 | |
2036 | 122 |
2040 | 123 ddd0_80d.dd: rb1773desc.asm |
124 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 -aDD=1 | |
2036 | 125 |
2040 | 126 d0_80d.dd: rb1773desc.asm |
127 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=0 | |
2036 | 128 |
2040 | 129 d1_80d.dd: rb1773desc.asm |
130 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=1 | |
2036 | 131 |
2040 | 132 d2_80d.dd: rb1773desc.asm |
133 $(AS) $< $(ASOUT)$@ $(AFLAGS) $(DSDD80) -aDNum=2 | |
2036 | 134 |
135 sysgo_dd: sysgo.asm | |
136 $(AS) $(AFLAGS) $(ASOUT)$@ $< -aDD=1 | |
137 | |
138 sysgo_h0: sysgo.asm | |
139 $(AS) $(AFLAGS) $(ASOUT)$@ $< | |
140 | |
141 clean: | |
142 $(CD) kernel; make $@ | |
143 $(RM) $(ALLOBJS) | |
144 | |
145 showobjs: | |
146 @$(ECHO) $(ALLOBJS) | |
147 | |
148 showboottrack: | |
149 @$(ECHO) $(BOOTTRACK) | |
150 | |
151 showkernel: | |
152 @$(ECHO) $(KERNEL) | |
153 | |
154 showsysmods: | |
155 @$(ECHO) $(SYSMODS) | |
156 | |
157 showclocks: | |
158 @$(ECHO) $(CLOCKS) | |
159 | |
160 showrbf: | |
161 @$(ECHO) $(RBF) | |
162 | |
163 showscf: | |
164 @$(ECHO) $(SCF) | |
165 | |
166 showpipe: | |
167 @$(ECHO) $(PIPE) | |
168 | |
169 identify: | |
170 $(IDENT_SHORT) $(ALLOBJS) | |
171 | |
172 |