6 loaderdir = $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders
8 module_libs = libgdk_pixbuf-1.3.la $(GDK_PIXBUF_DEP_LIBS)
13 libpixbufloader_png_la_SOURCES = io-png.c
14 libpixbufloader_png_la_LDFLAGS = -avoid-version -module
15 libpixbufloader_png_la_LIBADD = $(LIBPNG) $(module_libs)
16 libpixbufloader_static_png_la_SOURCES = io-png.c
21 libpixbufloader_static_jpeg_la_SOURCES = io-jpeg.c
22 libpixbufloader_jpeg_la_SOURCES = io-jpeg.c
23 libpixbufloader_jpeg_la_LDFLAGS = -avoid-version -module
24 libpixbufloader_jpeg_la_LIBADD = $(LIBJPEG) $(module_libs)
29 libpixbufloader_static_xpm_la_SOURCES = io-xpm.c
30 libpixbufloader_xpm_la_SOURCES = io-xpm.c
31 libpixbufloader_xpm_la_LDFLAGS = -avoid-version -module
32 libpixbufloader_xpm_la_LIBADD = $(module_libs)
37 libpixbufloader_static_gif_la_SOURCES = io-gif.c io-gif-animation.c io-gif-animation.h
38 libpixbufloader_gif_la_SOURCES = io-gif.c io-gif-animation.c io-gif-animation.h
39 libpixbufloader_gif_la_LDFLAGS = -avoid-version -module
40 libpixbufloader_gif_la_LIBADD = $(module_libs)
45 libpixbufloader_static_ico_la_SOURCES = io-ico.c
46 libpixbufloader_ico_la_SOURCES = io-ico.c
47 libpixbufloader_ico_la_LDFLAGS = -avoid-version -module
48 libpixbufloader_ico_la_LIBADD = $(module_libs)
53 libpixbufloader_static_ras_la_SOURCES = io-ras.c
54 libpixbufloader_ras_la_SOURCES = io-ras.c
55 libpixbufloader_ras_la_LDFLAGS = -avoid-version -module
56 libpixbufloader_ras_la_LIBADD = $(module_libs)
61 libpixbufloader_static_tiff_la_SOURCES = io-tiff.c
62 libpixbufloader_tiff_la_SOURCES = io-tiff.c
63 libpixbufloader_tiff_la_LDFLAGS = -avoid-version -module
64 libpixbufloader_tiff_la_LIBADD = $(LIBTIFF) $(module_libs)
69 libpixbufloader_static_pnm_la_SOURCES = io-pnm.c
70 libpixbufloader_pnm_la_SOURCES = io-pnm.c
71 libpixbufloader_pnm_la_LDFLAGS = -avoid-version -module
72 libpixbufloader_pnm_la_LIBADD = $(module_libs)
77 libpixbufloader_static_bmp_la_SOURCES = io-bmp.c
78 libpixbufloader_bmp_la_SOURCES = io-bmp.c
79 libpixbufloader_bmp_la_LDFLAGS = -avoid-version -module
80 libpixbufloader_bmp_la_LIBADD = $(module_libs)
85 libpixbufloader_static_wbmp_la_SOURCES = io-wbmp.c
86 libpixbufloader_wbmp_la_SOURCES = io-wbmp.c
87 libpixbufloader_wbmp_la_LDFLAGS = -avoid-version -module
88 libpixbufloader_wbmp_la_LIBADD = $(module_libs)
93 libpixbufloader_xbm_la_SOURCES = io-xbm.c
94 libpixbufloader_xbm_la_LDFLAGS = -version-info 1:0:0 -module
95 libpixbufloader_xbm_la_LDFLAGS = -avoid-version -module
96 libpixbufloader_xbm_la_LIBADD = $(module_libs)
101 libpixbufloader_tga_la_SOURCES = io-tga.c
102 libpixbufloader_tga_la_LDFLAGS = -version-info 1:0:0 -module
103 libpixbufloader_tga_la_LDFLAGS = -avoid-version -module
104 libpixbufloader_tga_la_LIBADD = $(module_libs)
107 PNG_LIB = libpixbufloader-png.la
111 JPEG_LIB = libpixbufloader-jpeg.la
114 GIF_LIB = libpixbufloader-gif.la
116 ICO_LIB = libpixbufloader-ico.la
118 RAS_LIB = libpixbufloader-ras.la
121 TIFF_LIB = libpixbufloader-tiff.la
124 XPM_LIB = libpixbufloader-xpm.la
126 PNM_LIB = libpixbufloader-pnm.la
128 BMP_LIB = libpixbufloader-bmp.la
130 WBMP_LIB = libpixbufloader-wbmp.la
132 XBM_LIB = libpixbufloader-xbm.la
134 TGA_LIB = libpixbufloader-tga.la
136 if BUILD_DYNAMIC_MODULES
138 loader_LTLIBRARIES = \
158 noinst_LTLIBRARIES = \
159 libpixbufloader-static-png.la \
160 libpixbufloader-static-jpeg.la \
161 libpixbufloader-static-gif.la \
162 libpixbufloader-static-ico.la \
163 libpixbufloader-static-ras.la \
164 libpixbufloader-static-tiff.la \
165 libpixbufloader-static-xpm.la \
166 libpixbufloader-static-pnm.la \
167 libpixbufloader-static-bmp.la \
168 libpixbufloader-static-wbmp.la
170 builtin_objs = @INCLUDED_LOADER_OBJ@
174 TESTS = test-gdk-pixbuf test-loaders
175 noinst_PROGRAMS = $(TESTS)
177 DEPS = libgdk_pixbuf-1.3.la
178 INCLUDES = @STRIP_BEGIN@ \
179 -I$(top_srcdir) -I$(top_builddir) \
180 -I$(top_srcdir)/gdk-pixbuf \
181 -I$(top_builddir)/gdk-pixbuf \
182 @INCLUDED_LOADER_DEFINE@ \
184 @GDK_PIXBUF_DEP_CFLAGS@ \
187 AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(loaderdir)\"" "-DBUILT_MODULES_DIR=\"$(srcdir)/.libs\""
189 LDADDS = libgdk_pixbuf-1.3.la
191 test_gdk_pixbuf_LDADD = $(LDADDS)
192 test_loaders_LDADD = $(LDADDS)
194 test_loaders_SOURCES = test-loaders.c test-images.h
196 #noinst_PROGRAMS=make-inline-pixbuf
197 #make_inline_pixbuf_SOURCES=make-inline-pixbuf.c
198 #make_inline_pixbuf_LDADD = $(LDADDS)
200 bin_PROGRAMS = gdk-pixbuf-csource
201 gdk_pixbuf_csource_SOURCES = gdk-pixbuf-csource.c
202 gdk_pixbuf_csource_LDADD = $(LDADDS)
205 # manual pages to install
207 man_MANS = gdk-pixbuf-csource.1
211 # The GdkPixBuf library
215 gdk_pixbuf_built_headers = gdk-pixbuf-enum-types.h
216 gdk_pixbuf_built_cfiles = gdk-pixbuf-enum-types.c
218 $(OBJECTS): $(gdk_pixbuf_built_headers)
220 libgdk_pixbufincludedir = $(includedir)/gtk-2.0/gdk-pixbuf
222 libgdk_pixbuf_1_3_la_SOURCES = @STRIP_BEGIN@ \
225 gdk-pixbuf-animation.c \
228 gdk-pixbuf-loader.c \
232 $(gdk_pixbuf_built_cfiles) \
236 $(libgdk_pixbuf_1_3_la_OBJECTS): gdk-pixbuf-marshal.h gdk-pixbuf-marshal.c
238 libgdk_pixbuf_1_3_la_LDFLAGS = @STRIP_BEGIN@ \
239 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
240 @LIBTOOL_EXPORT_OPTIONS@ \
243 libgdk_pixbuf_1_3_la_LIBADD = pixops/libpixops.la $(builtin_objs) $(GDK_PIXBUF_DEP_LIBS)
244 libgdk_pixbuf_1_3_la_DEPENDENCIES = $(builtin_objs)
246 gdk_pixbuf_headers = \
248 gdk-pixbuf-loader.h \
249 gdk-pixbuf-features.h
251 libgdk_pixbufinclude_HEADERS = \
252 $(gdk_pixbuf_headers) \
253 $(gdk_pixbuf_built_headers) \
260 gdk-pixbuf-enum-types.h: s-enum-types-h
263 s-enum-types-h: @REBUILD@ $(gdk_pixbuf_headers) Makefile
264 ( cd $(srcdir) && glib-mkenums \
265 --fhead "#ifndef __GDK_PIXBUF__ENUM_TYPES_H__\n#define __GDK_PIXBUF_ENUM_TYPES_H__\n" \
266 --fprod "/* enumerations from \"@filename@\" */\n" \
267 --vhead "GType @enum_name@_get_type (void);\n#define GDK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
268 --ftail "#endif /* __GDK_PIXBUF_ENUM_TYPES_H__ */" \
269 $(gdk_pixbuf_headers) ) > tmp-gdk-pixbuf-enum-types.h \
270 && (cmp -s tmp-gdk-pixbuf-enum-types.h $(srcdir)/gdk-pixbuf-enum-types.h || cp tmp-gdk-pixbuf-enum-types.h $(srcdir)/gdk-pixbuf-enum-types.h ) \
271 && rm -f tmp-gdk-pixbuf-enum-types.h \
272 && echo timestamp > $(@F)
274 gdk-pixbuf-enum-types.c: s-enum-types-c
277 s-enum-types-c: @REBUILD@ $(gdk_pixbuf_headers) Makefile
278 ( cd $(srcdir) && glib-mkenums \
279 --fhead "#include <gdk-pixbuf/gdk-pixbuf.h>" \
280 --fprod "\n/* enumerations from \"@filename@\" */" \
281 --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const GEnumValue values[] = {" \
282 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
283 --vtail " { 0, NULL, NULL }\n };\n etype = g_enum_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
284 $(gdk_pixbuf_headers) ) > tmp-gdk-pixbuf-enum-types.c \
285 && (cmp -s tmp-gdk-pixbuf-enum-types.c $(srcdir)/gdk-pixbuf-enum-types.c || cp tmp-gdk-pixbuf-enum-types.c $(srcdir)/gdk-pixbuf-enum-types.c ) \
286 && rm -f tmp-gdk-pixbuf-enum-types.c \
287 && echo timestamp > $(@F)
291 gdk-pixbuf-csource.1 \
295 gdk-pixbuf-marshal.list \
296 pixbufloader_ico.def \
297 pixbufloader_pnm.def \
298 pixbufloader_xpm.def \
299 pixbufloader_bmp.def \
300 pixbufloader_jpeg.def \
301 pixbufloader_ras.def \
302 pixbufloader_gif.def \
303 pixbufloader_png.def \
304 pixbufloader_tiff.def \
305 pixbufloader_wbmp.def \
309 gdk-pixbuf-marshal.h: @REBUILD@ stamp-gdk-pixbuf-marshal.h
312 gdk-pixbuf-marshal.c: @REBUILD@ stamp-gdk-pixbuf-marshal.c
315 stamp-gdk-pixbuf-marshal.h: @REBUILD@ $(srcdir)/gdk-pixbuf-marshal.list
316 case @GLIB_GENMARSHAL@ in \
317 .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;; \
318 *) glib_genmarshal=@GLIB_GENMARSHAL@ ;; \
321 && $$glib_genmarshal --prefix=gdk_pixbuf_marshal gdk-pixbuf-marshal.list --header >> xgen-gmh \
322 && (cmp -s xgen-gmh gdk-pixbuf-marshal.h || cp xgen-gmh gdk-pixbuf-marshal.h) \
323 && rm -f xgen-gmh xgen-gmh~ \
324 && echo timestamp > $(@F)
325 stamp-gdk-pixbuf-marshal.c: @REBUILD@ $(srcdir)/gdk-pixbuf-marshal.list
326 case @GLIB_GENMARSHAL@ in \
327 .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;; \
328 *) glib_genmarshal=@GLIB_GENMARSHAL@ ;; \
331 && $$glib_genmarshal --prefix=gdk_pixbuf_marshal gdk-pixbuf-marshal.list --body >> xgen-gmc \
332 && (cmp -s xgen-gmc gdk-pixbuf-marshal.c || cp xgen-gmc gdk-pixbuf-marshal.c) \
333 && rm -f xgen-gmc xgen-gmc~ \
334 && echo timestamp > $(@F)