Skip to content

Commit

Permalink
Merge pull request #9 from davidbrochart/compiler_paths
Browse files Browse the repository at this point in the history
Replace absolute compiler paths with environment variables
  • Loading branch information
cekees authored Jun 21, 2022
2 parents 66b2a69 + 8357c66 commit 1594233
Show file tree
Hide file tree
Showing 19 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions config/darwin
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /usr/bin/mpicxx
CXX = ${MPICXX}
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -17,7 +17,7 @@ FC = ${F77}

FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /usr/bin/mpicxx
LD = ${MPICXX}
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
4 changes: 2 additions & 2 deletions config/darwin32
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /usr/bin/mpicxx -arch i386 -arch x86_64
CXX = ${MPICXX} -arch i386 -arch x86_64
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = /sw/bin/gfortran -march=i386 -march=x86-64
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /usr/bin/mpicc -arch i386 -arch x86_64
LD = ${MPICC} -arch i386 -arch x86_64
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
4 changes: 2 additions & 2 deletions config/darwin32-petsc-dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /opt/local/bin/openmpicxx
CXX = ${MPICXX}
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = /opt/local/bin/openmpif90
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /opt/local/bin/openmpicxx
LD = ${MPICXX}
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = -lgcc_s.10.5 -lSystem ${PETSC_LIB}

Expand Down
8 changes: 4 additions & 4 deletions config/darwin32_openmpi
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
include ${PETSC_DIR}/bmake/common/variables
ARCHIVE_SUFFIX = .a
PETSC_FLAGS = ${CFLAGS} ${CCPPFLAGS}
CXX = /usr/local/bin/mpiCC
CC = /usr/local/bin/mpicc
F = /usr/local/bin/mpif77
LD = /usr/local/bin/mpiCC
CXX = ${MPICXX}
CC = ${MPICC}
F = ${MPIF77}
LD = ${MPICC}
BLAS= -framework Accelerate
MPI_INCLUDE = -I/usr/local/mpich-1.2.5/ch_p4/include

Expand Down
4 changes: 2 additions & 2 deletions config/darwin64
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /usr/bin/mpicxx -arch x86_64
CXX = ${MPICXX} -arch x86_64
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC} -arch x86_64
Expand All @@ -17,7 +17,7 @@ FC = ${F77} -m64

FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /usr/bin/mpicxx -arch x86_64
LD = ${MPICXX} -arch x86_64
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
4 changes: 2 additions & 2 deletions config/darwin64-petsc-dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = mpicxx -arch x86_64
CXX = ${MPICXX} -arch x86_64
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = /sw/bin/gfortran -march=x86-64
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = mpicxx -arch x86_64
LD = ${MPICXX} -arch x86_64
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
4 changes: 2 additions & 2 deletions config/darwin_i386
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /usr/bin/mpicxx
CXX = ${MPICXX}
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = gfortran
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /usr/bin/mpicc
LD = ${MPICC}
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
4 changes: 2 additions & 2 deletions config/darwin_i386_macports
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /opt/local/bin/openmpicxx
CXX = ${MPICXX}
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = /opt/local/bin/openmpif90
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /opt/local/bin/openmpicxx
LD = ${MPICXX}
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
4 changes: 2 additions & 2 deletions config/darwin_ppc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /opt/local/bin/openmpicxx
CXX = ${MPICXX}
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = /opt/local/bin/openmpif90
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /opt/local/bin/openmpicxx
LD = ${MPICXX}
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
4 changes: 2 additions & 2 deletions config/darwin_ppc_macports
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /opt/local/bin/openmpicxx
CXX = ${MPICXX}
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = /opt/local/bin/openmpif90
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /opt/local/bin/openmpicxx
LD = ${MPICXX}
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
2 changes: 1 addition & 1 deletion config/darwin_universal
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = mpicxx -arch ppc -arch ppc64 -arch i386 -arch x86_64
CXX = ${MPICXX} -arch ppc -arch ppc64 -arch i386 -arch x86_64
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand Down
4 changes: 2 additions & 2 deletions config/darwin_x86
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /usr/bin/mpicxx -arch i386 -arch x86_64
CXX = ${MPICXX} -arch i386 -arch x86_64
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = /sw/bin/gfortran -march=i386 -march=x86-64
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /usr/bin/mpicc -arch i386 -arch x86_64
LD = ${MPICC} -arch i386 -arch x86_64
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
4 changes: 2 additions & 2 deletions config/darwin_x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = /usr/bin/mpicxx -arch x86_64
CXX = ${MPICXX} -arch x86_64
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
Expand All @@ -15,7 +15,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = ${F77}
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = /usr/bin/mpicc -arch x86_64
LD = ${MPICC} -arch x86_64
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
6 changes: 3 additions & 3 deletions config/linux32
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = mpicxx -fPIC
CXX = ${MPICXX} -fPIC
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC} -fPIC
CCFLAGS = ${PETSC_CCPPFLAGS}

FC = mpif77
FC = ${MPIF77}
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = mpicxx -fPIC
LD = ${MPICXX} -fPIC
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
2 changes: 1 addition & 1 deletion config/linux64
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CCFLAGS = ${PETSC_CCPPFLAGS}
FC = gfortran
FCFLAGS = ${PETSC_FCPPFLAGS} -m64 -g

LD = mpicxx -m64 -g
LD = ${MPICXX} -m64 -g
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
6 changes: 3 additions & 3 deletions config/lonestar
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = mpicxx -cxx=g++ -fPIC
CXX = ${MPICXX} -cxx=g++ -fPIC
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
CCFLAGS = ${PETSC_CCPPFLAGS}

FC = mpif77 -fPIC
FC = ${MPIF77} -fPIC
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = mpicxx -fPIC
LD = ${MPICXX} -fPIC
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
6 changes: 3 additions & 3 deletions config/petsc
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = mpicxx
CXX = ${MPICXX}
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
CCFLAGS = ${PETSC_CCPPFLAGS}

FC = mpif77
FC = ${MPIF77}
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = mpicxx
LD = ${MPICXX}
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
6 changes: 3 additions & 3 deletions config/ranger
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ ARCHIVE_SUFFIX = .a

INCLUDES = -I${DAETK_DIR} -I${DAETK_DIR}/pete/pete-2.1.0/src -I${DAETK_DIR}/pdetk ${PETSC_INCLUDE}

CXX = mpicxx -fPIC
CXX = ${MPICXX} -fPIC
CXXFLAGS = -DF77_POST_UNDERSCORE -DUSE_BLAS -DCMRVEC_BOUNDS_CHECK -DMV_VECTOR_BOUNDS_CHECK -DPETSCVEC_BOUNDS_CHECK ${PETSC_CCPPFLAGS}

CC = ${PCC}
CCFLAGS = ${PETSC_CCPPFLAGS}

FC = mpif77 -fPIC
FC = ${MPIF77} -fPIC
FCFLAGS = ${PETSC_FCPPFLAGS}

LD = mpicxx -fPIC
LD = ${MPICXX} -fPIC
LDFLAGS = ${PCC_LINKER_FLAGS}
LDLIBS = ${PETSC_LIB}

Expand Down
2 changes: 1 addition & 1 deletion newDaspk/examples/MPI/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ OBJS = $(SOLVR)/ddaspk.o $(SOLVR)/daux.o $(SOLVR)/dlinpk.o \
$(SOLVR)/adf_dummy.o

# MPI fortran compile comands
MPIF = mpif77
MPIF = ${MPIF77}

#MPI compile options
MPIFLAGS = -lmpi
Expand Down

0 comments on commit 1594233

Please sign in to comment.