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

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

libpipi: move histogram.c and measure.c in a new analysis/ subdirectory.

File size: 2.5 KB
Line 
1# $Id$
2
3EXTRA_DIST = pipi_types.h.in 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 pipi_types.h
12
13# The main library
14lib_LTLIBRARIES = libpipi.la
15libpipi_la_SOURCES = \
16        pipi.c \
17        pipi.h \
18        pipi_types.h \
19        pipi_internals.h \
20        pipi_stubs.h \
21        pipi_template.h \
22        context.c \
23        pixels.c \
24        codec.c \
25        stock.c \
26        colorstring.c \
27        resize.c \
28        dither.c \
29        accessors.c \
30        $(codec_sources) \
31        $(paint_sources) \
32        $(render_sources) \
33        $(combine_sources) \
34        $(filter_sources) \
35        $(quantize_sources) \
36        $(dither_sources) \
37        $(analysis_sources) \
38        $(NULL)
39libpipi_la_CFLAGS = $(codec_cflags)
40libpipi_la_LDFLAGS = $(codec_libs) \
41        -no-undefined -version-number @LT_VERSION@ \
42        -lm
43# Submodules
44
45codec_cflags =
46codec_libs =
47codec_sources = \
48        codec/oric.c
49
50paint_sources = \
51        paint/floodfill.c \
52        paint/line.c \
53        paint/bezier.c \
54        paint/tile.c
55
56render_sources = \
57        render/noise.c \
58        render/screen.c
59
60combine_sources = \
61        combine/rgb.c \
62        combine/mean.c \
63        combine/minmax.c \
64        combine/subadd.c \
65        combine/mulscreen.c
66
67filter_sources = \
68        filter/autocontrast.c \
69        filter/blur.c \
70        filter/convolution.c \
71        filter/color.c \
72        filter/transform.c \
73        filter/median.c \
74        filter/dilate.c
75
76quantize_sources = \
77        quantize/reduce.c
78
79dither_sources = \
80        dither/ediff.c \
81        dither/ordered.c \
82        dither/ostromoukhov.c \
83        dither/dbs.c \
84        dither/random.c
85
86analysis_sources = \
87        analysis/measure.c \
88        analysis/histogram.c
89
90# Conditional sources
91
92if USE_SDL
93codec_cflags += `sdl-config --cflags`
94codec_libs += `sdl-config --libs` -lSDL_image
95codec_sources += codec/sdl.c
96endif
97
98if USE_IMLIB2
99codec_cflags += @IMLIB2_CFLAGS@
100codec_libs += @IMLIB2_LIBS@
101codec_sources += codec/imlib.c
102endif
103
104if USE_OPENCV
105codec_cflags += @OPENCV_CFLAGS@
106codec_libs += @OPENCV_LIBS@
107codec_sources += codec/opencv.c
108endif
109
110if USE_GDI
111codec_libs += -lgdi32
112codec_sources += codec/gdi.c
113endif
114
115if USE_GDIPLUS
116codec_libs += -Wl,--exclude-symbols,$$(printf '\x7f')gdiplus_NULL_THUNK_DATA -lgdiplus
117codec_sources += codec/gdiplus.cpp
118endif
119
120if USE_COCOA
121codec_objcflags = -I"/Developer//SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/"
122codec_libs += -framework Cocoa -framework IOKit -framework CoreFoundation -framework QuartzCore
123codec_sources += codec/coreimage.m
124endif
125
126# Modular codecs
127if USE_MODULAR
128codec_sources += codec/modular.c
129if USE_LIBJPEG
130codec_libs += -ljpeg
131codec_sources += codec/modular/jpeg.c
132endif
133endif
Note: See TracBrowser for help on using the repository browser.