# The base directory that all VTI files are stored in
VTI_BASE = /opt/vti
VTI_INCLUDE_DIR = $(VTI_BASE)/include
VTI_LIB_DIR = $(VTI_BASE)/lib

# Specify the folder in which to find the VTI header files
CXXFLAGS += -I$(VTI_INCLUDE_DIR)/hdf
CXXFLAGS += -std=c++0x
#CPPFLAGS += -pipe -fpic -fPIC -Wall

# Sepcify the folder in which to find the VTI shared objects, and tell the linker to always look for them there
LDFLAGS = -L$(VTI_LIB_DIR) -Wl,-rpath=$(VTI_LIB_DIR)

# Specify the libraries to link against
LDLIBS = $(addprefix -l, hdf5_cpp-shared hdf5-shared stdc++)

SRCS := hdf_demo.cpp hdf_inspection.cpp hdf_post_process.cpp

OBJS := $(SRCS:.cpp=.o)

HDF_DEMO = hdf_demo

all: $(HDF_DEMO)

clean:
	$(RM) $(HDF_DEMO) *.o

$(HDF_DEMO): $(OBJS)
