Allow building with older library versions
[geda-gaf.git] / libgedacairo / Makefile.am
blob692350c8888ae50e285c5a0eb1221e0a8dfab26e
1 lib_LTLIBRARIES = libgedacairo.la
3 libgedacairo_la_SOURCES = \
4         edacairo.c \
5         edapangorenderer.c \
6         edarenderer.c
8 libgedacairoincludedir = $(includedir)/libgedacairo
10 libgedacairoinclude_HEADERS = \
11         libgedacairo.h \
12         edacairo.h \
13         edarenderer.h
15 noinst_HEADERS = \
16         edapangorenderer.h
18 EXTRA_DIST = README ChangeLog
20 AM_CPPFLAGS = \
21         -DLOCALEDIR=\"$(localedir)\" -DG_LOG_DOMAIN=\"libgedacairo\" \
22         -I$(top_srcdir)/libgeda/include -I$(top_srcdir)
23 AM_CFLAGS = \
24         $(GCC_CFLAGS) $(MINGW_CFLAGS) $(GUILE_CFLAGS) $(GLIB_CFLAGS) \
25         $(GDK_CFLAGS) $(CAIRO_CFLAGS) $(PANGO_CFLAGS) $(GDK_PIXBUF_CFLAGS)
26 AM_LDFLAGS = -version-info $(LIBGEDACAIRO_SHLIB_VERSION) \
27         $(WINDOWS_LIBTOOL_FLAGS) $(MINGW_LDFLAGS) $(GUILE_LIBS) \
28         $(GDK_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(PANGO_LIBS) $(GDK_PIXBUF_LIBS)
29 LIBTOOL=@LIBTOOL@ --silent
31 pkgconfigdir = $(libdir)/pkgconfig
32 pkgconfig_DATA = libgedacairo.pc
34 if HAVE_GIT_REPO
35 ChangeLog: $(top_builddir)/stamp-git
36         ( \
37           cd $(srcdir) && \
38           $(GIT) log --pretty=medium $(CHANGELOG_BASE).. -- . || \
39           echo "WARNING: ChangeLog information not available from git" >&2 ; \
40         ) > $@
41 endif HAVE_GIT_REPO