From 600ac3a0f00baf3cafec2ae95e02a494e5be91d7 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 11 May 2019 21:55:25 +0200 Subject: build: Split libraries detection Includes some automake files cleanup and enables extra compiler warnings. --- src/Makefile.am | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 5a4d3b2..ec7b3b1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,12 +1,15 @@ NULL = -AM_CPPFLAGS = \ - -DDATADIR=\"$(datadir)\" \ - -I$(top_srcdir) \ - -I$(top_builddir) \ - $(WARN_CFLAGS) \ - $(DISABLE_DEPRECATED_CFLAGS) \ - $(LIBS_CFLAGS) \ +AM_CPPFLAGS = \ + -DDATADIR=\"$(datadir)\" \ + -I$(top_srcdir) \ + -I$(top_builddir) \ + $(WARN_CFLAGS) \ + $(GLIB_CFLAGS) \ + $(DISABLE_DEPRECATED_CFLAGS) \ + $(LIBXML2_CFLAGS) \ + $(MAGICKWAND_CFLAGS) \ + $(EXIV2_CFLAGS) \ -DG_LOG_DOMAIN=\"cgg\" bin_PROGRAMS = \ @@ -45,6 +48,11 @@ cgg_SOURCES = \ xml-parser.h \ $(NULL) -cgg_LDADD = $(LIBS_LIBS) -lm +cgg_LDADD = \ + $(GLIB_LIBS) \ + $(LIBXML2_LIBS) \ + $(MAGICKWAND_LIBS) \ + $(EXIV2_LIBS) \ + -lm EXTRA_DIST = cgg-dirgen -- cgit v1.2.3