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.
|
|
|
INSTALLDIR=../..
|
|
|
|
INCDIR=$(INSTALLDIR)/include
|
|
|
|
MODDIR=$(INSTALLDIR)/modules/
|
|
|
|
include $(INCDIR)/Make.inc.psblas
|
|
|
|
#
|
|
|
|
# Libraries used
|
|
|
|
LIBDIR=$(INSTALLDIR)/lib
|
|
|
|
PSBLAS_LIB= -L$(LIBDIR) -lpsb_util -lpsb_krylov -lpsb_prec -lpsb_base
|
|
|
|
LDLIBS=$(PSBLDLIBS)
|
|
|
|
#
|
|
|
|
# Compilers and such
|
|
|
|
#
|
|
|
|
CCOPT= -g
|
|
|
|
FINCLUDES=$(FMFLAG)$(MODDIR) $(FMFLAG).
|
|
|
|
|
|
|
|
|
|
|
|
EXEDIR=./runs
|
|
|
|
|
|
|
|
all: runsd hello pingpong
|
|
|
|
|
|
|
|
runsd:
|
|
|
|
(if test ! -d runs ; then mkdir runs; fi)
|
|
|
|
|
|
|
|
hello: hello.o
|
|
|
|
$(FLINK) hello.o -o hello $(PSBLAS_LIB) $(LDLIBS)
|
|
|
|
/bin/mv hello $(EXEDIR)
|
|
|
|
|
|
|
|
pingpong: pingpong.o
|
|
|
|
$(FLINK) pingpong.o -o pingpong $(PSBLAS_LIB) $(LDLIBS)
|
|
|
|
/bin/mv pingpong $(EXEDIR)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f hello.o pingpong.o
|
|
|
|
$(EXEDIR)/hello
|
|
|
|
verycleanlib:
|
|
|
|
(cd ../..; make veryclean)
|
|
|
|
lib:
|
|
|
|
(cd ../../; make library)
|
|
|
|
|
|
|
|
|
|
|
|
|