X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=Makefile;h=006e7ea3f04c1ed6bf6b044fe55ec73ce61ab029;hb=026d4426dc8574aa50d10454e6694c7507f79603;hp=3e0fc3ab18e410ff678a765d4f3f62d2d2852aad;hpb=b7e484d5baf2f9173ce53595b4e06eabeb30e036;p=ozzloy%40gmail.com%2Foble diff --git a/Makefile b/Makefile index 3e0fc3a..006e7ea 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,29 @@ +all: oble -all: - gcc `pkg-config --cflags opencv` -o hello-world hello-world.cpp `pkg-config --libs opencv` +PKGS = opencv x11 xext xscrnsaver +CXXFLAGS += $(shell pkg-config --cflags $(PKGS)) +LDFLAGS += $(shell pkg-config --libs $(PKGS)) + +OBJS = idle_x11.o oble.o + +idle_x11.o: idle_x11.h +oble.o: oble.h + +oble: $(OBJS) + gcc $(OBJS) $(LDFLAGS) -o $@ + +#haarcascade_frontalface_alt.xml: +# wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml + +test: all + ./oble -c haarcascade_frontalface_alt.xml + +ubuntu-dependencies: + ./initial_oble_setup_ubuntu.bash + +clean: + rm -rf oble *.o + +new: clean all + +.PHONY: clean