use full word "display" for variable in all places
[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 print_screen_saver_stats.o: print_screensaver_stats.h
12
13 oble: $(OBJS)
14 gcc $(OBJS) $(LDFLAGS) -o $@
15
16 #haarcascade_frontalface_alt.xml:
17 # wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml
18
19 print_screensaver_stats: print_screensaver_stats.o
20 gcc print_screensaver_stats.o $(LDFLAGS) -o $@
21
22 test: all
23 ./oble -c haarcascade_frontalface_alt.xml
24
25 ubuntu-dependencies:
26 ./initial_oble_setup_ubuntu.bash
27
28 clean:
29 rm -rf oble *.o
30
31 new: clean all
32
33 .PHONY: clean