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 Mike Lewis 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
Apr 18, 2002
159
US
I am making a fortran program that has modules written in both Fortran 77 and Fortran 90. I keep getting an error on the first fortran 90 file. The error says "No rule to make target" and then the fortran 90 object name. Here is the rules portion of my makefile.

PROGRAM : $(MAINOBJ)
f95 $(F90FLAGS) -o ../bin/$@ $(MAINOBJ)
.f90.o :
f95 $(F90FLAGS) -c $<
.f.o : f95 $(F()FLAGS) -c $<

I am using the Absoft compiler for Linux. The fortran 77 files compile fine. It dies when it gets to the first fortran 90 file.
 
Maybe the dependency rule should be on the same line

.f90.o : f95 $(F90FLAGS) -c $<
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top