# $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 \ context.c \ pixels.c \ codec.c \ stock.c \ resize.c \ dither.c \ measure.c \ fill/floodfill.c \ $(codec_sources) \ $(filter_sources) \ $(dither_sources) \ $(NULL) libpipi_la_CFLAGS = $(codec_cflags) libpipi_la_LDFLAGS = $(codec_libs) \ -no-undefined -version-number @LT_VERSION@ # Conditional sources codec_cflags = codec_libs = codec_sources = # Submodules filter_sources = \ filter/autocontrast.c \ filter/blur.c \ filter/convolution.c \ filter/convolution.h dither_sources = \ dither/floydsteinberg.c \ dither/jajuni.c \ dither/ordered.c \ dither/ostromoukhov.c \ dither/dbs.c \ dither/random.c 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