From 4e363c10736e26d3935d7fbb71d878c6bba447a7 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 14 Apr 2014 18:37:54 +0000 Subject: [PATCH] Reduce confusion related to Fortran 90 sample Makefile For some compilers (gfortran), there is no space in the argument for specifying a module directory, e.g. '-Jdir', while for others (ifort), there is, e.g. '-module dir'. This substitutes the correct prefix directly into the compiler command line to avoid the confusion associated with having a variable defined with a meaningful trailing space. --- samples/f90/Makefile.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/f90/Makefile.in b/samples/f90/Makefile.in index da79d7126..6086ff57a 100644 --- a/samples/f90/Makefile.in +++ b/samples/f90/Makefile.in @@ -3,7 +3,6 @@ include ../Cantera.mak F90=@F90@ RM=rm -f F90FLAGS=-g -FORTRANMODDIRPREFIX=@FORTRANMODDIRPREFIX@ F90MODDIR=$(CANTERA_FORTRAN_MODS) LDFLAGS= LDLIBS=$(CANTERA_FORTRAN_LIBS) @@ -17,7 +16,7 @@ all: @make_target@ $(F90) $(LDFLAGS) -o @make_target@ $(OBJS) $(LDLIBS) %.o : %.f90 - $(F90) -c $< $(FORTRANMODDIRPREFIX)$(F90MODDIR) $(F90FLAGS) + $(F90) -c $< @FORTRANMODDIRPREFIX@$(F90MODDIR) $(F90FLAGS) clean: $(RM) $(OBJS)