Skip to content

Commit

Permalink
Changed Makefile.common to reset FC=gfortran if make sets it to f77. …
Browse files Browse the repository at this point in the history
…Addresses issue clawpack#45.
  • Loading branch information
Randy LeVeque committed Jul 31, 2013
1 parent 63d4ee9 commit b10edb8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ INSTALL_PROGRAM ?= $(INSTALL)
INSTALL_DATA ?= $(INSTALL) -m 644

# Fortran compiler: FC may be set as an environment variable or in make
# file that 'includes' this one.
# file that 'includes' this one. Otherwise assume gfortran.
FC ?= gfortran
ifeq ($(FC),f77)
# make sometimes sets FC=f77 if it is not set as environment variable
# reset to gfortran since f77 will not work.
FC = gfortran
endif

CLAW_FC ?= $(FC)
LINK ?= $(CLAW_FC)

Expand Down

0 comments on commit b10edb8

Please sign in to comment.