# make.sys. Generated from make.sys.in by configure. # compilation rules .SUFFIXES : .SUFFIXES : .o .c .f .f90 .F95 .f90.F95: $(CPP) $(CPPFLAGS) $< >& $*.F95 .F95.o: $(F90) $(F90FLAGS) -c $*.F95 -o $*.o .f.o: $(F77) $(FFLAGS) -c $< .c.o: $(CC) $(CFLAGS) -c $< CC = cc CFLAGS = -O $(DFLAGS) $(IFLAGS) CPP = g95 -cpp -E CPPFLAGS = $(DFLAGS) $(IFLAGS) F77 = g95 F90 = g95 FFLAGS = -O F90FLAGS = $(FFLAGS) $(FDFLAGS) $(IFLAGS) $(MODFLAGS) FFLAGS_NOOPT = -O0 -g -ftrace=full F90FLAGS_NOOPT = $(FFLAGS_NOOPT) $(FDFLAGS) $(IFLAGS) $(MODFLAGS) LD = g95 LDFLAGS = $(LIBS) AR = ar ARFLAGS = ruv RANLIB = echo BLAS_LIBS = -lblas LAPACK_LIBS = -llapack FFT_LIBS = -L/usr/local/lib -lfftw MPI_LIBS = MASS_LIBS = # ----------------------------- # application-specific settings # See include/defs.h.README for a list of precompilation options # (possible arguments to -D or -U) and their meaning DFLAGS = -D__FFTW -D__LINUX -D__G95 FDFLAGS = $(DFLAGS) IFLAGS = -I../include MODFLAGS = -I. -I../Modules -I../PW -I../PH -I../iotk/src LIBOBJS = ../flib/ptools.a ../flib/flib.a ../clib/clib.a ../iotk/src/libiotk.a # LIBS must contain the location of all needed external libraries LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FFT_LIBS) $(MPI_LIBS) $(MASS_LIBS) # 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 MYLIB =