Makefile.am 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # The mux and demux libraries depend on libwebp, thus the '.' to force
  2. # the build order so it's available to them.
  3. SUBDIRS = dec enc dsp utils .
  4. if BUILD_MUX
  5. SUBDIRS += mux
  6. endif
  7. if BUILD_DEMUX
  8. SUBDIRS += demux
  9. endif
  10. lib_LTLIBRARIES = libwebp.la
  11. if BUILD_LIBWEBPDECODER
  12. lib_LTLIBRARIES += libwebpdecoder.la
  13. endif
  14. common_HEADERS =
  15. common_HEADERS += webp/decode.h
  16. common_HEADERS += webp/types.h
  17. commondir = $(includedir)/webp
  18. libwebp_la_SOURCES =
  19. libwebpinclude_HEADERS =
  20. libwebpinclude_HEADERS += webp/encode.h
  21. noinst_HEADERS =
  22. noinst_HEADERS += webp/format_constants.h
  23. libwebp_la_LIBADD =
  24. libwebp_la_LIBADD += dec/libwebpdecode.la
  25. libwebp_la_LIBADD += dsp/libwebpdsp.la
  26. libwebp_la_LIBADD += enc/libwebpencode.la
  27. libwebp_la_LIBADD += utils/libwebputils.la
  28. # Use '-no-undefined' to declare that libwebp does not depend on any libraries
  29. # other than the ones listed on the command line, i.e., after linking, it will
  30. # not have unresolved symbols. Some platforms (Windows among them) require all
  31. # symbols in shared libraries to be resolved at library creation.
  32. libwebp_la_LDFLAGS = -no-undefined -version-info 8:1:1
  33. libwebpincludedir = $(includedir)/webp
  34. pkgconfig_DATA = libwebp.pc
  35. if BUILD_LIBWEBPDECODER
  36. libwebpdecoder_la_SOURCES =
  37. libwebpdecoder_la_LIBADD =
  38. libwebpdecoder_la_LIBADD += dec/libwebpdecode.la
  39. libwebpdecoder_la_LIBADD += dsp/libwebpdspdecode.la
  40. libwebpdecoder_la_LIBADD += utils/libwebputilsdecode.la
  41. libwebpdecoder_la_LDFLAGS = -no-undefined -version-info 4:1:1
  42. pkgconfig_DATA += libwebpdecoder.pc
  43. endif
  44. ${pkgconfig_DATA}: ${top_builddir}/config.status