Commit 939c1538 by Francois Gygi

Add Mac OS makefile

parent 3ffc3f07
#
# Copyright (c) 2014 The Regents of the University of California
#
# This file is part of Qbox
#
# Qbox is distributed under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
# See the file COPYING in the root directory of this distribution
# or <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------
#
# macosx_openmpi.mk
#
#-------------------------------------------------------------------------------
#
PLT=MacOSX_x86_64
#-------------------------------------------------------------------------------
SCALAPACKDIR=$(HOME)/software/scalapack/scalapack-2.0.2
LAPACKDIR=$(HOME)/software/lapack/lapack-3.5.0
BLASDIR=$(HOME)/software/blas/BLAS
PLTOBJECTS = readTSC.o
CXX=mpiCC
LD=$(CXX)
PLTFLAGS += -DIA32 -DUSE_MPI -DUSE_FFTW2 -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES -DXERCESC_3 \
-DSCALAPACK -DUSE_UUID
INCLUDE = -I$(FFTWDIR)
CXXFLAGS= -g -O3 -Wunused -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(SCALAPACKDIR) -L$(LAPACKDIR) -L$(BLASDIR)
LIBS = -lfftw -lscalapack -llapack -lblas -lm -lgfortran \
-lxerces-c -lpthread -lmpi_cxx -lstdc++ -lcurl -liconv
LDFLAGS = $(LIBPATH) $(LIBS)
#-------------------------------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment