1# MOAB_DIR points to top-level install dir, below which MOAB's lib/ and include/ are located 2include ../makefile.config 3 4default: all 5 6EXAMPLES = LoadPartial DirectAccessWithHoles DirectAccessNoHoles PointInElementSearch 7PAREXAMPLES = ReduceExchangeTags 8ALLEXAMPLES = ${EXAMPLES} 9 10ifeq ("$(MOAB_MPI_ENABLED)","yes") 11parallel: ${PAREXAMPLES} 12ALLEXAMPLES += ${PAREXAMPLES} 13else 14parallel: 15endif 16 17all: $(ALLEXAMPLES) 18 19LoadPartial: LoadPartial.o ${MOAB_LIBDIR}/libMOAB.la 20 @echo "[CXXLD] $@" 21 ${VERBOSE}${MOAB_CXX} -o $@ $< ${MOAB_LIBS_LINK} ${MOAB_LIBS_LINK} 22 23run-LoadPartial: LoadPartial 24 ${RUNSERIAL} ./LoadPartial 25 26DirectAccessWithHoles: DirectAccessWithHoles.o ${MOAB_LIBDIR}/libMOAB.la 27 @echo "[CXXLD] $@" 28 ${VERBOSE}${MOAB_CXX} -o $@ $< ${MOAB_LIBS_LINK} 29 30run-DirectAccessWithHoles: DirectAccessWithHoles 31 ${RUNSERIAL} ./DirectAccessWithHoles -n 1000 -H 5 32 33DirectAccessNoHoles: DirectAccessNoHoles.o ${MOAB_LIBDIR}/libMOAB.la 34 @echo "[CXXLD] $@" 35 ${VERBOSE}${MOAB_CXX} -o $@ $< ${MOAB_LIBS_LINK} 36 37run-DirectAccessNoHoles: DirectAccessNoHoles 38 ${RUNSERIAL} ./DirectAccessNoHoles -n 1000 39 40ReduceExchangeTags: ReduceExchangeTags.o ${MOAB_LIBDIR}/libMOAB.la 41 @echo "[CXXLD] $@" 42 ${VERBOSE}${MOAB_CXX} -o $@ $< ${MOAB_LIBS_LINK} 43 44run-ReduceExchangeTags: ReduceExchangeTags 45ifeq ("$(MOAB_MPI_ENABLED)-$(MOAB_HDF5_ENABLED)","yes-yes") 46 ${RUNSERIAL} ./ReduceExchangeTags 47 ${RUNPARALLEL} ./ReduceExchangeTags 48endif 49 50PointInElementSearch: PointInElementSearch.o ${MOAB_LIBDIR}/libMOAB.la 51 @echo "[CXXLD] $@" 52 ${VERBOSE}${MOAB_CXX} -o $@ $< ${MOAB_LIBS_LINK} 53 54run-PointInElementSearch: PointInElementSearch 55 ${RUNSERIAL} ./PointInElementSearch 56ifeq ("$(MOAB_MPI_ENABLED)","yes") 57 ${RUNPARALLEL} ./PointInElementSearch 58endif 59 60run: all $(addprefix run-,$(ALLEXAMPLES)) 61 62clean: clobber 63 rm -rf ${ALLEXAMPLES} 64 65