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

Last change on this file since 2842 was 2842, checked in by Sam Hocevar, 12 years ago

Wrote an Oric hires file parser.

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# Submodules
43
44codec_cflags =
45codec_libs =
46codec_sources = \
47        codec/oric.c
48
49paint_sources = \
50        paint/floodfill.c \
51        paint/line.c \
52        paint/bezier.c \
53        paint/tile.c
54
55render_sources = \
56        render/noise.c \
57        render/screen.c
58
59combine_sources = \
60        combine/rgb.c \
61        combine/mean.c \
62        combine/minmax.c \
63        combine/subadd.c \
64        combine/mulscreen.c
65
66filter_sources = \
67        filter/autocontrast.c \
68        filter/blur.c \
69        filter/convolution.c \
70        filter/color.c \
71        filter/transform.c \
72        filter/median.c \
73        filter/dilate.c
74
75quantize_sources = \
76        quantize/reduce.c
77
78dither_sources = \
79        dither/ediff.c \
80        dither/ordered.c \
81        dither/ostromoukhov.c \
82        dither/dbs.c \
83        dither/random.c
84
85histogram_sources = \
86        histogram/histogram.c
87
88# Conditional sources
89
90if USE_SDL
91codec_cflags += `sdl-config --cflags`
92codec_libs += `sdl-config --libs` -lSDL_image
93codec_sources += codec/sdl.c
94endif
95
96if USE_IMLIB2
97codec_cflags += @IMLIB2_CFLAGS@
98codec_libs += @IMLIB2_LIBS@
99codec_sources += codec/imlib.c
100endif
101
102if USE_OPENCV
103codec_cflags += @OPENCV_CFLAGS@
104codec_libs += @OPENCV_LIBS@
105codec_sources += codec/opencv.c
106endif
107
108if USE_GDI
109codec_libs += -lgdi32
110codec_sources += codec/gdi.c
111endif
112
Note: See TracBrowser for help on using the repository browser.