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.
91 lines
2.4 KiB
Makefile
91 lines
2.4 KiB
Makefile
include Make.inc
|
|
|
|
all: dirs based precd kryld utild cbindd extd $(CUDAD) libd
|
|
@echo "====================================="
|
|
@echo "PSBLAS libraries Compilation Successful."
|
|
|
|
dirs:
|
|
(if test ! -d lib ; then mkdir lib; fi)
|
|
(if test ! -d include ; then mkdir include; fi; $(INSTALL_DATA) Make.inc include/Make.inc.psblas)
|
|
(if test ! -d modules ; then mkdir modules; fi;)
|
|
|
|
precd: based
|
|
utild: based
|
|
kryld: precd
|
|
extd: based
|
|
cudad: extd
|
|
cbindd: based precd kryld utild
|
|
|
|
libd: based precd kryld utild cbindd extd $(CUDALD)
|
|
$(MAKE) -C base lib
|
|
$(MAKE) -C prec lib
|
|
$(MAKE) -C krylov lib
|
|
$(MAKE) -C util lib
|
|
$(MAKE) -C cbind lib
|
|
$(MAKE) -C ext lib
|
|
cudald: cudad
|
|
$(MAKE) -C cuda lib
|
|
|
|
|
|
based:
|
|
$(MAKE) -C base objs
|
|
precd:
|
|
$(MAKE) -C prec objs
|
|
kryld:
|
|
$(MAKE) -C krylov objs
|
|
utild:
|
|
$(MAKE) -C util objs
|
|
cbindd:
|
|
$(MAKE) -C cbind objs
|
|
extd: based
|
|
$(MAKE) -C ext objs
|
|
cudad: based extd
|
|
$(MAKE) -C cuda objs
|
|
|
|
|
|
install: all
|
|
mkdir -p $(INSTALL_INCLUDEDIR) &&\
|
|
$(INSTALL_DATA) Make.inc $(INSTALL_INCLUDEDIR)/Make.inc.psblas
|
|
mkdir -p $(INSTALL_LIBDIR) &&\
|
|
$(INSTALL_DATA) lib/*.a $(INSTALL_LIBDIR)
|
|
mkdir -p $(INSTALL_MODULESDIR) && \
|
|
$(INSTALL_DATA) modules/*$(.mod) $(INSTALL_MODULESDIR)
|
|
mkdir -p $(INSTALL_INCLUDEDIR) && \
|
|
$(INSTALL_DATA) include/*.h $(INSTALL_INCLUDEDIR)
|
|
mkdir -p $(INSTALL_DOCSDIR) && \
|
|
/bin/cp -fr docs/*pdf docs/html $(INSTALL_DOCSDIR)
|
|
mkdir -p $(INSTALL_DOCSDIR) && \
|
|
$(INSTALL_DATA) README.md LICENSE $(INSTALL_DOCSDIR)
|
|
mkdir -p $(INSTALL_SAMPLESDIR) && \
|
|
/bin/cp -fr test/pargen test/fileread $(INSTALL_SAMPLESDIR) && \
|
|
mkdir -p $(INSTALL_SAMPLESDIR)/cbind && /bin/cp -fr cbind/test/pargen/* $(INSTALL_SAMPLESDIR)/cbind
|
|
clean:
|
|
$(MAKE) -C base clean
|
|
$(MAKE) -C prec clean
|
|
$(MAKE) -C krylov clean
|
|
$(MAKE) -C util clean
|
|
$(MAKE) -C cbind clean
|
|
$(MAKE) -C ext clean
|
|
$(MAKE) -C cuda clean
|
|
|
|
check: all
|
|
make check -C test/serial
|
|
|
|
cleanlib:
|
|
(cd lib; /bin/rm -f *.a *$(.mod) *$(.fh) *.h)
|
|
(cd include; /bin/rm -f *.a *$(.mod) *$(.fh) *.h)
|
|
(cd modules; /bin/rm -f *.a *$(.mod) *$(.fh) *.h)
|
|
|
|
veryclean: cleanlib
|
|
cd base && $(MAKE) veryclean
|
|
cd prec && $(MAKE) veryclean
|
|
cd krylov && $(MAKE) veryclean
|
|
cd util && $(MAKE) veryclean
|
|
cd cbind && $(MAKE) veryclean
|
|
cd ext && $(MAKE) veryclean
|
|
cd cuda && $(MAKE) veryclean
|
|
cd test/fileread && $(MAKE) clean
|
|
cd test/pargen && $(MAKE) clean
|
|
cd test/util && $(MAKE) clean
|
|
|