source: libpipi/trunk/pipi/Makefile.am @ 2746

Last change on this file since 2746 was 2746, checked in by Sam Hocevar, 12 years ago
  • Add pipi_dilate() / pipi_erode() and --dilate / --erode.
File size: 1.5 KB
Line 
1# $Id$
2
3EXTRA_DIST = pipi.pc.in
4DISTCLEANFILES = pipi.pc
5
6AM_CPPFLAGS = -I$(top_srcdir)
7
8pkgconfig_DATA = pipi.pc
9pkgconfigdir = $(libdir)/pkgconfig
10
11include_HEADERS = pipi.h
12
13# The main library
14lib_LTLIBRARIES = libpipi.la
15libpipi_la_SOURCES = \
16        pipi.c \
17        pipi.h \
18        pipi_internals.h \
19        context.c \
20        pixels.c \
21        codec.c \
22        stock.c \
23        resize.c \
24        dither.c \
25        measure.c \
26        $(codec_sources) \
27        $(paint_sources) \
28        $(combine_sources) \
29        $(filter_sources) \
30        $(quantize_sources) \
31        $(dither_sources) \
32        $(NULL)
33libpipi_la_CFLAGS = $(codec_cflags)
34libpipi_la_LDFLAGS = $(codec_libs) \
35        -no-undefined -version-number @LT_VERSION@
36
37# Conditional sources
38codec_cflags =
39codec_libs =
40codec_sources =
41
42# Submodules
43paint_sources = \
44        paint/floodfill.c \
45        paint/tile.c
46
47combine_sources = \
48        combine/mean.c \
49        combine/minmax.c \
50        combine/subadd.c \
51        combine/mulscreen.c
52
53filter_sources = \
54        filter/autocontrast.c \
55        filter/blur.c \
56        filter/convolution.c filter/convolution_template.h \
57        filter/color.c \
58        filter/median.c \
59        filter/dilate.c
60
61quantize_sources = \
62        quantize/reduce.c
63
64dither_sources = \
65        dither/floydsteinberg.c \
66        dither/jajuni.c \
67        dither/ordered.c \
68        dither/ostromoukhov.c \
69        dither/dbs.c \
70        dither/random.c
71
72if USE_SDL
73codec_cflags += `sdl-config --cflags`
74codec_libs += `sdl-config --libs` -lSDL_image
75codec_sources += codec/sdl.c
76endif
77
78if USE_IMLIB2
79codec_cflags += @IMLIB2_CFLAGS@
80codec_libs += @IMLIB2_LIBS@
81codec_sources += codec/imlib.c
82endif
83
84if USE_OPENCV
85codec_cflags += @OPENCV_CFLAGS@
86codec_libs += @OPENCV_LIBS@
87codec_sources += codec/opencv.c
88endif
89
Note: See TracBrowser for help on using the repository browser.