25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 2.4 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. codec.c \
  20. stock.c \
  21. colorstring.c \
  22. resize.c \
  23. dither.c \
  24. measure.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. $(histogram_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. histogram_sources = \
  75. histogram/histogram.c
  76. # Conditional sources
  77. if USE_SDL
  78. codec_cflags += `sdl-config --cflags`
  79. codec_libs += `sdl-config --libs` -lSDL_image
  80. codec_sources += codec/sdl.c
  81. endif
  82. if USE_IMLIB2
  83. codec_cflags += @IMLIB2_CFLAGS@
  84. codec_libs += @IMLIB2_LIBS@
  85. codec_sources += codec/imlib.c
  86. endif
  87. if USE_OPENCV
  88. codec_cflags += @OPENCV_CFLAGS@
  89. codec_libs += @OPENCV_LIBS@
  90. codec_sources += codec/opencv.c
  91. endif
  92. if USE_GDI
  93. codec_libs += -lgdi32
  94. codec_sources += codec/gdi.c
  95. endif
  96. if USE_GDIPLUS
  97. codec_libs += -Wl,--exclude-symbols,$$(printf '\x7f')gdiplus_NULL_THUNK_DATA -lgdiplus
  98. codec_sources += codec/gdiplus.cpp
  99. endif
  100. if USE_COCOA
  101. codec_objcflags = -I"/Developer//SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/"
  102. codec_libs += -framework Cocoa -framework IOKit -framework CoreFoundation -framework QuartzCore
  103. codec_sources += codec/coreimage.m
  104. endif
  105. # Modular codecs
  106. if USE_MODULAR
  107. codec_sources += codec/modular.c
  108. if USE_LIBJPEG
  109. codec_libs += -ljpeg
  110. codec_sources += codec/modular/jpeg.c
  111. endif
  112. endif