Makefile.am 2.92 KB
Newer Older
1 2 3 4 5
lib_LTLIBRARIES = 		\
	libgdk_pixbuf.la

libexecdir = $(libdir)/gdk-pixbuf/loaders

6 7 8 9 10 11 12 13
if HAVE_PNG
PNG_LIB =	libpixbuf-png.la
endif

if HAVE_JPEG
JPEG_LIB =	libpixbuf-jpeg.la
endif

14
GIF_LIB = libpixbuf-gif.la
15

16 17
ICO_LIB = libpixbuf-ico.la

18 19
RAS_LIB = libpixbuf-ras.la

20 21 22 23 24 25
if HAVE_TIFF
TIFF_LIB =	libpixbuf-tiff.la
endif

XPM_LIB =	libpixbuf-xpm.la

26 27
PNM_LIB =	libpixbuf-pnm.la

28 29
BMP_LIB =   	libpixbuf-bmp.la

30
libexec_LTLIBRARIES =		\
31 32 33
	$(PNG_LIB)	\
	$(JPEG_LIB)	\
	$(GIF_LIB)	\
34
	$(ICO_LIB)	\
35
	$(RAS_LIB)	\
36
	$(XPM_LIB)	\
37
	$(TIFF_LIB)	\
38 39
	$(PNM_LIB)	\
	$(BMP_LIB)
40

41
noinst_PROGRAMS = testpixbuf testpixbuf-drawable
42

43
DEPS = libgdk_pixbuf.la
44
INCLUDES = -I$(top_builddir)/gdk-pixbuf $(GLIB_CFLAGS) $(LIBART_CFLAGS) $(GTK_CFLAGS)
Manish Singh's avatar
Manish Singh committed
45
AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(libexecdir)\""
46

Jonathan Blandford's avatar
Jonathan Blandford committed
47
LDADDS = libgdk_pixbuf.la $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
Mark Crichton's avatar
Mark Crichton committed
48

49 50
if INSIDE_GNOME_LIBS
testpixbuf_LDADD = $(LDADDS) $(LIBART_LIBS) -lgmodule
51
testpixbuf_drawable_LDADD = $(LDADDS)
52
else
53
testpixbuf_LDADD = $(LDADDS) $(LIBART_LIBS) $(GNOME_LIBS) -lgmodule
54
testpixbuf_drawable_LDADD = $(LDADDS) $(GNOME_LIBS)
55
endif
Mark Crichton's avatar
Mark Crichton committed
56

57
GDK_PIXBUF_LIBS = $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
58

59 60 61
#
# The GdkPixBuf library
#
62 63 64 65 66 67 68 69
if INSIDE_GNOME_LIBS
CANVAS_SOURCEFILES=
CANVAS_HEADERFILES=
else
CANVAS_SOURCEFILES=	gnome-canvas-pixbuf.c
CANVAS_HEADERFILES=	gnome-canvas-pixbuf.h
endif

70
libgdk_pixbufincludedir = $(includedir)/gdk-pixbuf
71 72

libgdk_pixbuf_la_SOURCES = 	\
Arturo Espinosa's avatar
Arturo Espinosa committed
73
	gdk-pixbuf.c		\
74
	gdk-pixbuf-data.c	\
75
	gdk-pixbuf-drawable.c	\
76
	gdk-pixbuf-io.c		\
77
	gdk-pixbuf-loader.c	\
78
	gdk-pixbuf-render.c	\
79
	gdk-pixbuf-util.c	\
80
	$(CANVAS_SOURCEFILES)
81

82 83
libgdk_pixbuf_la_LDFLAGS = -version-info 1:0:0

84
libgdk_pixbufinclude_HEADERS =	\
85
	gdk-pixbuf.h		\
86
	gdk-pixbuf-loader.h	\
87
	$(CANVAS_HEADERFILES)
88

89 90 91
noinst_HEADERS = \
	gdk-pixbuf-io.h

92 93 94
#
# The PNG plugin.
#
95
libpixbuf_png_la_SOURCES = io-png.c
Manish Singh's avatar
Manish Singh committed
96
libpixbuf_png_la_LDFLAGS = -avoid-version -module
97
libpixbuf_png_la_LIBADD = $(LIBPNG)
98 99 100 101

#
# The JPEG loader
#
102
libpixbuf_jpeg_la_SOURCES = io-jpeg.c
Manish Singh's avatar
Manish Singh committed
103
libpixbuf_jpeg_la_LDFLAGS = -avoid-version -module
104
libpixbuf_jpeg_la_LIBADD = $(LIBJPEG)
105

106 107 108
#
# The XPM loader
#
109
libpixbuf_xpm_la_SOURCES = io-xpm.c
Manish Singh's avatar
Manish Singh committed
110
libpixbuf_xpm_la_LDFLAGS = -avoid-version -module
111
libpixbuf_xpm_la_LIBADD =
112 113 114 115

#
# The GIF loader
#
116
libpixbuf_gif_la_SOURCES = io-gif.c
Manish Singh's avatar
Manish Singh committed
117
libpixbuf_gif_la_LDFLAGS = -avoid-version -module
118
libpixbuf_gif_la_LIBADD =
119

120 121 122 123 124 125 126
#
# The ICO loader
#
libpixbuf_ico_la_SOURCES = io-ico.c
libpixbuf_ico_la_LDFLAGS = -avoid-version -module
libpixbuf_ico_la_LIBADD =

127 128 129 130 131
#
# The RAS loader
#
libpixbuf_ras_la_SOURCES = io-ras.c
libpixbuf_ras_la_LDFLAGS = -avoid-version -module
132
libpixbuf_ras_la_LIBADD =
133

134 135 136
#
# The TIFF loader
#
137
libpixbuf_tiff_la_SOURCES = io-tiff.c
Manish Singh's avatar
Manish Singh committed
138
libpixbuf_tiff_la_LDFLAGS = -avoid-version -module
139
libpixbuf_tiff_la_LIBADD =
140 141 142 143 144 145

#
# The PNM loader
#
libpixbuf_pnm_la_SOURCES = io-pnm.c
libpixbuf_pnm_la_LDFLAGS = -avoid-version -module
146
libpixbuf_pnm_la_LIBADD =
147 148 149 150 151 152

#
# The BMP loader
#
libpixbuf_bmp_la_SOURCES = io-bmp.c
libpixbuf_bmp_la_LDFLAGS = -avoid-version -module
153
libpixbuf_bmp_la_LIBADD =