You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
5 years ago
|
include ../../Make.inc
|
||
|
#
|
||
|
# Libraries used
|
||
|
#
|
||
|
LIBDIR=../../lib/
|
||
|
INCLUDEDIR=../../include/
|
||
|
HERE=.
|
||
|
|
||
|
FINCLUDES=$(FMFLAG). $(FMFLAG)$(LIBDIR) $(FMFLAG)$(PSBLAS_INCDIR)
|
||
|
#PSBLAS_LIBS= -L$(PSBLAS_LIBDIR) -L$(LIBDIR) $(CPSBLAS_LIB) $(PSBLAS_LIB)
|
||
|
# -lpsb_krylov_cbind -lpsb_prec_cbind -lpsb_base_cbind
|
||
|
PSBC_LIBS= -L$(PSBLAS_CBIND_LIBDIR) \
|
||
|
-lpsb_krylov_cbind -lpsb_prec_cbind -lpsb_base_cbind
|
||
|
MLDC_LIBS=-L$(LIBDIR) -lmld_prec_cbind -lmld_prec -L$(MLDLIBDIR)
|
||
|
#
|
||
|
# Compilers and such
|
||
|
#
|
||
|
CCOPT= -g
|
||
|
FINCLUDES=$(FMFLAG)$(LIBDIR) $(FMFLAG).
|
||
|
CINCLUDES=-I$(LIBDIR) -I$(PSBLAS_CBIND_INCDIR) -I$(INCLUDEDIR)
|
||
|
|
||
|
EXEDIR=./runs
|
||
|
# 20110404 specifying UMFLIBS here is not portable!
|
||
|
#UMFLIBS=-lumfpack -lamd -lcholmod -lcolamd -lcamd -lccolamd -L/usr/include/suitesparse
|
||
|
#UMFFLAGS=-DHave_UMF_ -I/usr/include/suitesparse
|
||
|
|
||
|
all: mldec
|
||
|
|
||
|
mldec: mldec.o
|
||
|
$(MPF90) mldec.o -o mldec $(MLDC_LIBS) $(PSBC_LIBS) $(PSBCLDLIBS) $(PSBLAS_LIBS) \
|
||
|
$(UMFLIBS) $(PSBLDLIBS) -lm -lgfortran
|
||
|
# \
|
||
|
# -lifcore -lifcoremt -lguide -limf -lirc -lintlc -lcxaguard -L/opt/intel/fc/10.0.023/lib/ -lm
|
||
|
|
||
|
/bin/mv mldec $(EXEDIR)
|
||
|
|
||
|
.f90.o:
|
||
|
$(MPF90) $(F90COPT) $(FINCLUDES) $(FDEFINES) -c $<
|
||
|
.c.o:
|
||
|
$(MPCC) $(CCOPT) $(CINCLUDES) $(CDEFINES) -c $<
|
||
|
|
||
|
|
||
|
clean:
|
||
|
/bin/rm -f mldec.o $(EXEDIR)/mldec
|
||
|
verycleanlib:
|
||
|
(cd ../..; make veryclean)
|
||
|
lib:
|
||
|
(cd ../../; make library)
|
||
|
|
||
|
tests: all
|
||
|
cd runs ; ./mldec < mlde.inp
|
||
|
|
||
|
|