#
# The following few lines get the library install location for MOAB
# and puts it in MOAB_LIB_DIR; if you just want
# a simple application makefile, just comment out the next 3 lines and
# substitute your own value for $(MOAB_LIB_DIR), or set an environment
# variable pointing to the right place.
exec_prefix = /usr
prefix = /usr/lib64/mpi/gcc/openmpi
libdir = /usr/lib64/mpi/gcc/openmpi/lib64
MOAB_LIB_DIR = $(libdir)

include $(MOAB_LIB_DIR)/moab.make

CPPFLAGS = ${MOAB_INCLUDES}
CXXFLAGS = -g

default: all

all: GetEntities

GetEntities: GetEntities.o
	$(CXX) -o $@ $< $(MOAB_LIBS_LINK)

GetEntities.o : GetEntities.cpp
	$(CXX) -c $(MOAB_INCLUDES) $<
