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

Last change on this file since 2718 was 2718, checked in by Sam Hocevar, 12 years ago
  • Add pipi_invert() to invert an image's colours.
File size: 1.4 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        $(dither_sources) \
31        $(NULL)
32libpipi_la_CFLAGS = $(codec_cflags)
33libpipi_la_LDFLAGS = $(codec_libs) \
34        -no-undefined -version-number @LT_VERSION@
35
36# Conditional sources
37codec_cflags =
38codec_libs =
39codec_sources =
40
41# Submodules
42paint_sources = \
43        paint/floodfill.c \
44        paint/tile.c
45
46combine_sources = \
47        combine/mean.c \
48        combine/minmax.c \
49        combine/subadd.c \
50        combine/mulscreen.c
51
52filter_sources = \
53        filter/autocontrast.c \
54        filter/blur.c \
55        filter/convolution.c filter/convolution_template.h \
56        filter/color.c
57
58dither_sources = \
59        dither/floydsteinberg.c \
60        dither/jajuni.c \
61        dither/ordered.c \
62        dither/ostromoukhov.c \
63        dither/dbs.c \
64        dither/random.c
65
66if USE_SDL
67codec_cflags += `sdl-config --cflags`
68codec_libs += `sdl-config --libs` -lSDL_image
69codec_sources += codec/sdl.c
70endif
71
72if USE_IMLIB2
73codec_cflags += @IMLIB2_CFLAGS@
74codec_libs += @IMLIB2_LIBS@
75codec_sources += codec/imlib.c
76endif
77
78if USE_OPENCV
79codec_cflags += @OPENCV_CFLAGS@
80codec_libs += @OPENCV_LIBS@
81codec_sources += codec/opencv.c
82endif
83
Note: See TracBrowser for help on using the repository browser.