1 ## automake input file for wrlib
4 DIST_SUBDIRS = $(SUBDIRS) tests
10 lib_LTLIBRARIES = libwraster.la
12 libwraster_la_LDFLAGS = -version-info @WRASTER_VERSION@
14 CLEANFILES = wraster.h
15 EXTRA_DIST += wraster.h.in
17 if HAVE_LD_VERSION_SCRIPT
18 libwraster_la_LDFLAGS += -Wl,--version-script=libwraster.map
19 EXTRA_libwraster_la_DEPENDENCIES = libwraster.map
20 CLEANFILES += libwraster.map
23 BUILT_SOURCES = wraster.h
24 nodist_include_HEADERS = wraster.h
26 libwraster_la_SOURCES = \
53 libwraster_la_SOURCES += load_gif.c
57 libwraster_la_SOURCES += load_jpeg.c
61 libwraster_la_SOURCES += load_png.c
65 libwraster_la_SOURCES += load_tiff.c
69 libwraster_la_SOURCES += load_xpm.c
71 libwraster_la_SOURCES += load_xpm_normalized.c
75 libwraster_la_SOURCES += load_webp.c
79 libwraster_la_SOURCES += load_magick.c
82 AM_CFLAGS = @MAGICKFLAGS@
83 AM_CPPFLAGS = $(DFLAGS) @HEADER_SEARCH_PATH@
85 libwraster_la_LIBADD = @LIBRARY_SEARCH_PATH@ @GFXLIBS@ @MAGICKLIBS@ @XLIBS@ @LIBXMU@ -lm
87 pkgconfigdir = $(libdir)/pkgconfig
88 pkgconfig_DATA = wrlib.pc
90 DISTCLEANFILES = $(pkgconfig_DATA)
94 @echo 'Name: wrlib' > $@
95 @echo 'Description: Image manipulation and conversion library' >> $@
96 @echo 'Version: $(VERSION)' >> $@
97 @echo 'Libs: $(lib_search_path) -lwraster' >> $@
98 @echo 'Libs.private: $(GFXLIBS) $(MAGICKLIBS) $(XLIBS) -lm' >> $@
99 @echo 'Cflags: $(inc_search_path)' >> $@
101 wraster.h: wraster.h.in $(top_builddir)/config.h
102 $(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \
103 --header "$(top_builddir)/config.h" \
104 --filter "USE_XSHM" \
108 if HAVE_LD_VERSION_SCRIPT
109 libwraster.map: $(nodist_include_HEADERS) $(top_srcdir)/script/generate-mapfile-from-header.sh
110 $(AM_V_GEN)$(top_srcdir)/script/generate-mapfile-from-header.sh \
111 -n LIBWRASTER -v $(WRASTER_VERSION) $< > $@