Skip to content

Instantly share code, notes, and snippets.

@alexholehouse
Last active January 6, 2024 18:26
Show Gist options
  • Save alexholehouse/0502b28e8f36fdd7a7a38566ee02c7a7 to your computer and use it in GitHub Desktop.
Save alexholehouse/0502b28e8f36fdd7a7a38566ee02c7a7 to your computer and use it in GitHub Desktop.
# Once complete we expect CAMPARI_HOME, INCLUDE_DIRS and LIB_DIRS to be defined above.
#
# Makefile.local
# Written by Alex Holehouse for CAMPARI compilation with GNU compilers. Developed
# for ubuntu docker container autodeployment
#
SRC_DIR=${CAMPARI_HOME}/source
FF=gfortran
CC=gcc
ARCH=x86_64
BIN_DIR=${CAMPARI_HOME}/bin
LIB_DIR=${CAMPARI_HOME}/lib
FFLAGS=-DDISABLE_FLOAT -DLINK_XDR -DLINK_FFTW -DLINK_NETCDF -DDISABLE_OPENMP4 -I${INCLUDE_DIRS} -I${LIB_DIR}/${ARCH} -I/usr/include/libxml2
EXTRA_LIBS= ${LIB_DIRS}/libnetcdff.a ${LIB_DIRS}/libnetcdf.a ${LIB_DIRS}/libhdf5_hl.a ${LIB_DIRS}/libhdf5.a -lcurl ${LIB_DIRS}/libz.a -ldl ${LIB_DIRS}/libfftw3.a -lxml2
THREADFLAGS=-openmp
COMPDEFAULTS=${GNUDEFAULTS}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment