# $Id$ EXTRA_DIST = pipi.pc.in DISTCLEANFILES = pipi.pc AM_CPPFLAGS = -I$(top_srcdir) pkgconfig_DATA = pipi.pc pkgconfigdir = $(libdir)/pkgconfig include_HEADERS = pipi.h # The main library lib_LTLIBRARIES = libpipi.la libpipi_la_SOURCES = \ pipi.c \ pipi.h \ pipi_internals.h \ pipi_template.h \ context.c \ pixels.c \ codec.c \ stock.c \ colorstring.c \ resize.c \ dither.c \ measure.c \ accessors.c \ $(codec_sources) \ $(paint_sources) \ $(render_sources) \ $(combine_sources) \ $(filter_sources) \ $(quantize_sources) \ $(dither_sources) \ $(histogram_sources) \ $(NULL) libpipi_la_CFLAGS = $(codec_cflags) libpipi_la_LDFLAGS = $(codec_libs) \ -no-undefined -version-number @LT_VERSION@ # Submodules codec_cflags = codec_libs = codec_sources = \ codec/oric.c paint_sources = \ paint/floodfill.c \ paint/line.c \ paint/bezier.c \ paint/tile.c render_sources = \ render/noise.c \ render/screen.c combine_sources = \ combine/rgb.c \ combine/mean.c \ combine/minmax.c \ combine/subadd.c \ combine/mulscreen.c filter_sources = \ filter/autocontrast.c \ filter/blur.c \ filter/convolution.c \ filter/color.c \ filter/transform.c \ filter/median.c \ filter/dilate.c quantize_sources = \ quantize/reduce.c dither_sources = \ dither/ediff.c \ dither/ordered.c \ dither/ostromoukhov.c \ dither/dbs.c \ dither/random.c histogram_sources = \ histogram/histogram.c # Conditional sources if USE_SDL codec_cflags += `sdl-config --cflags` codec_libs += `sdl-config --libs` -lSDL_image codec_sources += codec/sdl.c endif if USE_IMLIB2 codec_cflags += @IMLIB2_CFLAGS@ codec_libs += @IMLIB2_LIBS@ codec_sources += codec/imlib.c endif if USE_OPENCV codec_cflags += @OPENCV_CFLAGS@ codec_libs += @OPENCV_LIBS@ codec_sources += codec/opencv.c endif if USE_GDI codec_libs += -lgdi32 codec_sources += codec/gdi.c endif