mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-16 07:53:03 +01:00
16 lines
674 B
Makefile
16 lines
674 B
Makefile
# Variables for QR exported as PNG support
|
|
PNG_LIBS = libpng
|
|
PNG_CFLAGS = -DQRPNG
|
|
|
|
# Check if we can build QR exported as PNG support
|
|
CHECK_PNG_LIBS = $(shell pkg-config --exists $(PNG_LIBS) || echo -n "error")
|
|
ifneq ($(CHECK_PNG_LIBS), error)
|
|
LIBS += $(PNG_LIBS)
|
|
CFLAGS += $(PNG_CFLAGS)
|
|
else ifneq ($(MAKECMDGOALS), clean)
|
|
MISSING_PNG_LIBS = $(shell for lib in $(PNG_LIBS) ; do if ! $(PKG_CONFIG) --exists $$lib ; then echo $$lib ; fi ; done)
|
|
$(warning WARNING -- Toxic will be compiled without QR exported as PNG support)
|
|
$(warning WARNING -- You need these libraries for QR exported as PNG support)
|
|
$(warning WARNING -- $(MISSING_PNG_LIBS))
|
|
endif
|