mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-14 01:57:43 +08:00
13 lines
281 B
Makefile
13 lines
281 B
Makefile
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
|