]> Pileus Git - ~andy/gtk/blob - gdk-pixbuf/Makefile.am
2.7.0
[~andy/gtk] / gdk-pixbuf / Makefile.am
1
2 SUBDIRS = pixops
3
4 if PLATFORM_WIN32
5 no_undefined = -no-undefined
6 endif
7
8 if OS_WIN32
9 gdk_pixbuf_def = gdk_pixbuf.def
10 gdk_pixbuf_symbols = -export-symbols $(gdk_pixbuf_def)
11
12 gdk_pixbuf_win32res_lo = gdk_pixbuf-win32res.lo
13
14 gdk_pixbuf-win32res.lo : gdk_pixbuf.rc
15         $(top_srcdir)/build/win32/lt-compile-resource gdk_pixbuf.rc gdk_pixbuf-win32res.lo
16
17 install-libtool-import-lib:
18 #       Don't put the binary compatibility entries in the import lib!
19 #       (Unfortunately the GNU linker doesn't yet understand the PRIVATE
20 #       directive in .def files.)
21         for entry in `grep PRIVATE gdk_pixbuf.def | sed -e 's/PRIVATE//'`; do \
22           file=`$(NM) -A .libs/libgdk_pixbuf-$(GTK_API_VERSION).dll.a | tr -d '\r' | grep -E $$entry'$$' | head -n 1 | cut -d: -f2`; \
23           $(AR) d .libs/libgdk_pixbuf-$(GTK_API_VERSION).dll.a $$file; \
24         done
25         $(INSTALL) .libs/libgdk_pixbuf-$(GTK_API_VERSION).dll.a $(DESTDIR)$(libdir)
26 uninstall-libtool-import-lib:
27         -rm $(DESTDIR)$(libdir)/libgdk_pixbuf-$(GTK_API_VERSION).dll.a
28 else
29 install-libtool-import-lib:
30 uninstall-libtool-import-lib:
31 endif
32
33 if MS_LIB_AVAILABLE
34 noinst_DATA = gdk_pixbuf-$(GTK_API_VERSION).lib
35
36 gdk_pixbuf-$(GTK_API_VERSION).lib: libgdk_pixbuf-$(GTK_API_VERSION).la gdk_pixbuf.def
37         lib -name:libgdk_pixbuf-$(GTK_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gdk_pixbuf.def -out:$@
38
39 install-ms-lib:
40         $(INSTALL) gdk_pixbuf-$(GTK_API_VERSION).lib $(DESTDIR)$(libdir)
41
42 uninstall-ms-lib:
43         -rm $(DESTDIR)$(libdir)/gdk_pixbuf-$(GTK_API_VERSION).lib
44 else
45 install-ms-lib:
46 uninstall-ms-lib:
47 endif
48
49 gdk_pixbuf.def: gdk-pixbuf.symbols
50         (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gdk-pixbuf.symbols | sed -e '/^$$/d' -e 's/^/     /' -e 's/G_GNUC_[^ ]*//g') > gdk_pixbuf.def
51
52 gdk-pixbuf-alias.h: gdk-pixbuf.symbols
53          $(PERL) $(srcdir)/makegdkpixbufalias.pl < $(srcdir)/gdk-pixbuf.symbols > gdk-pixbuf-alias.h
54
55 gdk-pixbuf-aliasdef.c: gdk-pixbuf.symbols
56          $(PERL) $(srcdir)/makegdkpixbufalias.pl -def < $(srcdir)/gdk-pixbuf.symbols > gdk-pixbuf-aliasdef.c
57
58 if OS_LINUX
59 TESTS = abicheck.sh
60 endif
61
62 lib_LTLIBRARIES =               \
63         libgdk_pixbuf-2.0.la
64
65 loaderdir = $(libdir)/gtk-2.0/$(GTK_BINARY_VERSION)/loaders
66
67 module_libs = libgdk_pixbuf-$(GTK_API_VERSION).la $(GDK_PIXBUF_DEP_LIBS)
68
69 #
70 # The PNG plugin.
71 #
72 libpixbufloader_png_la_SOURCES = io-png.c
73 libpixbufloader_png_la_LDFLAGS = -avoid-version -module $(no_undefined)
74 libpixbufloader_png_la_LIBADD = $(LIBPNG) $(module_libs)
75 libpixbufloader_static_png_la_SOURCES = io-png.c
76
77 #
78 # The JPEG loader
79 #
80 libpixbufloader_static_jpeg_la_SOURCES = io-jpeg.c
81 libpixbufloader_jpeg_la_SOURCES = io-jpeg.c
82 libpixbufloader_jpeg_la_LDFLAGS = -avoid-version -module $(no_undefined)
83 libpixbufloader_jpeg_la_LIBADD = $(LIBJPEG) $(module_libs)
84
85 #
86 # The XPM loader
87 #
88 libpixbufloader_static_xpm_la_SOURCES = io-xpm.c
89 libpixbufloader_xpm_la_SOURCES = io-xpm.c
90 libpixbufloader_xpm_la_LDFLAGS = -avoid-version -module $(no_undefined)
91 libpixbufloader_xpm_la_LIBADD = $(module_libs)
92
93 #
94 # The GIF loader
95 #
96 libpixbufloader_static_gif_la_SOURCES = io-gif.c io-gif-animation.c io-gif-animation.h
97 libpixbufloader_gif_la_SOURCES = io-gif.c io-gif-animation.c io-gif-animation.h
98 libpixbufloader_gif_la_LDFLAGS = -avoid-version -module $(no_undefined)
99 libpixbufloader_gif_la_LIBADD = $(module_libs)
100
101 #
102 # The ICO loader
103 #
104 libpixbufloader_static_ico_la_SOURCES = io-ico.c
105 libpixbufloader_ico_la_SOURCES = io-ico.c
106 libpixbufloader_ico_la_LDFLAGS = -avoid-version -module $(no_undefined)
107 libpixbufloader_ico_la_LIBADD = $(module_libs)
108
109 #
110 # The ANI loader
111 #
112 libpixbufloader_static_ani_la_SOURCES = io-ani.c io-ani-animation.c io-ani-animation.h
113 libpixbufloader_ani_la_SOURCES = io-ani.c io-ani-animation.c io-ani-animation.h
114 libpixbufloader_ani_la_LDFLAGS = -avoid-version -module $(no_undefined)
115 libpixbufloader_ani_la_LIBADD = $(module_libs)
116
117 #
118 # The RAS loader
119 #
120 libpixbufloader_static_ras_la_SOURCES = io-ras.c
121 libpixbufloader_ras_la_SOURCES = io-ras.c
122 libpixbufloader_ras_la_LDFLAGS = -avoid-version -module $(no_undefined)
123 libpixbufloader_ras_la_LIBADD = $(module_libs)
124
125 #
126 # The TIFF loader
127 #
128 libpixbufloader_static_tiff_la_SOURCES = io-tiff.c
129 libpixbufloader_tiff_la_SOURCES = io-tiff.c
130 libpixbufloader_tiff_la_LDFLAGS = -avoid-version -module $(no_undefined)
131 libpixbufloader_tiff_la_LIBADD = $(LIBTIFF) $(module_libs)
132
133 #
134 # The PNM loader
135 #
136 libpixbufloader_static_pnm_la_SOURCES = io-pnm.c
137 libpixbufloader_pnm_la_SOURCES = io-pnm.c
138 libpixbufloader_pnm_la_LDFLAGS = -avoid-version -module $(no_undefined)
139 libpixbufloader_pnm_la_LIBADD = $(module_libs)
140
141 #
142 # The BMP loader
143 #
144 libpixbufloader_static_bmp_la_SOURCES = io-bmp.c
145 libpixbufloader_bmp_la_SOURCES = io-bmp.c
146 libpixbufloader_bmp_la_LDFLAGS = -avoid-version -module $(no_undefined)
147 libpixbufloader_bmp_la_LIBADD = $(module_libs)
148
149 #
150 # The WBMP loader
151 #
152 libpixbufloader_static_wbmp_la_SOURCES = io-wbmp.c
153 libpixbufloader_wbmp_la_SOURCES = io-wbmp.c
154 libpixbufloader_wbmp_la_LDFLAGS = -avoid-version -module $(no_undefined)
155 libpixbufloader_wbmp_la_LIBADD = $(module_libs)
156
157 #
158 # The XBM loader
159 #
160 libpixbufloader_static_xbm_la_SOURCES = io-xbm.c
161 libpixbufloader_xbm_la_SOURCES = io-xbm.c
162 libpixbufloader_xbm_la_LDFLAGS = -avoid-version -module $(no_undefined)
163 libpixbufloader_xbm_la_LIBADD = $(module_libs)
164
165 #
166 # The TGA loader
167 #
168 libpixbufloader_static_tga_la_SOURCES = io-tga.c
169 libpixbufloader_tga_la_SOURCES = io-tga.c
170 libpixbufloader_tga_la_LDFLAGS = -avoid-version -module $(no_undefined)
171 libpixbufloader_tga_la_LIBADD = $(module_libs)
172
173 #
174 # The PCX loader
175 #
176 libpixbufloader_static_pcx_la_SOURCES = io-pcx.c
177 libpixbufloader_pcx_la_SOURCES = io-pcx.c
178 libpixbufloader_pcx_la_LDFLAGS = -avoid-version -module $(no_undefined)
179 libpixbufloader_pcx_la_LIBADD = $(module_libs)
180
181 if HAVE_PNG
182 PNG_LIB = libpixbufloader-png.la
183 STATIC_PNG_LIB = libpixbufloader-static-png.la
184 endif
185
186 if HAVE_JPEG
187 JPEG_LIB = libpixbufloader-jpeg.la
188 STATIC_JPEG_LIB = libpixbufloader-static-jpeg.la
189 endif
190
191 GIF_LIB = libpixbufloader-gif.la
192 STATIC_GIF_LIB = libpixbufloader-static-gif.la
193
194 ICO_LIB = libpixbufloader-ico.la
195 STATIC_ICO_LIB = libpixbufloader-static-ico.la
196
197 ANI_LIB = libpixbufloader-ani.la
198 STATIC_ANI_LIB = libpixbufloader-static-ani.la
199
200 RAS_LIB = libpixbufloader-ras.la
201 STATIC_RAS_LIB = libpixbufloader-static-ras.la
202
203 if HAVE_TIFF
204 TIFF_LIB = libpixbufloader-tiff.la
205 STATIC_TIFF_LIB = libpixbufloader-static-tiff.la
206 endif
207
208 XPM_LIB = libpixbufloader-xpm.la
209 STATIC_XPM_LIB = libpixbufloader-static-xpm.la
210
211 PNM_LIB = libpixbufloader-pnm.la
212 STATIC_PNM_LIB = libpixbufloader-static-pnm.la
213
214 BMP_LIB = libpixbufloader-bmp.la
215 STATIC_BMP_LIB = libpixbufloader-static-bmp.la
216
217 WBMP_LIB = libpixbufloader-wbmp.la
218 STATIC_WBMP_LIB = libpixbufloader-static-wbmp.la
219
220 XBM_LIB = libpixbufloader-xbm.la
221 STATIC_XBM_LIB = libpixbufloader-static-xbm.la
222
223 TGA_LIB = libpixbufloader-tga.la
224 STATIC_TGA_LIB = libpixbufloader-static-tga.la
225
226 PCX_LIB = libpixbufloader-pcx.la
227 STATIC_PCX_LIB = libpixbufloader-static-pcx.la
228
229 if BUILD_DYNAMIC_MODULES
230
231 loader_LTLIBRARIES =    \
232         $(PNG_LIB)      \
233         $(JPEG_LIB)     \
234         $(GIF_LIB)      \
235         $(ICO_LIB)      \
236         $(ANI_LIB)      \
237         $(RAS_LIB)      \
238         $(XPM_LIB)      \
239         $(TIFF_LIB)     \
240         $(PNM_LIB)      \
241         $(BMP_LIB)      \
242         $(WBMP_LIB)     \
243         $(XBM_LIB)      \
244         $(TGA_LIB)      \
245         $(PCX_LIB)
246
247
248 extra_sources = 
249 builtin_objs = 
250 else
251 loader_LTLIBRARIES = 
252
253 noinst_LTLIBRARIES =            \
254         $(STATIC_PNG_LIB)       \
255         $(STATIC_JPEG_LIB)      \
256         $(STATIC_GIF_LIB)       \
257         $(STATIC_ICO_LIB)       \
258         $(STATIC_ANI_LIB)       \
259         $(STATIC_RAS_LIB)       \
260         $(STATIC_XPM_LIB)       \
261         $(STATIC_TIFF_LIB)      \
262         $(STATIC_PNM_LIB)       \
263         $(STATIC_BMP_LIB)       \
264         $(STATIC_WBMP_LIB)      \
265         $(STATIC_XBM_LIB)       \
266         $(STATIC_TGA_LIB)       \
267         $(STATIC_PCX_LIB)
268
269 builtin_objs = @INCLUDED_LOADER_OBJ@
270
271 endif
272
273 DEPS = libgdk_pixbuf-$(GTK_API_VERSION).la
274 INCLUDES = \
275         -DG_LOG_DOMAIN=\"GdkPixbuf\"            \
276         -I$(top_srcdir) -I$(top_builddir)       \
277         -I$(top_srcdir)/gdk-pixbuf              \
278         -I$(top_builddir)/gdk-pixbuf            \
279         -DGTK_SYSCONFDIR=\"$(sysconfdir)\"      \
280         -DGTK_VERSION=\"$(GTK_VERSION)\"        \
281         -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\"  \
282         -DG_DISABLE_DEPRECATED                  \
283         -DGDK_PIXBUF_DISABLE_DEPRECATED         \
284         -DGTK_PREFIX=\"$(prefix)\"              \
285         $(INCLUDED_LOADER_DEFINE)               \
286         $(GTK_DEBUG_FLAGS)                      \
287         $(GDK_PIXBUF_DEP_CFLAGS)                \
288         -DGDK_PIXBUF_ENABLE_BACKEND
289
290 AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(loaderdir)\"" "-DBUILT_MODULES_DIR=\"$(srcdir)/.libs\""
291 LDADDS = libgdk_pixbuf-$(GTK_API_VERSION).la
292
293 noinst_PROGRAMS = test-gdk-pixbuf
294 test_gdk_pixbuf_LDADD = $(LDADDS)
295
296 bin_PROGRAMS = gdk-pixbuf-csource gdk-pixbuf-query-loaders
297 gdk_pixbuf_csource_SOURCES = gdk-pixbuf-csource.c
298 gdk_pixbuf_csource_LDADD = $(LDADDS)
299
300 gdk_pixbuf_query_loaders_DEPENDENCIES = $(DEPS)
301 gdk_pixbuf_query_loaders_LDADD = $(LDADDS)
302
303 gdk_pixbuf_query_loaders_SOURCES = queryloaders.c
304
305
306 #
307 # The GdkPixBuf library
308 #
309 libgdk_pixbufincludedir = $(includedir)/gtk-2.0/gdk-pixbuf
310 libgdk_pixbuf_2_0_la_SOURCES =   \
311         gdk-pixbuf-i18n.h        \
312         gdk-pixbuf.c             \
313         gdk-pixbuf-animation.c   \
314         gdk-pixbuf-data.c        \
315         gdk-pixbuf-io.c          \
316         gdk-pixbuf-loader.c      \
317         gdk-pixbuf-scale.c       \
318         gdk-pixbuf-simple-anim.c \
319         gdk-pixbuf-util.c        \
320         gdk-pixdata.c            \
321         gdk-pixbuf-enum-types.c
322
323 libgdk_pixbuf_2_0_la_LDFLAGS = \
324         -version-info $(LT_VERSION_INFO)        \
325         $(LIBTOOL_EXPORT_OPTIONS)               \
326         $(no_undefined)                         \
327         $(gdk_pixbuf_symbols)
328
329
330 libgdk_pixbuf_2_0_la_LIBADD = pixops/libpixops.la $(builtin_objs) $(gdk_pixbuf_win32res_lo) $(GDK_PIXBUF_DEP_LIBS)
331 libgdk_pixbuf_2_0_la_DEPENDENCIES = pixops/libpixops.la $(builtin_objs) $(gdk_pixbuf_def) $(gdk_pixbuf_win32res_lo)
332
333 gdk_pixbuf_headers =                    \
334         gdk-pixbuf.h                    \
335         gdk-pixbuf-core.h               \
336         gdk-pixbuf-transform.h          \
337         gdk-pixbuf-io.h                 \
338         gdk-pixbuf-animation.h          \
339         gdk-pixbuf-simple-anim.h        \
340         gdk-pixbuf-loader.h
341
342 libgdk_pixbufinclude_HEADERS =          \
343         $(gdk_pixbuf_headers)           \
344         gdk-pixbuf-enum-types.h         \
345         gdk-pixbuf-marshal.h            \
346         gdk-pixbuf-features.h           \
347         gdk-pixdata.h
348
349 noinst_HEADERS =                \
350         gdk-pixbuf-alias.h      \
351         gdk-pixbuf-private.h    \
352         xpm-color-table.h
353
354 BUILT_SOURCES =                 \
355         gdk-pixbuf-alias.h      \
356         gdk-pixbuf-aliasdef.c   \
357         gdk-pixbuf-enum-types.h \
358         gdk-pixbuf-enum-types.c \
359         gdk-pixbuf-marshal.h    \
360         gdk-pixbuf-marshal.c
361
362 CLEANFILES =
363 MAINTAINERCLEANFILES =          \
364         gdk-pixbuf-aliasdef.c   \
365         gdk-pixbuf-enum-types.h \
366         gdk-pixbuf-enum-types.c \
367         gdk-pixbuf-marshal.h    \
368         gdk-pixbuf-marshal.c    \
369         gdk-pixbuf.loaders
370
371 #
372 # gdk-pixbuf-enum-types.h
373 #
374 gdk-pixbuf-enum-types.h: s-enum-types-h
375         @true
376
377 s-enum-types-h: @REBUILD@ $(gdk_pixbuf_headers) Makefile
378         ( cd $(srcdir) && glib-mkenums \
379                         --fhead "#ifndef __GDK_PIXBUF_ENUM_TYPES_H__\n#define __GDK_PIXBUF_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
380                         --fprod "/* enumerations from \"@filename@\" */\n" \
381                         --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GDK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
382                         --ftail "G_END_DECLS\n\n#endif /* __GDK_PIXBUF_ENUM_TYPES_H__ */" \
383                 $(gdk_pixbuf_headers) ) > tmp-gdk-pixbuf-enum-types.h \
384         && (cmp -s tmp-gdk-pixbuf-enum-types.h gdk-pixbuf-enum-types.h || cp tmp-gdk-pixbuf-enum-types.h gdk-pixbuf-enum-types.h ) \
385         && rm -f tmp-gdk-pixbuf-enum-types.h \
386         && echo timestamp > $(@F)
387
388 CLEANFILES += tmp-gdk-pixbuf-enum-types.h
389 MAINTAINERCLEANFILES += s-enum-types-h
390
391 #
392 # gdk-pixbuf-enum-types.c
393 #
394 gdk-pixbuf-enum-types.c: @REBUILD@ $(gdk_pixbuf_headers) Makefile
395         (cd $(srcdir) && glib-mkenums \
396                 --fhead "#include <gdk-pixbuf/gdk-pixbuf.h>\n#include \"gdk-pixbuf-alias.h\"\n" \
397                 --fprod "\n/* enumerations from \"@filename@\" */" \
398                 --ftail "\n#define __GDK_PIXBUF_ENUM_TYPES_C__\n#include \"gdk-pixbuf-aliasdef.c\"" \
399                 --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"       \
400                 --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
401                 --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
402                   $(gdk_pixbuf_headers)) > gdk-pixbuf-enum-types.c
403
404 #
405 # gdk-pixbuf-marshal.h
406 #
407 gdk-pixbuf-marshal.h: @REBUILD@ stamp-gdk-pixbuf-marshal.h
408         @true
409
410 stamp-gdk-pixbuf-marshal.h: @REBUILD@ $(srcdir)/gdk-pixbuf-marshal.list
411         $(GLIB_GENMARSHAL) --prefix=_gdk_pixbuf_marshal $(srcdir)/gdk-pixbuf-marshal.list --header >> xgen-gmh \
412         && (cmp -s xgen-gmh gdk-pixbuf-marshal.h || cp xgen-gmh gdk-pixbuf-marshal.h) \
413         && rm -f xgen-gmh xgen-gmh~ \
414         && echo timestamp > $(@F)
415
416 CLEANFILES += xgen-gmh
417 MAINTAINERCLEANFILES += stamp-gdk-pixbuf-marshal.h
418
419 #
420 # gdk-pixbuf-marshal.c
421 #
422 $(srcdir)/gdk-pixbuf-marshal.c: @REBUILD@ $(srcdir)/gdk-pixbuf-marshal.list
423         (echo -e "#include <gdk-pixbuf/gdk-pixbuf.h>\n#include \"gdk-pixbuf-alias.h\"" | $(GLIB_GENMARSHAL) --prefix=_gdk_pixbuf_marshal $(srcdir)/gdk-pixbuf-marshal.list --body ) >> xgen-gmc \
424         && cp xgen-gmc gdk-pixbuf-marshal.c \
425         && rm -f xgen-gmc xgen-gmc~
426
427 CLEANFILES += xgen-gmc
428
429 # if srcdir!=builddir, clean out maintainer-clean files from builddir
430 # this allows dist to pass.
431 distclean-local:
432         if test $(srcdir) != .; then \
433           rm -f $(MAINTAINERCLEANFILES); \
434         fi
435
436 EXTRA_DIST =                                    \
437         gdk-pixbuf-csource.1                    \
438         makefile.msc                            \
439         gdk-pixbuf.symbols                      \
440         makegdkpixbufalias.pl                   \
441         abicheck.sh                             \
442         gdk_pixbuf.def                          \
443         gdk_pixbuf.rc                           \
444         gdk-pixbuf-marshal.c                    \
445         gdk-pixbuf-marshal.list                 \
446         pixbufloader_ico.def                    \
447         pixbufloader_ani.def                    \
448         pixbufloader_pnm.def                    \
449         pixbufloader_xpm.def                    \
450         pixbufloader_bmp.def                    \
451         pixbufloader_jpeg.def                   \
452         pixbufloader_ras.def                    \
453         pixbufloader_gif.def                    \
454         pixbufloader_png.def                    \
455         pixbufloader_tiff.def                   \
456         pixbufloader_wbmp.def                   \
457         pixbufloader_xbm.def                    \
458         pixbufloader_tga.def                    \
459         gen-color-table.pl
460
461 if CROSS_COMPILING
462 RUN_QUERY_LOADER_TEST=false
463 else
464 RUN_QUERY_LOADER_TEST=test -z "$(DESTDIR)"
465 endif
466
467 # Running this if cross compiling or if DESTDIR is set is going to
468 # not work at all, so skip it
469 # We use install-data-hook here to workaround a bug in automake and/or libtool
470 # that makes the install target for the loader libraries a dependency on
471 # install-data-am, and not install-exec-am. We need to ensure this gets run
472 # after the libraries are installed in their final locations.
473 install-data-hook: install-ms-lib install-libtool-import-lib
474         @if $(RUN_QUERY_LOADER_TEST) ; then \
475           $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
476           $(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders > $(DESTDIR)$(sysconfdir)/gtk-2.0/gdk-pixbuf.loaders ; \
477         else \
478           echo "***" ; \
479           echo "*** Warning: gdk-pixbuf.loaders not built" ; \
480           echo "***" ; \
481           echo "*** Generate this file manually on host" ; \
482           echo "*** system using gdk-pixbuf-query-loaders" ; \
483           echo "***" ; \
484         fi
485
486 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
487         rm -f $(DESTDIR)$(sysconfdir)/gtk-2.0/gdk-pixbuf.loaders
488
489 if CROSS_COMPILING
490 else
491 all-local: gdk-pixbuf.loaders
492 endif
493
494 if BUILD_DYNAMIC_MODULES
495 gdk-pixbuf.loaders: $(loader_LTLIBRARIES) gdk-pixbuf-query-loaders
496         LOADERS=`echo libpixbufloader-*.la` ; \
497         if test "x$$LOADERS" != 'xlibpixbufloader-*.la' ; then \
498           echo "Writing a gdk-pixbuf.loader file to use when running examples before installing gdk-pixbuf."; \
499           $(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders $$LOADERS > ./gdk-pixbuf.loaders ;\
500         else \
501           echo "No dynamic modules found; will use only static modules for uninstalled example programs."; \
502           touch gdk-pixbuf.loaders; \
503         fi
504 else
505 gdk-pixbuf.loaders: 
506         echo "No dynamic modules found; will use only static modules for uninstalled example programs."; \
507         touch gdk-pixbuf.loaders;
508 endif