From: daniel watson Date: Sat, 28 Apr 2012 05:54:23 +0000 (-0400) Subject: fix Makefile to list object files before linked libs X-Git-Url: http://challenge-bot.com/repos/?p=ozzloy%40gmail.com%2Foble;a=commitdiff_plain;h=df1c989e59a7ebf883990d7cc0a00999cb0b2d73 fix Makefile to list object files before linked libs --- diff --git a/Makefile b/Makefile index 9603c59..5db009e 100644 --- a/Makefile +++ b/Makefile @@ -9,11 +9,14 @@ OBJS = idle_x11.o oble.o idle_x11.o: idle_x11.h oble.o: oble.h -oble: $(OBJS) - gcc $(LDFLAGS) -o $@ $(OBJS) +oble: $(OBJS) haarcascade_frontalface_alt.xml + gcc $(OBJS) $(LDFLAGS) -o $@ + +#haarcascade_frontalface_alt.xml: +# wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml test: all - ./oble -c /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml + ./oble -c haarcascade_frontalface_alt.xml dependencies: sudo aptitude install -y libxss-dev diff --git a/oble.cpp b/oble.cpp index ab5ca39..9033c69 100644 --- a/oble.cpp +++ b/oble.cpp @@ -96,7 +96,6 @@ void update_idle(int faces_total) { if(verbose)printf("\t\tpoking\n"); reset_idle_time(); - system("gnome-screensaver-command --poke"); } saw_last_time = 1; }