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 2.4 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. # $Id$
  2. EXTRA_DIST = pipi_types.h.in 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 pipi_types.h
  8. # The main library
  9. lib_LTLIBRARIES = libpipi.la
  10. libpipi_la_SOURCES = \
  11. pipi.c \
  12. pipi.h \
  13. pipi_types.h \
  14. pipi_internals.h \
  15. pipi_stubs.h \
  16. pipi_template.h \
  17. context.c \
  18. pixels.c \
  19. tiles.c \
  20. codec.c \
  21. stock.c \
  22. colorstring.c \
  23. resize.c \
  24. dither.c \
  25. accessors.c \
  26. $(codec_sources) \
  27. $(paint_sources) \
  28. $(render_sources) \
  29. $(combine_sources) \
  30. $(filter_sources) \
  31. $(quantize_sources) \
  32. $(dither_sources) \
  33. $(analysis_sources) \
  34. $(NULL)
  35. libpipi_la_CFLAGS = $(codec_cflags)
  36. libpipi_la_LDFLAGS = $(codec_libs) \
  37. -no-undefined -version-number @LT_VERSION@ \
  38. -lm
  39. # Submodules
  40. codec_cflags =
  41. codec_libs =
  42. codec_sources = \
  43. codec/oric.c
  44. paint_sources = \
  45. paint/floodfill.c \
  46. paint/line.c \
  47. paint/bezier.c \
  48. paint/tile.c
  49. render_sources = \
  50. render/noise.c \
  51. render/screen.c
  52. combine_sources = \
  53. combine/rgb.c \
  54. combine/mean.c \
  55. combine/minmax.c \
  56. combine/subadd.c \
  57. combine/mulscreen.c
  58. filter_sources = \
  59. filter/autocontrast.c \
  60. filter/blur.c \
  61. filter/convolution.c \
  62. filter/color.c \
  63. filter/transform.c \
  64. filter/median.c \
  65. filter/dilate.c
  66. quantize_sources = \
  67. quantize/reduce.c
  68. dither_sources = \
  69. dither/ediff.c \
  70. dither/ordered.c \
  71. dither/ostromoukhov.c \
  72. dither/dbs.c \
  73. dither/random.c
  74. analysis_sources = \
  75. analysis/measure.c \
  76. analysis/histogram.c
  77. # Conditional sources
  78. if USE_SDL
  79. codec_cflags += `sdl-config --cflags`
  80. codec_libs += `sdl-config --libs` -lSDL_image
  81. codec_sources += codec/sdl.c
  82. endif
  83. if USE_IMLIB2
  84. codec_cflags += @IMLIB2_CFLAGS@
  85. codec_libs += @IMLIB2_LIBS@
  86. codec_sources += codec/imlib.c
  87. endif
  88. if USE_OPENCV
  89. codec_cflags += @OPENCV_CFLAGS@
  90. codec_libs += @OPENCV_LIBS@
  91. codec_sources += codec/opencv.c
  92. endif
  93. if USE_GDI
  94. codec_libs += -lgdi32
  95. codec_sources += codec/gdi.c
  96. endif
  97. if USE_GDIPLUS
  98. codec_libs += -Wl,--exclude-symbols,$$(printf '\x7f')gdiplus_NULL_THUNK_DATA -lgdiplus
  99. codec_sources += codec/gdiplus.cpp
  100. endif
  101. if USE_COCOA
  102. codec_objcflags = -I"/Developer//SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/"
  103. codec_libs += -framework Cocoa -framework IOKit -framework CoreFoundation -framework QuartzCore
  104. codec_sources += codec/coreimage.m
  105. endif
  106. if USE_JPEG
  107. codec_libs += -ljpeg
  108. codec_sources += codec/jpeg.c
  109. endif