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

Last change on this file since 2780 was 2780, checked in by Jean-Yves Lamoureux, 14 years ago
  • Oops. Fixed typo that prevented tile.c to be compiled (STFU I SAID!)
File size: 1.7 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        $(render_sources) \
29        $(combine_sources) \
30        $(filter_sources) \
31        $(quantize_sources) \
32        $(dither_sources) \
33        $(NULL)
34libpipi_la_CFLAGS = $(codec_cflags)
35libpipi_la_LDFLAGS = $(codec_libs) \
36        -no-undefined -version-number @LT_VERSION@
37
38# Conditional sources
39codec_cflags =
40codec_libs =
41codec_sources =
42
43# Submodules
44paint_sources = \
45        paint/floodfill.c \
46        paint/line.c paint/line_template.h paint/aline_template.h \
47        paint/tile.c
48
49render_sources = \
50        render/noise.c \
51        render/screen.c
52
53combine_sources = \
54        combine/rgb.c \
55        combine/mean.c \
56        combine/minmax.c \
57        combine/subadd.c \
58        combine/mulscreen.c
59
60filter_sources = \
61        filter/autocontrast.c \
62        filter/blur.c \
63        filter/convolution.c filter/convolution_template.h \
64        filter/color.c \
65        filter/transform.c \
66        filter/median.c \
67        filter/dilate.c
68
69quantize_sources = \
70        quantize/reduce.c
71
72dither_sources = \
73        dither/ediff.c \
74        dither/ordered.c \
75        dither/halftone.c \
76        dither/ostromoukhov.c \
77        dither/dbs.c \
78        dither/random.c
79
80if USE_SDL
81codec_cflags += `sdl-config --cflags`
82codec_libs += `sdl-config --libs` -lSDL_image
83codec_sources += codec/sdl.c
84endif
85
86if USE_IMLIB2
87codec_cflags += @IMLIB2_CFLAGS@
88codec_libs += @IMLIB2_LIBS@
89codec_sources += codec/imlib.c
90endif
91
92if USE_OPENCV
93codec_cflags += @OPENCV_CFLAGS@
94codec_libs += @OPENCV_LIBS@
95codec_sources += codec/opencv.c
96endif
97
Note: See TracBrowser for help on using the repository browser.