configure: Added compilation check for dangerous use of 'extern' keyword
[wmaker-crm.git] / wrlib / Makefile.am
blobc98a60ff6330f21940e432b71a88dc262f33771f
1 ## automake input file for wrlib
3 SUBDIRS = .
5 AUTOMAKE_OPTIONS =
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
15 endif
17 bin_SCRIPTS = get-wraster-flags
19 include_HEADERS = wraster.h
21 libwraster_la_SOURCES =         \
22         imgformat.h     \
23         raster.c        \
24         alpha_combine.c \
25         draw.c          \
26         color.c         \
27         load.c          \
28         save.c          \
29         gradient.c      \
30         xpixmap.c       \
31         convert.c       \
32         context.c       \
33         misc.c          \
34         scale.c         \
35         rotate.c        \
36         convolve.c      \
37         nxpm.c          \
38         xpm.c           \
39         xutil.c         \
40         ppm.c           \
41         png.c           \
42         jpeg.c          \
43         tiff.c          \
44         gif.c
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
59 wrlib.pc: Makefile
60         @echo "Generating $@"
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
69         @echo "Generating $@"
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 > $@
74         @chmod 755 $@