# required libraries: vxl, opencv, boost, gtkmm VERSION = opengazer-0.1 CPPFLAGS = -Wall -g -O3 LINKER = -lm -ldl -lvnl -lnetlib -lmvl -lvnl_algo -lvgl -lgthread-2.0 # change the following line if your vxl library is installed elsewhere INCLUDES = -I{/usr/local/include,/opt/local/include}{,/core,/vcl,/contrib/oxl} # -I/usr/include/ffmpeg # -lcv0.9.7 -lhighgui0.9.7 # -lvgui sources = opengazer.cpp Calibrator.cpp GazeTrackerGtk.cpp HeadTracker.cpp LeastSquares.cpp EyeExtractor.cpp GazeTracker.cpp MainGazeTracker.cpp OutputMethods.cpp PointTracker.cpp FaceDetector.cpp GazeArea.cpp TrackingSystem.cpp GtkStore.cpp Containers.cpp GraphicalPointer.cpp Point.cpp utils.cpp BlinkDetector.cpp FeatureDetector.cpp Alert.cpp objects = $(patsubst %.cpp,%.o,$(sources)) %.o.depends: %.cpp g++ `pkg-config cairomm-1.0 opencv gtkmm-2.4 --cflags` $(INCLUDES) -MM $< > $@ %.o: %.cpp g++ $< -c $(CPPFLAGS) -o $@ `pkg-config cairomm-1.0 opencv gtkmm-2.4 --cflags` $(INCLUDES) opengazer: $(objects) g++ $(CPPFLAGS) $(LINKER) $^ -o $@ `pkg-config cairomm-1.0 opencv gtkmm-2.4 --libs` include $(patsubst %.cpp,%.o.depends,$(sources)) TAGS: always etags *.cpp *.h ship: always rm -fr $(VERSION)/* cp LICENSE README Makefile calpoints.txt haarcascade_frontalface_alt.xml $$(for file in $$(cat $(addsuffix .depends,$(objects))) ; do test -f $$file && echo $$file ; done | sort -u) $(VERSION)/ tar czf $(VERSION).tar.gz $(VERSION) cp $(VERSION).tar.gz README /home/ftp/pub/www/dasher/freevim/ .PHONY: always ship