| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}AUTOMAKE_OPTIONS = subdir-objects@SET_MAKE@include MakeVariables.in# DOXYGEN SUPPORTinclude aminclude.amINSTALL_DIR = $(DESTDIR)$(datadir)/$(PACKAGE)EX_DIR = ./examplesRESULT_DIR = ./result# the subdirectories of the project to go into#SUBDIRS = DIST_SUBDIRS= \									doc/docEXTRA_DIST = \									$(EX_DIR)/src \									$(EX_DIR)/include \									$(EX_DIR)/Makefile \									$(EX_DIR)/scripts \									$(DX_CONFIG) \									scripts# additional include pathes necessary to compile the C++ libraryAM_CXXFLAGS = $(CXXFLAGS_PVFMM)AM_LDFLAGS = -static $(LDFLAGS_PVFMM)################################################################################ THE LIBRARIES TO BUILD################################################################################ the library names to build (note we are building static libs only)pkglib_LIBRARIES = lib/libpvfmm.a# where to install the headers on the systemlib_libfmm_adir = $(pkgincludedir)# the list of header files that belong to the library (to be installed later)lib_libfmm_a_HEADERS = \									include/pvfmm_config.h \									include/pvfmm_common.hpp \									include/pvfmm.hpp \									include/blas.h \									include/cheb_node.hpp \									include/cheb_utils.hpp \									include/device_wrapper.hpp \									include/dtypes.h \									include/fft_wrapper.hpp \									include/fmm_cheb.hpp \									include/fmm_gll.hpp \									include/fmm_node.hpp \									include/fmm_pts.hpp \									include/fmm_tree.hpp \									include/interac_list.hpp \									include/kernel.hpp \									include/lapack.h \									include/legendre_rule.hpp \									include/matrix.hpp \									include/mat_utils.hpp \									include/mem_mgr.hpp \									include/mem_utils.hpp \									include/mortonid.hpp \									include/mpi_node.hpp \									include/mpi_tree.hpp \									include/ompUtils.h \									include/parUtils.h \									include/precomp_mat.hpp \									include/profile.hpp \									include/tree.hpp \									include/tree_node.hpp \									include/vector.hpp \									include/cheb_node.txx \									include/cheb_utils.txx \									include/device_wrapper.txx \									include/fmm_cheb.txx \									include/fmm_node.txx \									include/fmm_pts.txx \									include/fmm_tree.txx \									include/interac_list.txx \									include/kernel.txx \									include/matrix.txx \									include/mat_utils.txx \									include/mem_utils.txx \									include/mortonid.txx \									include/mpi_node.txx \									include/mpi_tree.txx \									include/ompUtils.txx \									include/parUtils.txx \									include/precomp_mat.txx \									include/tree.txx \									include/vector.txx#nodist_lib_libpvfmm_a_HEADERS = \#									include/pvfmm_config.h# the sources to add to the library and to add to the source distributionlib_libpvfmm_a_SOURCES = \									$(lib_libpvfmm_a_HEADERS) \									src/fmm_gll.cpp \									src/legendre_rule.cpp \									src/mortonid.cpp \									src/profile.cpp \									src/tree_node.cppdist_noinst_SCRIPTS = autogen.shcore: $(pkglib_LIBRARIES)all: #all-docs all-examples ################################################################################ COMPILE .cu FILES#------------------------------------------------------------------------------if NVCC_OK%.o : %.cu	$(NVCC) $(NVCCFLAGS) $< -o $@endif################################################################################ BUILD EXAMPLES#------------------------------------------------------------------------------all-examples: core	cd $(EX_DIR) && $(MAKE);$(EX_DIR)/bin/%: core	cd $(EX_DIR) && $(MAKE) bin/$(notdir $@)################################################################################ BUILD DOCUMENTATION#------------------------------------------------------------------------------pdf-doc:	cd doc/doc && $(MAKE);all-docs: doxygen-doc pdf-doc################################################################################ INSTALL/UNINSTALL MakeVariables, pvfmm_config.h#------------------------------------------------------------------------------install-make-variables:	$(MKDIR_P) $(INSTALL_DIR)	sed -e 's/(TOP_SRCDIR_PVFMM)/(INSTALL_DIR_PVFMM)/' \		-e "s/PKG_SUBDIR_PVFMM =/PKG_SUBDIR_PVFMM = \/$(PACKAGE)/" \		MakeVariables > $(INSTALL_DIR)/MakeVariablesuninstall-make-variables:	$(RM) $(INSTALL_DIR)/MakeVariables################################################################################ INSTALL/UNINSTALL DOCS#------------------------------------------------------------------------------if DOXYGEN_OKinstall-doxygen-doc: doxygen-doc	for doxygen_dir in $(srcdir)/doc/doxygen/*/ ; do \		doxygen_dir=$${doxygen_dir%*/}; \		dest_dir=$(INSTALL_DIR)/doc/$${doxygen_dir##*/}; \		$(MKDIR_P) $${dest_dir}; \		$(INSTALL_DATA) $${doxygen_dir}/* $${dest_dir}; done;uninstall-doxygen-doc:	$(RM) -r $(INSTALL_DIR)/doc/*	$(RM) -r $(INSTALL_DIR)/docelseinstall-doxygen-doc:uninstall-doxygen-doc:endif################################################################################ LOCAL INSTALL/UNINSTALL#------------------------------------------------------------------------------install: install-am	@echo	@echo '======================================================================='	@echo 'You should add the following to your ~/.bashrc'	@echo '    export PVFMM_DIR=$(INSTALL_DIR)'	@echo	@echo 'You will need to load $$(PVFMM_DIR)/MakeVariables in your Makefile and'	@echo 'use the variables CXXFLAGS_PVFMM and LDFLAGS_PVFMM for compiling your code.'	@echo '======================================================================='install-data-local: install-make-variables install-doxygen-doc	cd doc/doc && $(MAKE) install;uninstall-local: uninstall-make-variables uninstall-doxygen-doc	cd doc/doc && $(MAKE) uninstall;################################################################################ LOCAL CLEAN#------------------------------------------------------------------------------clean-doxygen:	$(RM) -r $(DX_CLEANFILES)clean-local: clean-doxygen	cd $(EX_DIR) && $(MAKE) clean;	$(RM) -r $(RESULT_DIR)/*	$(RM) *~ */*~ */*/*~#------------------------------------------------------------------------------
 |