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

Last change on this file since 2261 was 2261, checked in by Sam Hocevar, 13 years ago
  • Split the image loaders into sdl.c, imlib.c and opencv.c. We'll do something far better, but later.
File size: 925 bytes
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# Conditional sources
14codec_cflags =
15codec_libs =
16codec_sources =
17
18# The main library
19lib_LTLIBRARIES = libpipi.la
20libpipi_la_SOURCES = \
21        pipi.c \
22        pipi.h \
23        pipi_internals.h \
24        pixels.c \
25        codec.c \
26        resize.c \
27        $(codec_sources) \
28        $(NULL)
29libpipi_la_CFLAGS = $(codec_cflags)
30libpipi_la_LDFLAGS = $(codec_libs) \
31        -no-undefined -version-number @LT_VERSION@
32
33if USE_SDL
34codec_cflags += `sdl-config --cflags`
35codec_libs += `sdl-config --libs` -lSDL_image
36codec_sources += codec/sdl.c
37endif
38
39if USE_IMLIB2
40codec_cflags += @IMLIB2_CFLAGS@
41codec_libs += @IMLIB2_LIBS@
42codec_sources += codec/imlib.c
43endif
44
45if USE_OPENCV
46codec_cflags += `opencv-config --cflags`
47codec_libs += `opencv-config --libs opencv highgui`
48codec_sources += codec/opencv.c
49endif
50
Note: See TracBrowser for help on using the repository browser.