use full word "display" for variable in all places
[ozzloy@gmail.com/oble] / Makefile
... / ...
CommitLineData
1all: oble
2
3PKGS = opencv x11 xext xscrnsaver
4CXXFLAGS += $(shell pkg-config --cflags $(PKGS))
5LDFLAGS += $(shell pkg-config --libs $(PKGS))
6
7OBJS = idle_x11.o oble.o
8
9idle_x11.o: idle_x11.h
10oble.o: oble.h
11print_screen_saver_stats.o: print_screensaver_stats.h
12
13oble: $(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
19print_screensaver_stats: print_screensaver_stats.o
20 gcc print_screensaver_stats.o $(LDFLAGS) -o $@
21
22test: all
23 ./oble -c haarcascade_frontalface_alt.xml
24
25ubuntu-dependencies:
26 ./initial_oble_setup_ubuntu.bash
27
28clean:
29 rm -rf oble *.o
30
31new: clean all
32
33.PHONY: clean