Commit 4494e740 by Francois Gygi

*** empty log message ***


git-svn-id: http://qboxcode.org/svn/qb/trunk@744 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 53fb021d
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# aix64_mpi.mk
#
#-------------------------------------------------------------------------------
# $Id: aix64_mpi.mk,v 1.4 2008-09-08 15:56:19 fgygi Exp $
PLT=AIX
#-------------------------------------------------------------------------------
#XERCESCDIR=${HOME}/software/xml/xerces-c-${PLT}
XERCESCDIR=${HOME}/software/xml/aix64/xerces-c-src2_2_0
XERCESCLIBDIR=$(XERCESCDIR)/lib
CXX=mpxlC
LD=$(CXX)
PLTFLAGS += -DUSE_ESSL \
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
-DUSE_CSTDIO_LFS -DUSE_XERCES -DPLT_BIG_ENDIAN
INCLUDE = -I$(XERCESCDIR)/include
CXXFLAGS= -O2 -qmaxmem=-1 -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) \
$(DFLAGS) $(PLTFLAGS)
#CXXFLAGS= -g -qmaxmem=-1 -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) $(DFLAGS) \
$(DFLAGS) $(PLTFLAGS)
LIBPATH = -L $(XERCESCLIBDIR)
#PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
PLIBS = $(SCALAPACKLIB) $(CBLACSLIB)
LIBS = $(PLIBS) -lessl -lm -lmassv -lxlf90_r $(XERCESCLIBDIR)/libxerces-c.a
LDFLAGS = -bmaxdata:0x80000000 $(LIBPATH) $(LIBS)
BLACSDBGLVL = 0
BLACSdir = $(HOME)/software/blacs/aix64/BLACS/LIB
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-AIX-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-AIX-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
BLASLIB = /usr/local/lib/lapack.a -lessl
SCALAPACKdir = $(HOME)/software/scalapack/aix64/SCALAPACK
SCALAPACKLIB = $(SCALAPACKdir)/libscalapack.a
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# aix_mpi.mk
#
#-------------------------------------------------------------------------------
# $Id: aix_mpi.mk,v 1.18 2008-11-14 04:03:20 fgygi Exp $
PLT=AIX
#-------------------------------------------------------------------------------
XERCESCDIR=${HOME}/qb/software/xerces/xerces-c-src_2_7_0
XERCESCLIBDIR=$(XERCESCDIR)/lib
FFTWDIR=$(HOME)/qb/software/fftw/fftw-2.1.5/fftw
FFTWLIBDIR=$(FFTWDIR)/.libs
FFTWINCLUDEDIR=$(FFTWDIR)
CXX=mpCC
LD=$(CXX)
PLTFLAGS += -DUSE_FFTW -DUSE_CSTDIO_LFS -DUSE_XERCES -DPLT_BIG_ENDIAN
INCLUDE = -I$(XERCESCDIR)/include -I$(FFTWINCLUDEDIR)
CXXFLAGS= -O2 -qmaxmem=-1 -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) \
$(DFLAGS) $(PLTFLAGS)
LIBPATH = -L$(XERCESCLIBDIR) -L/usr/local/apps/scalapack -L$(FFTWLIBDIR)
PLIBS = $(SCALAPACKLIB) $(BLACSLIB)
LIBS = $(PLIBS) -lessl -lm -lmassv -lxlf90_r -lfftw \
$(XERCESCLIBDIR)/libxerces-c.a
LDFLAGS = -bmaxdata:0x80000000 $(LIBPATH) $(LIBS)
BLACSLIB = -lblacs
SCALAPACKLIB = -lscalapack
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# aix_mpi.mk
#
#-------------------------------------------------------------------------------
# $Id: aix_mpi_gcc.mk,v 1.4 2008-09-08 15:56:19 fgygi Exp $
PLT=AIX
#-------------------------------------------------------------------------------
XERCESCDIR=${HOME}/software/xml/xerces-c-${PLT}
XERCESCLIBDIR=/usr/apps/qbox/lib
MPIDIR=/usr/local/mpi
GCCDIR=/usr/local/tools/gnu/gcc/3.1_aix_5
CXX=$(GCCDIR)/bin/g++
LD=$(CXX)
DFLAGS += -DUSE_ESSL -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
INCLUDE = -I$(XERCESCDIR)/include -I$(MPIDIR)/include
#CXXFLAGS= -O2 -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) $(DFLAGS)
CXXFLAGS= -g -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) $(DFLAGS)
LIBPATH = -L$(GCCDIR)/lib -L$(GCCDIR)/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.1 \
-L $(XERCESCLIBDIR) -L $(MPIDIR)/lib
PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
LIBS = $(PLIBS) -lessl -lm -lmassv -lxlf90_r \
$(XERCESCLIBDIR)/libxerces-c.so -lmpich \
$(GCCDIR)/lib/libg2c.a
LDFLAGS = $(LIBPATH) $(LIBS)
#
# BLACS setup. All version need the debug level (0 or 1),
# and the directory where the BLACS libraries are
#
BLACSDBGLVL = 0
BLACSdir = $(HOME)/lib
#
# MPI setup; uncomment and tailor to your system if using MPIBLACS
# Will need to comment out the default native BLACS setup below below
#
#USEMPI = -DUsingMpiBlacs
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-SP-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-SP-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-SP-$(BLACSDBGLVL).a
#
# system primitive BLACS setup, comment out if using MPI
#
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)
#
# BLAS and LAPACK
#
#BLASLIB = /usr/local/lib/lapack.a -lesslsmp
BLASLIB = /usr/local/lib/lapack.a -lessl
#
# The name of the libraries to be linked to
#
PBLASLIB = $(HOME)/lib/pblas_SP.a
SCALAPACKLIB = $(HOME)/lib/libscalapack_SP.a
TOOLSLIB = $(HOME)/lib/tools_SP.a
REDISTLIB = $(HOME)/lib/redist_SP.a
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# aix_mpip.mk
#
#-------------------------------------------------------------------------------
# $Id: aix_mpip.mk,v 1.6 2008-09-08 15:56:19 fgygi Exp $
PLT=AIX
#-------------------------------------------------------------------------------
XERCESCDIR=${HOME}/software/xml/xerces-c-${PLT}
CXX=newmpxlC
LD=$(CXX)
INCLUDE = -I$(XERCESCDIR)/include
CXXFLAGS= -O3 -qmaxmem=-1 -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) $(DFLAGS)
#CXXFLAGS= -g -qmaxmem=-1 -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) $(DFLAGS)
LIBPATH = -L$(XERCESCDIR)/lib -L/usr/local/mpiP/lib
PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
LIBS = $(PLIBS) -lessl -lm -lmassv \
-lxlf90_r -lmpiP -lbfd -liberty -lintl \
${XERCESCDIR}/lib/libxerces-c.so
LDFLAGS = -bmaxdata:0x80000000 $(LIBPATH) $(LIBS)
#
# BLACS setup. All version need the debug level (0 or 1),
# and the directory where the BLACS libraries are
#
BLACSDBGLVL = 0
BLACSdir = $(HOME)/lib
#
# MPI setup; uncomment and tailor to your system if using MPIBLACS
# Will need to comment out the default native BLACS setup below below
#
#USEMPI = -DUsingMpiBlacs
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-SP-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-SP-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-SP-$(BLACSDBGLVL).a
#
# system primitive BLACS setup, comment out if using MPI
#
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)
#
# BLAS and LAPACK
#
#BLASLIB = /usr/local/lib/lapack.a -lesslsmp
BLASLIB = /usr/local/lib/lapack.a -lessl
#
# The name of the libraries to be linked to
#
PBLASLIB = $(HOME)/lib/pblas_SP.a
SCALAPACKLIB = $(HOME)/lib/libscalapack_SP.a
TOOLSLIB = $(HOME)/lib/tools_SP.a
REDISTLIB = $(HOME)/lib/redist_SP.a
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# bgl.mk
#
#-------------------------------------------------------------------------------
# $Id: bgl.mk,v 1.5 2008-09-08 15:56:19 fgygi Exp $
#
PLT=BGL
#-------------------------------------------------------------------------------
BGL_ROOT=/bgl/BlueLight/ppcfloor
BGL_SYS=$(BGL_ROOT)/bglsys
LIBS_MPI += -L $(BGL_ROOT)/bglsys/lib -lmpich.rts \
-lmsglayer.rts -lrts.rts -ldevices.rts
GNU_ROOT=/BlueLight/ppcfloor
BLRTS_GNU_ROOT=$(GNU_ROOT)/blrts-gnu
CXX=/opt/ibmcmp/vacpp/7.0/bin/blrts_xlC
LD=$(CXX)
PLTFLAGS += -DUSE_FFTW \
-DUSE_MPI -DSCALAPACK \
-D__linux__ -DPLT_BIG_ENDIAN -DUSE_XERCES \
-DUSE_CSTDIO_LFS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
-DUSE_APC
FFTWDIR=$(HOME)/software/fftw/bgl/bglfftwgel-2.1.5.pre5
FFTWINCLUDEDIR=$(FFTWDIR)/fftw
FFTWLIBDIR=$(FFTWDIR)/fftw/.libs
APCDIR=$(HOME)/Ctools/counters/bglusr
APCINCLUDEDIR=$(APCDIR)/include
APCLIBDIR=$(APCDIR)/lib
APCLIB=-L$(APCLIBDIR) -lapc.rts -L$(BGL_SYS)/lib -lbgl_perfctr.rts
XERCESCDIR=$(HOME)/software/xml/xerces-c-src_2_6_0
XERCESCLIBDIR=$(XERCESCDIR)/lib
#BLASDIR=/bgl/local/lib
BLASDIR=$(HOME)/software/blas/lib
INCLUDE = -I$(XERCESCDIR)/include \
-I$(FFTWINCLUDEDIR) -I$(BGL_ROOT)/bglsys/include \
-I$(APCINCLUDEDIR)
CXXFLAGS= -g -O3 -qarch=440 -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(FFTWLIBDIR) \
-L$(BLASDIR) -L$(XERCESCLIBDIR) \
-L/opt/ibmcmp/xlf/9.1/blrts_lib -L$(APCLIBDIR)
LIBS = $(PLIBS) -lfftw $(BLASLIB) -lg2c \
-lxlf90 -lxlopt -lxlomp_ser -lxl -lxlfmath -lmassv -lxerces-c \
$(APCLIB)
LDFLAGS = $(LIBPATH) $(LIBS) $(LIBS_MPI)
PLAT=BGL
# Blacs libraries
BLACSDBGLVL = 0
BLACSdir = $(HOME)/software/blacs/bgl/BLACS/LIB
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLAT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLAT)-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
# Scalapack libraries
SCALAPACK_DIR = $(HOME)/software/scalapack/bgl/SCALAPACK
PBLASLIB = $(SCALAPACK_DIR)/pblas_$(PLAT).a
SCALAPACKLIB = $(SCALAPACK_DIR)/libscalapack.a
LAPACKLIB = -llapack440
BLASLIB = -ldgemm.rts -lblas440
# Parallel libraries
PLIBS = $(SCALAPACKLIB) $(CBLACSLIB)
#-------------------------------------------------------------------------------
.C.s:
$(CXX) $(CXXFLAGS) $(INCLUDE) -S $<
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# fpmd.mk
#
#-------------------------------------------------------------------------------
# $Id: fpmd.mk,v 1.9 2008-09-08 15:56:19 fgygi Exp $
#
PLT=LINUX
#-------------------------------------------------------------------------------
GCCDIR=/usr/apps/gcc/3.3.2
MPIDIR=/usr/apps/mpich/1.2.5
XERCESCDIR=/home/fgygi/software/xml/xerces-c-${PLT}
CXX=icc
LD=$(CXX)
PLTFLAGS += -DIA32 -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES
PLTOBJECTS = readTSC.o
FFTWDIR=$(HOME)/fftw/linux-pc-fpmd/fftw-2.1.3/fftw
BLASDIR=/usr/lib
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR) -I$(XERCESCDIR)/include
CXXFLAGS= -O3 -xW -Zp16 \
-D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(FFTWDIR) -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L $(BLASDIR) -L $(GCCDIR)/lib -L$(XERCESCDIR)/lib
LIBS = $(PLIBS) -lfftw -llapack -lblas -lm -lmpich -lpmpich -lmpich \
-lg2c -lxerces-c
LDFLAGS = $(LIBPATH) $(LIBS)
# Blacs libraries
BLACSDBGLVL = 0
#BLACSdir = /home/casc/repository/fpmd/software/BLACS/LIB
BLACSdir = $(HOME)/software/blacs/fpmd/BLACS/LIB
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLT)-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
# Scalapack libraries
#SCALAPACK_DIR = /home/casc/repository/fpmd/lib
SCALAPACK_DIR = $(HOME)/software/scalapack/fpmd/SCALAPACK
SCALAPACKLIB = $(SCALAPACK_DIR)/libscalapack.a
LAPACKLIB = -llapack
BLASLIB = -lblas
# Parallel libraries
PLIBS = $(SCALAPACKLIB) $(CBLACSLIB)
#-------------------------------------------------------------------------------
.C.s:
$(CXX) $(CXXFLAGS) $(INCLUDE) -S $<
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# fpmd.mk
#
#-------------------------------------------------------------------------------
# $Id: fpmd_sse2.mk,v 1.4 2008-09-08 15:56:19 fgygi Exp $
#
PLT=LINUX
#-------------------------------------------------------------------------------
GCCDIR=/usr/apps/gcc/3.3.2
MPIDIR=/usr/apps/mpich/1.2.5
XERCESCDIR=/home/fgygi/software/xml/xerces-c-${PLT}
CXX=icc
LD=$(CXX)
PLTFLAGS += -DUSE_SSE2 -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS
PLTOBJECTS = readTSC.o
FFTWDIR=$(HOME)/fftw/linux-pc-fpmd/fftw-2.1.3/fftw
BLASDIR=/usr/lib
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR) -I$(XERCESCDIR)/include
CXXFLAGS= -O3 -xW -Zp16 \
-D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(FFTWDIR) -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L $(BLASDIR) -L $(GCCDIR)/lib -L$(XERCESCDIR)/lib
LIBS = $(PLIBS) -lfftw -llapack -lblas -lm -lmpich -lpmpich -lmpich \
-lg2c -lxerces-c
LDFLAGS = $(LIBPATH) $(LIBS)
# Blacs libraries
BLACSDBGLVL = 0
BLACSdir = /home/casc/repository/fpmd/software/BLACS/LIB
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLT)-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)
# Scalapack libraries
SCALAPACK_DIR = /home/casc/repository/fpmd/lib
PBLASLIB = $(SCALAPACK_DIR)/pblas_$(PLT).a
SCALAPACKLIB = $(SCALAPACK_DIR)/scalapack_$(PLT).a
TOOLSLIB = $(SCALAPACK_DIR)/tools_$(PLT).a
REDISTLIB = $(SCALAPACK_DIR)/redist_$(PLT).a
LAPACKLIB = -llapack
BLASLIB = -lblas
# Parallel libraries
PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
#-------------------------------------------------------------------------------
.C.s:
$(CXX) $(CXXFLAGS) $(INCLUDE) -S $<
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
# ------------------------------------------------------------------------------
#
# hbar-gcc.mk
#
#-------------------------------------------------------------------------------
# $Id: hbar-gcc.mk,v 1.5 2008-09-08 15:56:19 fgygi Exp $
#
PLT=LINUX
#-------------------------------------------------------------------------------
GCCDIR=/usr/apps/gcc/3.1
MPIDIR=/home/fgygi/software/gm
XERCESCDIR=/home/fgygi/software/xml/xerces-c-${PLT}
CXX=$(GCCDIR)/bin/g++
LD=$(CXX)
PLTFLAGS = -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS
FFTWDIR=$(HOME)/fftw/fftw-2.1.3/fftw
BLASDIR=$(HOME)/software/mkl/lib/32
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR) -I$(XERCESCDIR)/include
CXXFLAGS= -O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith \
-Wcast-align -pedantic -fno-schedule-insns -fschedule-insns2 -malign-double \
-fstrict-aliasing -mcpu=pentiumpro \
-D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(FFTWDIR) -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L $(BLASDIR) -L $(GCCDIR)/lib -L$(XERCESCDIR)/lib
LIBS = $(PLIBS) -lfftw -lmkl_lapack $(BLASDIR)/libmkl_def.a \
-lm -lmpich -lpmpich -lmpich -lgm \
-lg2c -lguide -pthread $(XERCESCDIR)/lib/libxerces-c.a
LDFLAGS = $(LIBPATH) $(LIBS)
# Blacs libraries
BLACSDBGLVL = 0
BLACSdir = /home/casc/repository/fpmd/software/BLACS/LIB
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLT)-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)
# Scalapack libraries
SCALAPACK_DIR = /home/casc/repository/fpmd/lib
PBLASLIB = $(SCALAPACK_DIR)/pblas_$(PLT).a
SCALAPACKLIB = $(SCALAPACK_DIR)/scalapack_$(PLT).a
TOOLSLIB = $(SCALAPACK_DIR)/tools_$(PLT).a
REDISTLIB = $(SCALAPACK_DIR)/redist_$(PLT).a
LAPACKLIB = -llapack
BLASLIB = -lblas
# Parallel libraries
PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# hbar-icc.mk
#
#-------------------------------------------------------------------------------
# $Id: hbar-icc.mk,v 1.4 2008-09-08 15:56:19 fgygi Exp $
#
PLT=LINUX
#-------------------------------------------------------------------------------
GCCDIR=/usr/apps/gcc/3.1
MPIDIR=/home/fgygi/software/gm
XERCESCDIR=/home/fgygi/software/xml/xerces-c-${PLT}
CXX=icc
LD=$(CXX)
PLTFLAGS = -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS
FFTWDIR=$(HOME)/fftw/fftw-2.1.3/fftw
BLASDIR=$(HOME)/software/mkl/lib/32
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR) -I$(XERCESCDIR)/include
CXXFLAGS= -O3 -Zp16 \
-D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(FFTWDIR) -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L $(BLASDIR) -L $(GCCDIR)/lib -L$(XERCESCDIR)/lib
LIBS = $(PLIBS) -lfftw -lmkl_lapack $(BLASDIR)/libmkl_def.a \
-lm -lmpich -lpmpich -lmpich -lgm \
-lg2c -lguide -pthread $(XERCESCDIR)/lib/libxerces-c.a
LDFLAGS = $(LIBPATH) $(LIBS)
# Blacs libraries
BLACSDBGLVL = 0
BLACSdir = /home/casc/repository/fpmd/software/BLACS/LIB
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLT)-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)
# Scalapack libraries
SCALAPACK_DIR = /home/casc/repository/fpmd/lib
PBLASLIB = $(SCALAPACK_DIR)/pblas_$(PLT).a
SCALAPACKLIB = $(SCALAPACK_DIR)/scalapack_$(PLT).a
TOOLSLIB = $(SCALAPACK_DIR)/tools_$(PLT).a
REDISTLIB = $(SCALAPACK_DIR)/redist_$(PLT).a
LAPACKLIB = -llapack
BLASLIB = -lblas
# Parallel libraries
PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#------------------------------------------------------------------------------
#
# hbar2-gcc.mk
#
#-------------------------------------------------------------------------------
# $Id: hbar2-gcc.mk,v 1.4 2008-09-08 15:56:19 fgygi Exp $
#
PLT=LINUX
#-------------------------------------------------------------------------------
#GCCDIR=/usr/apps/gcc/gcc-3.4.0
GMDIR=/GM
MPIDIR=/MPI
XERCESCDIR=/home/fgygi/software/xml/xerces-c-src_2_5_0
FFTWDIR=/usr/apps/fftw
ATLASDIR=/home/fgygi/software/atlas/Linux_HAMMER64SSE2
SCALAPACK_DIR = /home/fgygi/software/scalapack/SCALAPACK
BLACSdir = /home/fgygi/software/blacs/BLACS/LIB
#CXX=$(GCCDIR)/bin/g++
CXX=g++
LD=$(CXX)
PLTFLAGS = -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DUSE_MPI -DSCALAPACK -DADD_ \
-DAPP_NO_THREADS -DXML_USE_NO_THREADS
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR)/include -I$(XERCESCDIR)/include
CXXFLAGS= -O3 -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
LIBPATH = -L$(FFTWDIR)/lib -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L $(ATLASDIR)/lib \
-L$(XERCESCDIR)/lib \
-L$(GMDIR)/lib \
# -L $(GCCDIR)/lib
LIBS = $(PLIBS) -lfftw -llapack -lf77blas -latlas \
-lm -lmpich -lpmpich -lmpich -lgm \
$(XERCESCDIR)/lib/libxerces-c.a -lg2c
LDFLAGS = $(LIBPATH) $(LIBS)
# Blacs libraries
BLACSDBGLVL = 0
BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLT)-$(BLACSDBGLVL).a
CBLACSLIB = $(BLACSCINIT) $(BLACSLIB) $(BLACSCINIT)
FBLACSLIB = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT)
# Scalapack libraries
# PBLASLIB = $(SCALAPACK_DIR)/pblas_$(PLT).a
SCALAPACKLIB = $(SCALAPACK_DIR)/scalapack_$(PLT).a
# TOOLSLIB = $(SCALAPACK_DIR)/tools_$(PLT).a
# REDISTLIB = $(SCALAPACK_DIR)/redist_$(PLT).a
#LAPACKLIB = -llapack
#BLASLIB = -lblas
LAPACKLIB = -llapack
BLASLIB = -lf77blas
# Parallel libraries
PLIBS = $(SCALAPACKLIB) $(PBLASLIB) $(TOOLSLIB) $(REDISTLIB) $(CBLACSLIB)
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#
#-------------------------------------------------------------------------------
#
# linux-pc.mk
#
#-------------------------------------------------------------------------------
# $Id: linux-pc.mk,v 1.5 2008-09-08 15:56:20 fgygi Exp $
#
PLT=LINUX
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
GCCDIR=/usr/apps/gcc/3.1
CXX=$(GCCDIR)/bin/g++
LD=$(CXX)
FFTWDIR=$(HOME)/fftw/linux-pc/fftw-1.3/src
BLASDIR=/usr/lib
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR)
CXXFLAGS= -O2 -D$(PLT) -DADD_ $(INCLUDE) $(DFLAGS)
LIBPATH = -L$(BLASDIR) -L$(FFTWDIR) -L$(GCCDIR)/lib
#LIBPATH = -L$(BLASDIR) -L$(FFTWDIR) -L/usr/X11R6/lib -L$(GCCDIR)/lib
LIBS = -lfftw -llapack -lblas -lm -lg2c
LDFLAGS = $(LIBPATH) $(LIBS)
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008 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/>.
#