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 6ifeq ("$(MOAB_HDF5_ENABLED)","yes") 7ALLEXAMPLES += ContinentsOnGlobe BoundaryContinents 8endif 9 10all: $(ALLEXAMPLES) 11 12ContinentsOnGlobe: ContinentsOnGlobe.o ${MOAB_LIBDIR}/libMOAB.la 13 @echo "[CXXLD] $@" 14 ${VERBOSE}${MOAB_CXX} -o $@ $< ${MOAB_LIBS_LINK} 15 16run-ContinentsOnGlobe: ContinentsOnGlobe 17 ${RUNSERIAL} ./ContinentsOnGlobe 18 19BoundaryContinents: BoundaryContinents.o ${MOAB_LIBDIR}/libMOAB.la 20 @echo "[CXXLD] $@" 21 ${VERBOSE}${MOAB_CXX} -o $@ $< ${MOAB_LIBS_LINK} 22 23run-BoundaryContinents: BoundaryContinents 24 ${RUNSERIAL} ./BoundaryContinents 25 26run: all $(addprefix run-,$(ALLEXAMPLES)) 27 28clean: clobber 29 rm -rf ${ALLEXAMPLES} 30 31