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

all: utils
utils: ../bin/keytest ../bin/mgrtest

clean:
	rm ../bin/keytest ../bin/mgrtest

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

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

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