You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 1.2 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # $Id$
  2. EXTRA_DIST = pipi.pc.in
  3. DISTCLEANFILES = pipi.pc
  4. AM_CPPFLAGS = -I$(top_srcdir)
  5. pkgconfig_DATA = pipi.pc
  6. pkgconfigdir = $(libdir)/pkgconfig
  7. include_HEADERS = pipi.h
  8. # The main library
  9. lib_LTLIBRARIES = libpipi.la
  10. libpipi_la_SOURCES = \
  11. pipi.c \
  12. pipi.h \
  13. pipi_internals.h \
  14. context.c \
  15. pixels.c \
  16. codec.c \
  17. stock.c \
  18. resize.c \
  19. dither.c \
  20. measure.c \
  21. fill/floodfill.c \
  22. $(codec_sources) \
  23. $(filter_sources) \
  24. $(dither_sources) \
  25. $(NULL)
  26. libpipi_la_CFLAGS = $(codec_cflags)
  27. libpipi_la_LDFLAGS = $(codec_libs) \
  28. -no-undefined -version-number @LT_VERSION@
  29. # Conditional sources
  30. codec_cflags =
  31. codec_libs =
  32. codec_sources =
  33. # Submodules
  34. filter_sources = \
  35. filter/autocontrast.c \
  36. filter/blur.c \
  37. filter/convolution.c
  38. dither_sources = \
  39. dither/floydsteinberg.c \
  40. dither/ordered.c \
  41. dither/ostromoukhov.c \
  42. dither/dbs.c \
  43. dither/random.c
  44. if USE_SDL
  45. codec_cflags += `sdl-config --cflags`
  46. codec_libs += `sdl-config --libs` -lSDL_image
  47. codec_sources += codec/sdl.c
  48. endif
  49. if USE_IMLIB2
  50. codec_cflags += @IMLIB2_CFLAGS@
  51. codec_libs += @IMLIB2_LIBS@
  52. codec_sources += codec/imlib.c
  53. endif
  54. if USE_OPENCV
  55. codec_cflags += @OPENCV_CFLAGS@
  56. codec_libs += @OPENCV_LIBS@
  57. codec_sources += codec/opencv.c
  58. endif