TOPDIR	:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)

all: libs utils
libs: rawgbf.o
utils: ../../../bin/gbfidx

../../../bin/gbfidx: gbfidx.cpp
	g++ $(OPTS) -o ../../../bin/gbfidx -I/usr/include/g++-include -I../../../include gbfidx.cpp `find ../../.. -type f -name "*.o" -print`

rawgbf.o: rawgbf.cpp ../../../include/swtext.h ../../../include/rawgbf.h
	g++ $(OPTS) -c -I/usr/include/g++-include -I../../../include rawgbf.cpp
