Updated pkg-config generation, added sample makefile

This commit is contained in:
Maksim Shabunin
2015-05-19 16:15:54 +03:00
parent 671a630f47
commit 3863dc5b2b
7 changed files with 89 additions and 68 deletions
+12
View File
@@ -0,0 +1,12 @@
CXX ?= g++
CXXFLAGS += -c -Wall $(shell pkg-config --cflags opencv)
LDFLAGS += $(shell pkg-config --libs --static opencv)
all: opencv_example
opencv_example: example.o; $(CXX) $< -o $@ $(LDFLAGS)
%.o: %.cpp; $(CXX) $< -o $@ $(CXXFLAGS)
clean: ; rm -f example.o opencv_example