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

Last change on this file since 2744 was 2744, checked in by Sam Hocevar, 12 years ago
  • median.c: add a median filter. Highly unoptimised for now.
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
60quantize_sources = \
61        quantize/reduce.c
62
63dither_sources = \
64        dither/floydsteinberg.c \
65        dither/jajuni.c \
66        dither/ordered.c \
67        dither/ostromoukhov.c \
68        dither/dbs.c \
69        dither/random.c
70
71if USE_SDL
72codec_cflags += `sdl-config --cflags`
73codec_libs += `sdl-config --libs` -lSDL_image
74codec_sources += codec/sdl.c
75endif
76
77if USE_IMLIB2
78codec_cflags += @IMLIB2_CFLAGS@
79codec_libs += @IMLIB2_LIBS@
80codec_sources += codec/imlib.c
81endif
82
83if USE_OPENCV
84codec_cflags += @OPENCV_CFLAGS@
85codec_libs += @OPENCV_LIBS@
86codec_sources += codec/opencv.c
87endif
88
Note: See TracBrowser for help on using the repository browser.