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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. resize.c \
  18. dither.c \
  19. measure.c \
  20. fill/floodfill.c \
  21. $(codec_sources) \
  22. $(filter_sources) \
  23. $(dither_sources) \
  24. $(NULL)
  25. libpipi_la_CFLAGS = $(codec_cflags)
  26. libpipi_la_LDFLAGS = $(codec_libs) \
  27. -no-undefined -version-number @LT_VERSION@
  28. # Conditional sources
  29. codec_cflags =
  30. codec_libs =
  31. codec_sources =
  32. # Submodules
  33. filter_sources = \
  34. filter/autocontrast.c \
  35. filter/blur.c \
  36. filter/convolution.c
  37. dither_sources = \
  38. dither/floydsteinberg.c \
  39. dither/ordered.c \
  40. dither/ostromoukhov.c \
  41. dither/dbs.c \
  42. dither/random.c
  43. if USE_SDL
  44. codec_cflags += `sdl-config --cflags`
  45. codec_libs += `sdl-config --libs` -lSDL_image
  46. codec_sources += codec/sdl.c
  47. endif
  48. if USE_IMLIB2
  49. codec_cflags += @IMLIB2_CFLAGS@
  50. codec_libs += @IMLIB2_LIBS@
  51. codec_sources += codec/imlib.c
  52. endif
  53. if USE_OPENCV
  54. codec_cflags += @OPENCV_CFLAGS@
  55. codec_libs += @OPENCV_LIBS@
  56. codec_sources += codec/opencv.c
  57. endif