Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Makefile

Status
Not open for further replies.

schwarem

Programmer
Joined
Apr 18, 2002
Messages
159
Location
US
I have a makefile that I have used on a Redhat Linux machine and an SGI machine, but when I run it on my SUN, I get an unexpected end of line error for line three. The first two lines of code are comments. The third line of code is simply.

FF=f90

Does anyone have any suggestions. Does Sun handle variable declaration differently than other OS's?
 
I don't think so. Maybe it's not counting the comments in the line numbers, and the error is further down?

My test:

[tt]$ cat Makefile
FF=f90
test:
echo $(FF)
$ /usr/ccs/bin/make
echo f90
f90
$[/tt]

Annihilannic.
 
Here is the first few lines

# Makefile SUN OS

# Fortran 90 or 95 compiler name
FF=f90

# Source, object and module directories
SOURCEDIR=src
OBJDIR=obj
MODULEDIR=mod
BINDIR=bin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top