Main Page | Class List | File List | Class Members | File Members | Related Pages

Typical "Makefile"s for Various Platforms

Makefile for scorec++ + atlas + blacs + scalapack

###############################################################################
##                                 Makefile                                  ##
###############################################################################
CPP = scorec++
FLAGS = -O2 -Wall

#MACROS = -DCPPSL_DEBUG

INCLUDE_DIRS = -I/opt/score/mpi/mpich-1.2.4/i386-redhat7-linux2_4_gnu/include \
               -I$(HOME)/local/lib/cppscalapack/include
LIB_DIRS = -L$(HOME)/local/lib \
           -L/opt/score/mpi/mpich-1.2.4/i386-redhat7-linux2_4_gnu/lib
LIBS = -lscalapack -lblacs -lblacsF77init -lblacs -llapack -lblas -latlas \
       -lmpich -lg2c
OBJECTS = main.o

###############################################################################

A.OUT: $(OBJECTS)
  $(CPP) $(OBJECTS) $(FLAGS) $(LIB_DIRS) $(LIBS) -o $@

.SUFFIXES: .cpp .o

.cpp.o:
  $(CPP) -c $< $(FLAGS) $(INCLUDE_DIRS) $(MACROS)

clean:
  rm -f $(OBJECTS)
  rm -f *~

fullclean:
  rm -f A.OUT std err
  rm -f $(OBJECTS)
  rm -f *~

remake: clean A.OUT

Generated on Sat Jan 31 19:25:46 2004 for CPPScaLapack by doxygen 1.3.5