Skip to content

Commit

Permalink
fix builddir and srcdir in makefilelin
Browse files Browse the repository at this point in the history
  • Loading branch information
dougtinkham committed Jun 12, 2023
1 parent 4e4ba91 commit 5224a83
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/MakefileLIN
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@

## Select compiler: gfortran, or ifort/ifx for intel
#COMPILER=gfortran
COMPILER=ifort
#COMPILER=ifx
#COMPILER=ifort
COMPILER=ifx

## Select debug or release build
BUILDTYPE=release
#BUILDTYPE=debug

##Select where to place build products, relative to src directory
BUILDDIR=../build
BUILDDIR=./../build
ODIR=$(BUILDDIR)/obj
SRCDIR=.

## Static gfortran build requires specifying path to libquadmath.a; not working on LIN
#LQUADMATH=/usr/lib/gcc/x86_64-linux-gnu/11/libquadmath.a
Expand All @@ -29,9 +31,7 @@ LQUADMATH=
ifeq ($(COMPILER),gfortran)
MOD_EXT=o
PLAT = platf-osx
BFLAGS= -J$(ODIR)

#-static-libgfortran -static-libgcc -nodefaultlibs \
BFLAGS= -J$(ODIR) -static-libgfortran -static-libgcc -nodefaultlibs

ifeq ($(BUILDTYPE),release)
CFLAGS = -O2 -mtune=generic $(BFLAGS)
Expand All @@ -43,7 +43,8 @@ ifeq ($(COMPILER),gfortran)
else ifeq ($(COMPILER),ifort)
MOD_EXT=o
PLAT = platf-osx
BFLAGS= -fpp -mp1 -module $(ODIR) -I$(ODIR) -I$(SRCDIR) \
BFLAGS= -fpp -cpp -module $(ODIR) -I$(ODIR) -I$(SRCDIR)
#-cpp -mp1 -module
#-qsimd-honor-fp-model -qsimd-serialize-fp-reduction
#-fp-model strict
ifeq ($(BUILDTYPE),release)
Expand Down

0 comments on commit 5224a83

Please sign in to comment.