From ce0d2a510b15ef6093a8f43aaa01ef6c84707687 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 10 Apr 2020 18:05:46 +0200 Subject: use MATE_COMPILE_WARNINGS from mate-common --- configure.ac | 16 ++++++++++++++++ mate-window-picker-applet/Makefile.am | 13 +++++++------ maximus/Makefile.am | 13 +++++++------ 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index 5bedb2b..3ef78e7 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,8 @@ AC_CONFIG_MACRO_DIR([m4]) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE +MATE_COMPILE_WARNINGS + AC_PROG_CC AC_STDC_HEADERS AC_PROG_LIBTOOL @@ -62,3 +64,17 @@ mate-window-picker-applet/Makefile mate-window-picker-applet/org.mate.panel.applet.mate-window-picker-applet.gschema.xml po/Makefile.in ]) + +dnl --------------------------------------------------------------------------- +dnl - Show summary +dnl --------------------------------------------------------------------------- + +echo " + mate-netbook $VERSION + `echo mate-netbook $VERSION | sed "s/./=/g"` + + prefix: ${prefix} + compiler: ${CC} + cflags: ${CFLAGS} + warning flags: ${WARN_CFLAGS} +" diff --git a/mate-window-picker-applet/Makefile.am b/mate-window-picker-applet/Makefile.am index 78dd600..b5b1eb4 100644 --- a/mate-window-picker-applet/Makefile.am +++ b/mate-window-picker-applet/Makefile.am @@ -2,14 +2,15 @@ libexec_PROGRAMS=mate-window-picker-applet PKGDATADIR = $(datadir)/mate-window-picker-applet AM_CFLAGS=\ - $(MATEWINDOWPICKER_DEPS_CFLAGS) \ - $(GCC_FLAGS) \ - -I$(top_builddir) \ - -I$(top_srcdir) \ - -D_GNU_SOURCE \ + $(MATEWINDOWPICKER_DEPS_CFLAGS) \ + $(GCC_FLAGS) \ + -I$(top_builddir) \ + -I$(top_srcdir) \ + -D_GNU_SOURCE \ -DMATELOCALEDIR=\""$(datadir)/locale"\" \ -DPKGDATADIR=\"$(PKGDATADIR)\" \ - -DMATEWINDOWPICKER_MENU_UI_DIR=\""$(xmluidir)"\" + -DMATEWINDOWPICKER_MENU_UI_DIR=\""$(xmluidir)"\" \ + $(WARN_CFLAGS) mate_window_picker_applet_LDADD = \ $(MATEWINDOWPICKER_DEPS_LIBS) \ diff --git a/maximus/Makefile.am b/maximus/Makefile.am index 0ea9bad..f9f53c8 100644 --- a/maximus/Makefile.am +++ b/maximus/Makefile.am @@ -4,15 +4,16 @@ PKGDATADIR = $(datadir)/mate-maximus DATADIR = $(datadir) SYSCONFDIR = $(sysconfdir) AM_CFLAGS = \ - $(MAXIMUS_DEPS_CFLAGS) \ - $(GCC_FLAGS) \ - -I$(top_builddir) \ - -I$(top_srcdir) \ + $(MAXIMUS_DEPS_CFLAGS) \ + $(GCC_FLAGS) \ + -I$(top_builddir) \ + -I$(top_srcdir) \ -I$(top_srcdir)/tidy \ - -D_GNU_SOURCE \ + -D_GNU_SOURCE \ -DPKGDATADIR=\"$(PKGDATADIR)\" \ -DDATADIR=\"$(DATADIR)\" \ - -DSYSCONFDIR=\"$(SYSCONFDIR)\" + -DSYSCONFDIR=\"$(SYSCONFDIR)\" \ + $(WARN_CFLAGS) mate_maximus_LDADD = \ $(MAXIMUS_DEPS_LIBS) -- cgit v1.2.1