1AM_CPPFLAGS += -I$(top_builddir)/src -I$(top_srcdir)/src 2 3bin_PROGRAMS = 4if BUILD_DEMUX 5 bin_PROGRAMS += dwebp cwebp 6endif 7if BUILD_ANIMDIFF 8 noinst_PROGRAMS = anim_diff anim_dump 9endif 10if BUILD_GIF2WEBP 11 bin_PROGRAMS += gif2webp 12endif 13if BUILD_IMG2WEBP 14 bin_PROGRAMS += img2webp 15endif 16if BUILD_MUX 17 bin_PROGRAMS += webpmux 18endif 19if BUILD_VWEBP 20 bin_PROGRAMS += vwebp 21endif 22if BUILD_WEBPINFO 23 bin_PROGRAMS += webpinfo 24endif 25 26noinst_LTLIBRARIES = libexample_util.la 27 28libexample_util_la_SOURCES = example_util.c example_util.h 29libexample_util_la_LIBADD = ../src/libwebp.la 30 31anim_diff_SOURCES = anim_diff.c anim_util.c anim_util.h gifdec.c gifdec.h 32anim_diff_CPPFLAGS = $(AM_CPPFLAGS) $(GIF_INCLUDES) 33anim_diff_LDADD = 34anim_diff_LDADD += ../src/demux/libwebpdemux.la 35anim_diff_LDADD += libexample_util.la 36anim_diff_LDADD += ../imageio/libimageio_util.la 37anim_diff_LDADD += $(GIF_LIBS) -lm 38 39anim_dump_SOURCES = anim_dump.c anim_util.c anim_util.h gifdec.c gifdec.h 40anim_dump_CPPFLAGS = $(AM_CPPFLAGS) $(PNG_INCLUDES) 41anim_dump_CPPFLAGS += $(GIF_INCLUDES) 42anim_dump_LDADD = 43anim_dump_LDADD += ../src/demux/libwebpdemux.la 44anim_dump_LDADD += libexample_util.la 45anim_dump_LDADD += ../imageio/libimageio_util.la 46anim_dump_LDADD += ../imageio/libimageenc.la 47anim_dump_LDADD += $(PNG_LIBS) $(GIF_LIBS) $(TIFF_LIBS) -lm 48 49cwebp_SOURCES = cwebp.c stopwatch.h 50cwebp_CPPFLAGS = $(AM_CPPFLAGS) 51cwebp_LDADD = 52cwebp_LDADD += libexample_util.la 53cwebp_LDADD += ../imageio/libimageio_util.la 54cwebp_LDADD += ../imageio/libimagedec.la 55cwebp_LDADD += ../src/libwebp.la 56cwebp_LDADD += $(JPEG_LIBS) $(PNG_LIBS) $(TIFF_LIBS) 57 58dwebp_SOURCES = dwebp.c stopwatch.h 59dwebp_CPPFLAGS = $(AM_CPPFLAGS) 60dwebp_CPPFLAGS += $(JPEG_INCLUDES) $(PNG_INCLUDES) 61dwebp_LDADD = 62dwebp_LDADD += libexample_util.la 63dwebp_LDADD += ../imageio/libimagedec.la 64dwebp_LDADD += ../imageio/libimageenc.la 65dwebp_LDADD += ../imageio/libimageio_util.la 66dwebp_LDADD += ../src/libwebp.la 67dwebp_LDADD +=$(PNG_LIBS) $(JPEG_LIBS) 68 69gif2webp_SOURCES = gif2webp.c gifdec.c gifdec.h 70gif2webp_CPPFLAGS = $(AM_CPPFLAGS) $(GIF_INCLUDES) 71gif2webp_LDADD = 72gif2webp_LDADD += libexample_util.la 73gif2webp_LDADD += ../imageio/libimageio_util.la 74gif2webp_LDADD += ../src/mux/libwebpmux.la 75gif2webp_LDADD += ../src/libwebp.la 76gif2webp_LDADD += $(GIF_LIBS) 77 78vwebp_SOURCES = vwebp.c 79vwebp_CPPFLAGS = $(AM_CPPFLAGS) $(GL_INCLUDES) 80vwebp_LDADD = 81vwebp_LDADD += libexample_util.la 82vwebp_LDADD += ../imageio/libimageio_util.la 83vwebp_LDADD += ../src/demux/libwebpdemux.la 84vwebp_LDADD += $(GL_LIBS) 85 86webpmux_SOURCES = webpmux.c 87webpmux_CPPFLAGS = $(AM_CPPFLAGS) 88webpmux_LDADD = 89webpmux_LDADD += libexample_util.la 90webpmux_LDADD += ../imageio/libimageio_util.la 91webpmux_LDADD += ../src/mux/libwebpmux.la 92webpmux_LDADD += ../src/libwebp.la 93 94img2webp_SOURCES = img2webp.c 95img2webp_CPPFLAGS = $(AM_CPPFLAGS) 96img2webp_LDADD = 97img2webp_LDADD += libexample_util.la 98img2webp_LDADD += ../imageio/libimageio_util.la 99img2webp_LDADD += ../imageio/libimagedec.la 100img2webp_LDADD += ../src/mux/libwebpmux.la 101img2webp_LDADD += ../src/libwebp.la 102img2webp_LDADD += $(PNG_LIBS) $(JPEG_LIBS) $(TIFF_LIBS) 103 104webpinfo_SOURCES = webpinfo.c 105webpinfo_CPPFLAGS = $(AM_CPPFLAGS) 106webpinfo_LDADD = 107webpinfo_LDADD += libexample_util.la 108webpinfo_LDADD += ../imageio/libimageio_util.la 109webpinfo_LDADD += ../src/libwebp.la 110 111if BUILD_LIBWEBPDECODER 112 anim_diff_LDADD += ../src/libwebpdecoder.la 113 anim_dump_LDADD += ../src/libwebpdecoder.la 114 vwebp_LDADD += ../src/libwebpdecoder.la 115else 116 anim_diff_LDADD += ../src/libwebp.la 117 anim_dump_LDADD += ../src/libwebp.la 118 vwebp_LDADD += ../src/libwebp.la 119endif 120