in progress, need libxss-dev for screensaverpoking
[ozzloy@gmail.com/oble] / Makefile
1 all: oble
2
3 PKGS = opencv x11 xext xscrnsaver
4 CXXFLAGS += $(shell pkg-config --cflags $(PKGS))
5 LDFLAGS += $(shell pkg-config --libs $(PKGS))
6
7 OBJS = idle_x11.o oble.o
8
9 idle_x11.o: idle_x11.h
10 oble.o: oble.h
11
12 oble: $(OBJS)
13 gcc $(LDFLAGS) -o $@ $(OBJS)
14
15 test: all
16 ./oble -c /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml
17
18 dependencies:
19 sudo aptitude install -y libxss-dev
20
21 clean:
22 rm -rf oble *.o
23
24 new: clean all
25
26 .PHONY: clean