From df1c989e59a7ebf883990d7cc0a00999cb0b2d73 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Sat, 28 Apr 2012 01:54:23 -0400 Subject: [PATCH] fix Makefile to list object files before linked libs --- Makefile | 9 ++++++--- oble.cpp | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) 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; } -- 2.30.2