1 ## automake input file for wrlib
7 EXTRA_DIST = tests libwraster.map get-wraster-flags.in
9 lib_LTLIBRARIES = libwraster.la
11 libwraster_la_LDFLAGS = -version-info @WRASTER_VERSION@
13 if HAVE_LD_VERSION_SCRIPT
14 libwraster_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libwraster.map
17 bin_SCRIPTS = get-wraster-flags
19 include_HEADERS = wraster.h
21 libwraster_la_SOURCES = \
47 LTCOMPILE2=`echo $(LTCOMPILE) | sed -e s/-fomit-frame-pointer//`
48 COMPILE2=`echo $(COMPILE) | sed -e s/-fomit-frame-pointer//`
50 AM_CPPFLAGS = $(DFLAGS) @HEADER_SEARCH_PATH@
52 libwraster_la_LIBADD = @LIBRARY_SEARCH_PATH@ @GFXLIBS@ @XLIBS@ @LIBXMU@ -lm
54 pkgconfigdir = $(libdir)/pkgconfig
55 pkgconfig_DATA = wrlib.pc
57 DISTCLEANFILES = $(pkgconfig_DATA) get-wraster-flags
61 @echo 'Name: wrlib' > $@
62 @echo 'Description: Image manipulation and conversion library' >> $@
63 @echo 'Version: $(VERSION)' >> $@
64 @echo 'Libs: $(lib_search_path) -lwraster' >> $@
65 @echo 'Libs.private: $(GFXLIBS) $(XLIBS) -lm' >> $@
66 @echo 'Cflags: $(inc_search_path)' >> $@
68 get-wraster-flags: get-wraster-flags.in Makefile
70 @$(SED) -e 's#$${inc_search_path}#$(inc_search_path)#;' \
71 -e 's#$${lib_search_path}#$(lib_search_path)#;' \
72 -e 's#$${GFXLIBS}#$(GFXLIBS)#;' \
73 -e 's#$${XLIBS}#$(XLIBS)#;' < $(abs_srcdir)/get-wraster-flags.in > $@