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.
This commit is contained in:
parent
403cbc74fc
commit
4e363c1073
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue