X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=Makefile;h=98e8c12f2b14203b00d28593a681b6f574ab4a82;hb=7800f8dea273d44c9e5985e0be96dcbe05baca0c;hp=4463e6afeda9931fafe7a76b6c1f72aed60c2eff;hpb=b8b0154744df4331edcbe7a71793189c3fe70261;p=ozzloy%40gmail.com%2Foble diff --git a/Makefile b/Makefile index 4463e6a..98e8c12 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,33 @@ +all: oble -all: - gcc `pkg-config --cflags opencv dbus-glib-1` -o hello-world hello-world.cpp `pkg-config --libs dbus-glib-1 opencv` +PKGS = opencv x11 xext xscrnsaver +CXXFLAGS += $(shell pkg-config --cflags $(PKGS)) +LDFLAGS += $(shell pkg-config --libs $(PKGS)) -dbushello: dbushello.c - gcc `pkg-config --cflags dbus-glib-1` -o dbushello dbushello.c `pkg-config --libs dbus-glib-1` +OBJS = idle_x11.o oble.o +idle_x11.o: idle_x11.h +oble.o: oble.h +print_screen_saver_stats.o: print_screensaver_stats.h + +oble: $(OBJS) + gcc $(OBJS) $(LDFLAGS) -o $@ + +#haarcascade_frontalface_alt.xml: +# wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml + +print_screensaver_stats: print_screensaver_stats.o + gcc print_screensaver_stats.o $(LDFLAGS) -o $@ test: all - ./hello-world /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml + ./oble -c haarcascade_frontalface_alt.xml + +ubuntu-dependencies: + ./initial_oble_setup_ubuntu.bash + +clean: + rm -rf oble *.o + +new: clean all + +.PHONY: clean