X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=Makefile;h=006e7ea3f04c1ed6bf6b044fe55ec73ce61ab029;hb=026d4426dc8574aa50d10454e6694c7507f79603;hp=3f6e743dbd6ef72c4337639d02df530e986f1a58;hpb=e0c483758ee48b8b1b5dc2d17884bb07c7ddae4e;p=ozzloy%40gmail.com%2Foble diff --git a/Makefile b/Makefile index 3f6e743..006e7ea 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,29 @@ +all: oble -all:oble +PKGS = opencv x11 xext xscrnsaver +CXXFLAGS += $(shell pkg-config --cflags $(PKGS)) +LDFLAGS += $(shell pkg-config --libs $(PKGS)) -oble:oble.cpp - gcc `pkg-config --cflags opencv dbus-glib-1` -o oble oble.cpp `pkg-config --libs dbus-glib-1 opencv` +OBJS = idle_x11.o oble.o -gnome-screensaver-poke: gnome-screensaver-poke.c - gcc `pkg-config --cflags dbus-glib-1` -o gnome-screensaver-poke gnome-screensaver-poke.c `pkg-config --libs dbus-glib-1` +idle_x11.o: idle_x11.h +oble.o: oble.h + +oble: $(OBJS) + gcc $(OBJS) $(LDFLAGS) -o $@ + +#haarcascade_frontalface_alt.xml: +# wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml test: all - ./oble /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 gnome-screensaver-poke + rm -rf oble *.o new: clean all .PHONY: clean -