
# Makefile for gds

include ../make_stuff.txt

# place to search for includes and targets
VPATH = ../lib
ONEOVERFDIR=../utils

# voxbo libs that might be important here
VBLIBS=libvbutil.a libvbio.a libvbprefs.a libvbglm.a

# object files (including moc files) for the executables
GDS_OBJECTS = gds_main.o gds.o

# miscellaneous flags and such
LIBS =$(LIBDIRS) $(DLLIB) -lm -lvbprefs -lvbglm -lvbio -lvbutil -lz $(GSL_LIBS)

# the main targets
all: gds

install:
	cp gds $(BINDIR)

gds: $(GDS_OBJECTS) $(VBLIBS)
	make -C	../utils fitOneOverF.o	
	$(CXX) -o gds $(GDS_OBJECTS) $(LIBS)

clean:
	rm -f *.o *~ core gds *.exe

# rule to build the libvoxbo libraries
$(VBLIBS):
	make -C ../lib $@

gds.o: gds.cpp gds.h
	$(CXX) -c -o gds.o gds.cpp $(CXXFLAGS)

gds_main.o: gds_main.cpp
	$(CXX) -c -o gds_main.o gds_main.cpp $(CXXFLAGS)

