Updated opencv-samples-Makefile (Thanks Scott Tsai) #553697
parent
589fa6de9e
commit
fa96201c32
@ -1,4 +1,10 @@
|
||||
CFLAGS := `pkg-config --cflags opencv` $(CFLAGS)
|
||||
CXXFLAGS := `pkg-config --cflags opencv` $(CXXFLAGS)
|
||||
LDFLAGS := `pkg-config --libs opencv` $(LDFLAGS)
|
||||
|
||||
all: $(patsubst %.c,%,$(wildcard *.c))
|
||||
PROGRAMS := $(patsubst %.c,%,$(wildcard *.c)) $(patsubst %.cpp,%,$(wildcard *.cpp))
|
||||
|
||||
.PHONY: all clean
|
||||
all: $(PROGRAMS)
|
||||
clean:
|
||||
rm -f $(PROGRAMS)
|
||||
|
Loading…
Reference in new issue