Commit 45c481b5 by Francois Gygi

Use PLTFLAGS instead of DFLAGS for platform specific options (leaves DFLAG free…

Use PLTFLAGS instead of DFLAGS for platform specific options (leaves DFLAG free for use on the make command line)


git-svn-id: http://qboxcode.org/svn/qb/trunk@158 cba15fb0-1239-40c8-b417-11db7ca47a34
parent ab5fe459
......@@ -3,7 +3,7 @@
# aix_mpi.mk
#
#-------------------------------------------------------------------------------
# $Id: aix_mpi.mk,v 1.9 2003-12-02 20:26:29 fgygi Exp $
# $Id: aix_mpi.mk,v 1.10 2003-12-19 00:39:51 fgygi Exp $
PLT=AIX
#-------------------------------------------------------------------------------
XERCESCDIR=${HOME}/software/xml/xerces-c-${PLT}
......@@ -12,11 +12,13 @@ PLT=AIX
CXX=newmpxlC
LD=$(CXX)
DFLAGS += -DUSE_ESSL -D_LARGE_FILES
PLTFLAGS += -DUSE_ESSL -D_LARGE_FILES
INCLUDE = -I$(XERCESCDIR)/include
CXXFLAGS= -O2 -qmaxmem=-1 -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) $(DFLAGS)
#CXXFLAGS= -g -qmaxmem=-1 -DUSE_MPI -DSCALAPACK -D$(PLT) $(INCLUDE) $(DFLAGS)
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)
......
......@@ -3,7 +3,7 @@
# linux-pc_mpi.mk
#
#-------------------------------------------------------------------------------
# $Id: linux-pc_mpi_icc.mk,v 1.7 2003-11-21 19:16:41 fgygi Exp $
# $Id: linux-pc_mpi_icc.mk,v 1.8 2003-12-19 00:39:51 fgygi Exp $
#
PLT=LINUX
#-------------------------------------------------------------------------------
......@@ -14,7 +14,8 @@
CXX=icc
LD=$(CXX)
DFLAGS += -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PLTFLAGS += -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64 -DAPP_NO_THREADS -DXML_USE_NO_THREADS
#FFTWDIR=$(HOME)/fftw/linux-pc/fftw-1.3
FFTWDIR=$(HOME)/fftw/fftw-2.1.3/fftw
......@@ -23,10 +24,7 @@
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR) -I$(XERCESCDIR)/include
CXXFLAGS= -O3 -tpp6 -xW -Zp16 -DUSE_MPI -DSCALAPACK -DADD_ -D$(PLT) \
$(INCLUDE) $(DFLAGS) -DAPP_NO_THREADS -DXML_USE_NO_THREADS
# CXXFLAGS= -g -DUSE_MPI -DSCALAPACK -DADD_ -D$(PLT) $(INCLUDE) $(DFLAGS) \
# -DAPP_NO_THREADS -DXML_USE_NO_THREADS
$(INCLUDE) $(DFLAGS) $(PLTFLAGS)
LIBPATH = -L$(FFTWDIR) -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L $(BLASDIR) -L $(GCCDIR)/lib -L$(XERCESCDIR)/lib
......
......@@ -3,7 +3,7 @@
# linux-pc_mpi.mk
#
#-------------------------------------------------------------------------------
# $Id: mcr.mk,v 1.3 2003-12-01 17:51:56 fgygi Exp $
# $Id: mcr.mk,v 1.4 2003-12-19 00:39:51 fgygi Exp $
#
PLT=LINUX
#-------------------------------------------------------------------------------
......@@ -15,15 +15,16 @@
CXX=icc
LD=$(CXX)
DFLAGS += -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PLTFLAGS += -DUSE_FFTW -DUSE_CSTDIO_LFS -D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64
FFTWDIR=$(HOME)/fftw/linux-pc-icc/fftw-2.1.3/fftw
BLASDIR=/opt/intel/mkl/lib/32
INCLUDE = -I$(MPIDIR)/include -I$(FFTWDIR) -I$(XERCESCDIR)/include
#CXXFLAGS= -O2 -DUSE_MPI -DSCALAPACK -DADD_ -D$(PLT) $(INCLUDE) $(DFLAGS)
CXXFLAGS= -O3 -xW -Zp16 -tpp7 -DUSE_MPI -DSCALAPACK -DADD_ -D$(PLT) $(INCLUDE) $(DFLAGS)
CXXFLAGS= -O3 -xW -Zp16 -tpp7 -DUSE_MPI -DSCALAPACK -DADD_ \
-D$(PLT) $(INCLUDE) $(DFLAGS) $(PLTFLAGS)
LIBPATH = -L$(GCCDIR)/lib -L$(FFTWDIR) -L/usr/X11R6/lib \
-L$(MPIDIR)/lib -L$(BLASDIR) -L/usr/lib \
......
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