176 |
|
print OUTFILE "ifneq (\$(JSOC_FCOMPILER),)\n FCOMPILER = \$(JSOC_FCOMPILER)\nendif\n\n"; |
177 |
|
|
178 |
|
# Set DEFAULT values for Stanford-specific (if running at Stanford) make variables. |
179 |
< |
if (-e "suflag.txt") |
179 |
> |
if (-e "configsdp.txt") |
180 |
|
{ |
181 |
|
my($line); |
182 |
+ |
my($parse); |
183 |
|
|
184 |
< |
if (open(SUFLAG, "<suflag.txt")) |
184 |
> |
if (open(SUFLAG, "<configsdp.txt")) |
185 |
|
{ |
186 |
+ |
|
187 |
+ |
$parse = 0; |
188 |
+ |
|
189 |
|
while (defined($line = <SUFLAG>)) |
190 |
|
{ |
191 |
|
chomp($line); |
192 |
< |
if ($line !~ /^#/ && $line =~ /\S+/) |
192 |
> |
|
193 |
> |
if ($line =~ /^__LIBS__/) |
194 |
> |
{ |
195 |
> |
$parse = 1; |
196 |
> |
next; |
197 |
> |
} |
198 |
> |
elsif ($parse && $line =~ /^__END__/) |
199 |
> |
{ |
200 |
> |
last; |
201 |
> |
} |
202 |
> |
|
203 |
> |
if ($parse && $line !~ /^#/ && $line =~ /\S+/) |
204 |
|
{ |
205 |
|
print OUTFILE "$line\n"; |
206 |
|
} |