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 if HAVE_LD_VERSION_SCRIPT
15 libwraster_la_LDFLAGS += -Wl,--version-script=libwraster.map
16 EXTRA_libwraster_la_DEPENDENCIES = libwraster.map
17 CLEANFILES = libwraster.map
20 include_HEADERS = wraster.h
22 libwraster_la_SOURCES = \
48 libwraster_la_SOURCES += load_gif.c
52 libwraster_la_SOURCES += load_jpeg.c
56 libwraster_la_SOURCES += load_png.c
60 libwraster_la_SOURCES += load_tiff.c
64 libwraster_la_SOURCES += load_xpm.c
66 libwraster_la_SOURCES += load_xpm_normalized.c
70 libwraster_la_SOURCES += load_webp.c
74 libwraster_la_SOURCES += load_magick.c
77 AM_CFLAGS = @MAGICKFLAGS@
78 AM_CPPFLAGS = $(DFLAGS) @HEADER_SEARCH_PATH@
80 libwraster_la_LIBADD = @LIBRARY_SEARCH_PATH@ @GFXLIBS@ @MAGICKLIBS@ @XLIBS@ @LIBXMU@ -lm
82 pkgconfigdir = $(libdir)/pkgconfig
83 pkgconfig_DATA = wrlib.pc
85 DISTCLEANFILES = $(pkgconfig_DATA)
89 @echo 'Name: wrlib' > $@
90 @echo 'Description: Image manipulation and conversion library' >> $@
91 @echo 'Version: $(VERSION)' >> $@
92 @echo 'Libs: $(lib_search_path) -lwraster' >> $@
93 @echo 'Libs.private: $(GFXLIBS) $(MAGICKLIBS) $(XLIBS) -lm' >> $@
94 @echo 'Cflags: $(inc_search_path)' >> $@
97 if HAVE_LD_VERSION_SCRIPT
98 libwraster.map: $(include_HEADERS) $(top_srcdir)/script/generate-mapfile-from-header.sh
99 $(AM_V_GEN)$(top_srcdir)/script/generate-mapfile-from-header.sh \
100 -n LIBWRASTER -v $(WRASTER_VERSION) $(srcdir)/$(include_HEADERS) > libwraster.map