124727d2 |
1 | all: oble |
b8b01547 |
2 | |
4f219a9f |
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 |
ebec7d1d |
11 | print_screen_saver_stats.o: print_screensaver_stats.h |
4f219a9f |
12 | |
026d4426 |
13 | oble: $(OBJS) |
df1c989e |
14 | gcc $(OBJS) $(LDFLAGS) -o $@ |
15 | |
16 | #haarcascade_frontalface_alt.xml: |
17 | # wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml |
b8b01547 |
18 | |
ebec7d1d |
19 | print_screensaver_stats: print_screensaver_stats.o |
20 | gcc print_screensaver_stats.o $(LDFLAGS) -o $@ |
21 | |
b8b01547 |
22 | test: all |
df1c989e |
23 | ./oble -c haarcascade_frontalface_alt.xml |
4d640880 |
24 | |
026d4426 |
25 | ubuntu-dependencies: |
26 | ./initial_oble_setup_ubuntu.bash |
1ddec340 |
27 | |
4d640880 |
28 | clean: |
4f219a9f |
29 | rm -rf oble *.o |
4d640880 |
30 | |
79292335 |
31 | new: clean all |
32 | |
4d640880 |
33 | .PHONY: clean |