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.
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
include Make.inc
|
|
|
|
all: libd based precd kryld utild
|
|
@echo "====================================="
|
|
@echo "PSBLAS libraries Compilation Successful."
|
|
|
|
based: libd
|
|
precd utild: based
|
|
kryld: precd based
|
|
|
|
libd:
|
|
(if test ! -d lib ; then mkdir lib; fi)
|
|
(if test ! -d include ; then mkdir include; fi; $(INSTALL_DATA) Make.inc include/Make.inc.psblas)
|
|
based:
|
|
cd base && $(MAKE) lib
|
|
precd:
|
|
cd prec && $(MAKE) lib
|
|
kryld:
|
|
cd krylov && $(MAKE) lib
|
|
utild:
|
|
cd util&& $(MAKE) lib
|
|
|
|
install: all
|
|
(./mkdir.sh $(INSTALL_INCLUDEDIR) &&\
|
|
$(INSTALL_DATA) Make.inc $(INSTALL_INCLUDEDIR)/Make.inc.psblas)
|
|
(./mkdir.sh $(INSTALL_LIBDIR) &&\
|
|
$(INSTALL_DATA) lib/*.a $(INSTALL_LIBDIR))
|
|
(./mkdir.sh $(INSTALL_INCLUDEDIR) && \
|
|
$(INSTALL_DATA) lib/*$(.mod) $(INSTALL_INCLUDEDIR))
|
|
(./mkdir.sh $(INSTALL_DOCSDIR) && \
|
|
/bin/cp -fr docs/*pdf docs/html $(INSTALL_DOCSDIR))
|
|
(./mkdir.sh $(INSTALL_DOCSDIR) && \
|
|
$(INSTALL_DATA) README LICENSE $(INSTALL_DOCSDIR))
|
|
clean:
|
|
cd base && $(MAKE) clean
|
|
cd prec && $(MAKE) clean
|
|
cd krylov && $(MAKE) clean
|
|
cd util && $(MAKE) clean
|
|
|
|
check: all
|
|
make check -C test/serial
|
|
|
|
cleanlib:
|
|
(cd lib; /bin/rm -f *.a *$(.mod) *$(.fh))
|
|
(cd include; /bin/rm -f *.a *$(.mod) *$(.fh))
|
|
|
|
veryclean: cleanlib
|
|
cd base && $(MAKE) veryclean
|
|
cd prec && $(MAKE) veryclean
|
|
cd krylov && $(MAKE) veryclean
|
|
cd util && $(MAKE) veryclean
|
|
cd test/fileread && $(MAKE) clean
|
|
cd test/pargen && $(MAKE) clean
|
|
cd test/util && $(MAKE) clean
|
|
|