Next: , Previous: Fortran Overview, Up: Fortran Support



7.11.2 Compiling Fortran Files

N.o is made automatically from N.f (or N.F or N.r by running the Fortran compiler. The precise command used is as follows:

.f
$(FCCOMPILE) -c -o $ $<
.r
$(RCOMPILE) -c -o $ $<

The compilation commands in turn expand into

$(FCCOMPILE)
$(FC) $(AM_FCFLAGS) $(FCFLAGS)
$(RCOMPILE)
$(FC) $(AM_FCFLAGS) $(FCFLAGS) $(AM_RFLAGS) $(RFLAGS)

This is for the case where .f is associated with the FC interface; if .f is associated with the F77 interface, the commands are different but analogous.

The handling of preprocessable Fortran is rather more complicated – see the next section.