2003-11-13 21:35:10 +08:00
|
|
|
# @configure_input@
|
2005-03-09 02:44:10 +08:00
|
|
|
|
2005-03-16 20:20:24 +08:00
|
|
|
# compilation rules
|
|
|
|
|
2005-03-09 02:44:10 +08:00
|
|
|
.SUFFIXES :
|
|
|
|
.SUFFIXES : .o .c .f .f90
|
|
|
|
|
|
|
|
.f90.o:
|
|
|
|
@f90rule@
|
|
|
|
|
|
|
|
.f.o:
|
2005-03-16 19:45:27 +08:00
|
|
|
$(F77) $(FFLAGS) -c $<
|
2005-03-09 02:44:10 +08:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2004-11-04 23:32:37 +08:00
|
|
|
@SET_MAKE@
|
2003-11-13 21:35:10 +08:00
|
|
|
CC = @cc@
|
2005-03-09 00:57:25 +08:00
|
|
|
CFLAGS = @cflags@ $(DFLAGS) $(IFLAGS)
|
2003-11-13 21:35:10 +08:00
|
|
|
CPP = @cpp@
|
2004-08-20 21:15:35 +08:00
|
|
|
CPPFLAGS = @cppflags@ $(DFLAGS) $(IFLAGS)
|
2003-11-13 21:35:10 +08:00
|
|
|
F77 = @f77@
|
|
|
|
F90 = @f90@
|
2005-03-16 20:20:24 +08:00
|
|
|
FFLAGS = @fflags@
|
|
|
|
F90FLAGS = @f90flags@ @pre_fdflags@$(FDFLAGS) $(IFLAGS) $(MODFLAGS)
|
2005-03-16 19:45:27 +08:00
|
|
|
FFLAGS_NOOPT = @fflags_noopt@
|
2005-03-16 20:20:24 +08:00
|
|
|
F90FLAGS_NOOPT = @f90flags_noopt@ @pre_fdflags@$(FDFLAGS) $(IFLAGS) $(MODFLAGS)
|
2003-11-13 21:35:10 +08:00
|
|
|
LD = @ld@
|
2005-09-29 21:17:39 +08:00
|
|
|
LDFLAGS = @ldflags@
|
2005-03-16 20:20:24 +08:00
|
|
|
AR = @ar@
|
|
|
|
ARFLAGS = @arflags@
|
|
|
|
RANLIB = @ranlib@
|
2005-05-31 22:23:38 +08:00
|
|
|
BLAS_LIBS = @blas_libs@
|
|
|
|
LAPACK_LIBS = @lapack_libs@
|
|
|
|
FFT_LIBS = @fft_libs@
|
|
|
|
MPI_LIBS = @mpi_libs@
|
|
|
|
MASS_LIBS = @mass_libs@
|
2005-03-16 20:20:24 +08:00
|
|
|
|
|
|
|
# -----------------------------
|
|
|
|
# application-specific settings
|
|
|
|
|
|
|
|
# See include/defs.h.README for a list of precompilation options
|
|
|
|
# (possible arguments to -D or -U) and their meaning
|
|
|
|
DFLAGS = @dflags@
|
|
|
|
FDFLAGS = @fdflags@
|
|
|
|
IFLAGS = -I../include @ifftw@
|
2005-04-15 05:08:53 +08:00
|
|
|
MODFLAGS = @imod@. @imod@../Modules @imod@../PW @imod@../PH @imod@../iotk/src
|
2005-03-16 20:20:24 +08:00
|
|
|
|
2005-04-15 05:08:53 +08:00
|
|
|
LIBOBJS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a ../iotk/src/libiotk.a
|
2004-02-03 20:08:55 +08:00
|
|
|
# LIBS must contain the location of all needed external libraries
|
2005-05-31 22:23:38 +08:00
|
|
|
LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FFT_LIBS) $(MPI_LIBS) $(MASS_LIBS)
|
2004-02-03 20:08:55 +08:00
|
|
|
# MYLIB can be one of the following (depending on LIBS):
|
|
|
|
# blas : compile the local copy of blas routines
|
|
|
|
# lapack : compile the local copy of lapack routines
|
|
|
|
# blas_and_lapack : all of the above - use this for a quick test
|
|
|
|
# or if you don't have an optimized blas/lapack library
|
|
|
|
# lapack_ibm : compile only lapack routines not present in IBM ESSL
|
|
|
|
# use this together with IBM ESSL
|
|
|
|
# lapack_t3e : compile only lapack routines not present in T3E scilib
|
|
|
|
# use this together with T3E scilib
|
|
|
|
# lapack_mkl : compile only lapack routines not present in Intel MKL
|
|
|
|
# use this together with Intel MKL
|
2004-02-11 18:50:03 +08:00
|
|
|
MYLIB = @mylib@
|