Makefile: separate targets for platform dependent stuff (v4l, sdl, opencv)

This commit is contained in:
YAMAMOTO Takashi 2021-08-26 14:11:12 +09:00
parent 891550cd82
commit 50e2899ea8

View file

@ -39,7 +39,15 @@ OPENCV_CFLAGS != pkg-config --cflags opencv4
OPENCV_LIBS != pkg-config --libs opencv4
QUIRC_CXXFLAGS = $(QUIRC_CFLAGS) $(OPENCV_CFLAGS) --std=c++17
all: libquirc.so qrtest inspect quirc-demo quirc-scanner
.PHONY: all v4l sdl opencv install uninstall clean
all: libquirc.so qrtest
v4l: quirc-scanner
sdl: inspect quirc-demo
opencv: inspect-opencv quirc-demo-opencv
qrtest: tests/dbgutil.o tests/qrtest.o libquirc.a
$(CC) -o $@ tests/dbgutil.o tests/qrtest.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng