all: spatialQueryAndBuffer

shapelib:
	cd ../terralibx/shapelib; make

tiff:
	cd ../terralibx/tiff; make

terralib:
	cd ../terralibx/terralib; make

stat:
	cd ../terralibx/stat; make

spatialQueryAndBuffer: shapelib tiff terralib stat
	qmake -o makeSpatialQueryAndBuffer spatialQueryAndBuffer.pro; make -f makeSpatialQueryAndBuffer

clean:
	if \
		test -f makeSpatialQueryAndBuffer; \
	then \
		make -f makeSpatialQueryAndBuffer distclean; rm -f makeSpatialQueryAndBuffer; \
	fi