# The base directory that all VTI files are stored in
VTI_BASE = /opt/vti
# Specify the folder in which to find the VTI header files
CXXFLAGS = -I$(VTI_BASE)/include
CXXFLAGS += -std=c++0x
# Specify the folder in which to find the VTI shared objects, and tell the linker to always look for them there
LDFLAGS = -L$(VTI_BASE)/lib -Wl,-rpath=$(VTI_BASE)/lib -L.
# Specify the libraries to link against
LDLIBS = -lDsa -lrt -ljsoncpp

JSONCPPSRC = jsoncpp.cpp
JSONCPPOBJ = jsoncpp.o

EXAMPLES = Identity Measurement State DataAcq ExampleStreamingCallback LANSynchronization LANEvents BurstAndContinuous ParsingAdditionalData Temperature TEDS_MLAN MemoryStreaming ChannelGroups DiskStreaming StorageDevices TachTimes RunFullCalibration Strain

all: libjsoncpp.a $(EXAMPLES)

clean:
	$(RM) $(EXAMPLES) *.o *.a

libjsoncpp.a: $(JSONCPPOBJ)
	rm -f $@
	ar cq $@ $(JSONCPPOBJ)
