Merge pull request #114 from yamt/separate-target

Makefile: separate targets for platform dependent stuff
This commit is contained in:
Daniel Beer 2021-08-27 13:35:36 +12:00 committed by GitHub
commit 937b93a805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,15 @@ OPENCV_CFLAGS != pkg-config --cflags opencv4
OPENCV_LIBS != pkg-config --libs opencv4 OPENCV_LIBS != pkg-config --libs opencv4
QUIRC_CXXFLAGS = $(QUIRC_CFLAGS) $(OPENCV_CFLAGS) --std=c++17 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 qrtest: tests/dbgutil.o tests/qrtest.o libquirc.a
$(CC) -o $@ tests/dbgutil.o tests/qrtest.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng $(CC) -o $@ tests/dbgutil.o tests/qrtest.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng