############################################################### # # Edit the following lines according to your implementation. # # The environment variable HOME_LORENE (root directory for the # Lorene implementation) must be have been already defined. # ############################################################### #===============================# # COMPILERS # #===============================# # C++ compiler: # ------------ CXX = icpc # Options for the C++ compiler to produce the optimized library: # ------------------------------------------------------------- CXXFLAGS = -O2 -DNDEBUG # Options for the C++ compiler to produce the library for debugging: # ----------------------------------------------------------------- CXXFLAGS_G = -g -132 ##-Woverloaded-virtual -g CXXFLAGS_G = -g # Path for the include files: # -------------------------- INC = -I$(HOME_LORENE)/C++/Include \ -I$(HOME_LORENE)/C++/Include_extra -I/usr/include/c++/3.4.3 -I/usr/include/c++/3.4.3/x86_64-redhat-linux -I/opt/local/gsl-2.5/include -I/opt/local/fftw-3.3.8/include/ # Converting archives to random libraries (if required, otherwise just ls) # ------------------------------------------------------------------------ RANLIB = ls # Fortran 77 compiler: # ------------------- F77 = ifort # Options for the Fortran 77 compiler to produce the optimized library: # --------------------------------------------------------------------- F77FLAGS = -O2 -132 # Options for the Fortran 77 compiler to produce the library for debugging: # ------------------------------------------------------------------------ F77FLAGS_G = -g -132 #===============================# # MAKEDEPEND # #===============================# # First line uses the C precompiler (usually called cpp) # if yours does not support the -M option try to figure out # how to output dependencies file, or use makedepend (2nd line) #-------------------------------------------------------------- #MAKEDEPEND = cpp $(INC) -M >> $(df).d $< MAKEDEPEND = touch $(df).d && makedepend $(INC) -f $(df).d $< DEPDIR = .deps #===============================# # SYSTEM LIBRARIES # #===============================# # FFT library: FFT991 in Fortran coming with Lorene # FFTW3 library (must be installed separately) # ------------------------------------------------------------------- FFT_DIR = FFTW3 # C, C++ library, mathematical library and Fortran library # --------------------------------------------------------- ifeq ($(FFT_DIR),FFTW3) LIB_CXX = -L/opt/local/fftw-3.3.8/lib/ -lfftw3 else LIB_CXX = endif # Linear Algebra Package (LAPACK) library # --------------------------------------- LIB_LAPACK = -llapack -lblas # Graphical libraries: PGPLOT and X11 # ----------------------------------- ### On the nodes, we shouldn't be invoking pgplot, but we do need -lifcore to get it to compile #LIB_PGPLOT = -L/usr/X11R6/lib64 -lX11 -lifcore ### on the main node, the following should work fine LIB_PGPLOT = -L/usr/X11R6/lib64 -L/opt/local/pgplot/ -lcpgplot -lpgplot -lX11 -lifcore # GNU scientific library # ----------------------------------- LIB_GSL = -L/opt/local/gsl-2.5/lib -lgsl -lgslcblas ### you need to have PATH include both icpc and ifort, currently in the following directory: #### /opt/intel/composer_xe_2011_sp1.11.339/bin/intel64 #### LD_LIBRARY_PATH needs to see the lapack, pgplot (if applicable; definitely libifcore.a) and gsl directories #### /opt/intel/composer_xe_2011_sp1.11.339/compiler/lib/intel64 and if need be, where lapack is