fix Makefile to list object files before linked libs
[ozzloy@gmail.com/oble] / Makefile
CommitLineData
124727d2 1all: oble
b8b01547 2
4f219a9f 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
11
df1c989e 12oble: $(OBJS) haarcascade_frontalface_alt.xml
13 gcc $(OBJS) $(LDFLAGS) -o $@
14
15#haarcascade_frontalface_alt.xml:
16# wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml
b8b01547 17
18test: all
df1c989e 19 ./oble -c haarcascade_frontalface_alt.xml
4d640880 20
1ddec340 21dependencies:
22 sudo aptitude install -y libxss-dev
23
4d640880 24clean:
4f219a9f 25 rm -rf oble *.o
4d640880 26
79292335 27new: clean all
28
4d640880 29.PHONY: clean