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

all: libs utils
libs: hrefcom.o
utils: ../../../bin/jfbgen

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

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