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

Last change on this file since 2840 was 2840, checked in by Sam Hocevar, 13 years ago

gdi.c: the GDI codec can now open and save BMP files.

File size: 1.8 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        pipi_template.h \
20        context.c \
21        pixels.c \
22        codec.c \
23        stock.c \
24        colorstring.c \
25        resize.c \
26        dither.c \
27        measure.c \
28        accessors.c \
29        $(codec_sources) \
30        $(paint_sources) \
31        $(render_sources) \
32        $(combine_sources) \
33        $(filter_sources) \
34        $(quantize_sources) \
35        $(dither_sources) \
36        $(histogram_sources) \
37        $(NULL)
38libpipi_la_CFLAGS = $(codec_cflags)
39libpipi_la_LDFLAGS = $(codec_libs) \
40        -no-undefined -version-number @LT_VERSION@
41
42# Conditional sources
43codec_cflags =
44codec_libs =
45codec_sources =
46
47# Submodules
48paint_sources = \
49        paint/floodfill.c \
50        paint/line.c \
51        paint/bezier.c \
52        paint/tile.c
53
54render_sources = \
55        render/noise.c \
56        render/screen.c
57
58combine_sources = \
59        combine/rgb.c \
60        combine/mean.c \
61        combine/minmax.c \
62        combine/subadd.c \
63        combine/mulscreen.c
64
65filter_sources = \
66        filter/autocontrast.c \
67        filter/blur.c \
68        filter/convolution.c \
69        filter/color.c \
70        filter/transform.c \
71        filter/median.c \
72        filter/dilate.c
73
74quantize_sources = \
75        quantize/reduce.c
76
77dither_sources = \
78        dither/ediff.c \
79        dither/ordered.c \
80        dither/ostromoukhov.c \
81        dither/dbs.c \
82        dither/random.c
83
84histogram_sources = \
85        histogram/histogram.c
86
87if USE_SDL
88codec_cflags += `sdl-config --cflags`
89codec_libs += `sdl-config --libs` -lSDL_image
90codec_sources += codec/sdl.c
91endif
92
93if USE_IMLIB2
94codec_cflags += @IMLIB2_CFLAGS@
95codec_libs += @IMLIB2_LIBS@
96codec_sources += codec/imlib.c
97endif
98
99if USE_OPENCV
100codec_cflags += @OPENCV_CFLAGS@
101codec_libs += @OPENCV_LIBS@
102codec_sources += codec/opencv.c
103endif
104
105if USE_GDI
106codec_libs += -lgdi32
107codec_sources += codec/gdi.c
108endif
109
Note: See TracBrowser for help on using the repository browser.