Code: Select all
#
# Copyright (c) 2010 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.mk
#
#-------------------------------------------------------------------------------
#
PLT=MacOSX_x8664
#-------------------------------------------------------------------------------
XERCESCDIR=$(HOME)/software/xerces/xerces-c-src_2_8_0
FFTWDIR=$(HOME)/software/fftw/fftw-2.1.5/fftw
PLTOBJECTS = readTSC.o
CXX=g++-4.0
LD=$(CXX)
PLTFLAGS += -DIA32 -DUSE_FFTW -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES
INCLUDE = -I$(FFTWDIR) -I$(XERCESCDIR)/include
CXXFLAGS= -g -Wunused -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(FFTWDIR)/.libs -L$(XERCESCDIR)/lib
LIBS = -lfftw -llapack -lblas -lm \
On a Fedora/Intel x86_64 platform, the following makefile include can be used to build a serial version:
Code: Select all
#-------------------------------------------------------------------------------
#
# Copyright (c) 2010 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/>.
#
#-------------------------------------------------------------------------------
#
# x8664_gcc_serial.mk
#
#-------------------------------------------------------------------------------
#
PLT=Linux_x8664
#-------------------------------------------------------------------------------
CXX=/usr/bin/g++
LD=$(CXX)
LDFLAGS = $(LIBPATH) $(LIBS)
PLTFLAGS += -DIA32 -DUSE_FFTW -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES
BLASDIR=/usr/lib64/atlas
LAPACKDIR=/usr/lib64/atlas
XERCESCDIR=$(HOME)/software/xerces/Linux_x8664/xerces-c-src_2_7_0
PLTOBJECTS = readTSC.o
INCLUDE = -I$(XERCESCDIR)/include
CXXFLAGS= -O4 -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(BLASDIR)
LIBS = -lpthread -lfftw -lxerces-c -luuid -llapack \
-lf77blas -latlas -lgfortran
#-------------------------------------------------------------------------------