diff --git a/examples/Makefile b/examples/Makefile index 75e8a36a..36ff061a 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -304,7 +304,14 @@ BOARD_INCDIR = -I/usr/include/board BOARD_CFLAGS = $(BOARD_DEFINE) $(BOARD_INCDIR) BOARD_LIBS = -lboard -# Flags to compile GIMP plug-ins. +# Enable native support of WebP image files, using the WebP library. +# (https://chromium.googlesource.com/webm/libwebp/) +WEBP_DEFINE = -Dcimg_use_webp +WEBP_INCDIR = $(shell pkg-config --cflags libwebp) +WEBP_CFLAGS = $(WEBP_DEFINE) $(WEBP_INCDIR) +WEBP_LIBS = $(shell pkg-config --libs libwep || echo -lwebp) + +# Flags to compile executable on Windows. ifeq ($(MSYSTEM),MINGW32) GIMP_CFLAGS = -mwindows endif