projects
/
ozzloy@gmail.com
/
oble
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in progress, need libxss-dev for screensaverpoking
[ozzloy@gmail.com/oble]
/
Makefile
diff --git
a/Makefile
b/Makefile
index fd1361f0d5a9270af520d369adbaf0720b6136a6..9603c5989ebf7cae92caf2bd50727f8e393a5255 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,15
+1,26
@@
+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
+
+oble: $(OBJS)
+ gcc $(LDFLAGS) -o $@ $(OBJS)
test: all
test: all
- ./hello-world /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml
+ ./oble -c /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml
+
+dependencies:
+ sudo aptitude install -y libxss-dev
clean:
clean:
- rm -rf hello-world tags dbushello
+ rm -rf oble *.o
+
+new: clean all
.PHONY: clean
.PHONY: clean