From 3e1cd31b4744452a792978604b1ceb461978f203 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 10 Apr 2020 15:34:57 +0200 Subject: build: Use WARN_CFLAGS variable --- lib/Makefile.am | 5 +++-- plugins/acpi/Makefile.am | 3 ++- plugins/aticonfig/Makefile.am | 7 ++++--- plugins/dummy/Makefile.am | 5 +++-- plugins/hddtemp/Makefile.am | 5 +++-- plugins/i2c-proc/Makefile.am | 5 +++-- plugins/i2c-sys/Makefile.am | 5 +++-- plugins/i8k/Makefile.am | 5 +++-- plugins/ibm-acpi/Makefile.am | 5 +++-- plugins/libsensors/Makefile.am | 6 ++++-- plugins/mbmon/Makefile.am | 5 +++-- plugins/netbsd/Makefile.am | 5 +++-- plugins/nvidia/Makefile.am | 6 ++++-- plugins/omnibook/Makefile.am | 5 +++-- plugins/pmu-sys/Makefile.am | 5 +++-- plugins/smu-sys/Makefile.am | 5 +++-- plugins/sonypi/Makefile.am | 5 +++-- plugins/udisks2/Makefile.am | 7 +++---- sensors-applet/Makefile.am | 7 ++++++- 19 files changed, 62 insertions(+), 39 deletions(-) diff --git a/lib/Makefile.am b/lib/Makefile.am index 02d4ff8..2ba67e5 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -8,12 +8,13 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) LIBS = $(GLIB_LIBS) # also build the libsensorsplugin library lib_LTLIBRARIES = libmate-sensors-applet-plugin.la -libmate_sensors_applet_plugin_la_SOURCES = sensors-applet-plugin.c +libmate_sensors_applet_plugin_la_SOURCES = sensors-applet-plugin.c libmate_sensors_applet_plugin_la_LDFLAGS = -export-dynamic diff --git a/plugins/acpi/Makefile.am b/plugins/acpi/Makefile.am index ae0adda..26e514c 100644 --- a/plugins/acpi/Makefile.am +++ b/plugins/acpi/Makefile.am @@ -9,7 +9,8 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libacpi.la diff --git a/plugins/aticonfig/Makefile.am b/plugins/aticonfig/Makefile.am index 36d0cf8..0d26b52 100644 --- a/plugins/aticonfig/Makefile.am +++ b/plugins/aticonfig/Makefile.am @@ -9,13 +9,14 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libaticonfig.la -libaticonfig_la_SOURCES = \ +libaticonfig_la_SOURCES = \ aticonfig-plugin.h \ aticonfig-plugin.c -libaticonfig_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) $(GLIB_LIBS) +libaticonfig_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) $(GLIB_LIBS) libaticonfig_la_LIBADD = $(top_builddir)/lib/libmate-sensors-applet-plugin.la diff --git a/plugins/dummy/Makefile.am b/plugins/dummy/Makefile.am index 287b4cf..cd2f69a 100644 --- a/plugins/dummy/Makefile.am +++ b/plugins/dummy/Makefile.am @@ -9,12 +9,13 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libdummy.la -libdummy_la_SOURCES = \ +libdummy_la_SOURCES = \ dummy-plugin.h \ dummy-plugin.c diff --git a/plugins/hddtemp/Makefile.am b/plugins/hddtemp/Makefile.am index 96bc74f..64cde3c 100644 --- a/plugins/hddtemp/Makefile.am +++ b/plugins/hddtemp/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libhddtemp.la -libhddtemp_la_SOURCES = \ +libhddtemp_la_SOURCES = \ hddtemp-plugin.h \ hddtemp-plugin.c diff --git a/plugins/i2c-proc/Makefile.am b/plugins/i2c-proc/Makefile.am index 8d2f1f9..7fc3e7b 100644 --- a/plugins/i2c-proc/Makefile.am +++ b/plugins/i2c-proc/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libi2c-proc.la -libi2c_proc_la_SOURCES = \ +libi2c_proc_la_SOURCES = \ i2c-proc-plugin.h \ i2c-proc-plugin.c diff --git a/plugins/i2c-sys/Makefile.am b/plugins/i2c-sys/Makefile.am index 9e0e812..928767a 100644 --- a/plugins/i2c-sys/Makefile.am +++ b/plugins/i2c-sys/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libi2c-sys.la -libi2c_sys_la_SOURCES = \ +libi2c_sys_la_SOURCES = \ i2c-sys-plugin.h \ i2c-sys-plugin.c diff --git a/plugins/i8k/Makefile.am b/plugins/i8k/Makefile.am index e679830..fb3e8a2 100644 --- a/plugins/i8k/Makefile.am +++ b/plugins/i8k/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libi8k.la -libi8k_la_SOURCES = \ +libi8k_la_SOURCES = \ i8k-plugin.h \ i8k-plugin.c diff --git a/plugins/ibm-acpi/Makefile.am b/plugins/ibm-acpi/Makefile.am index a41c690..58dfc11 100644 --- a/plugins/ibm-acpi/Makefile.am +++ b/plugins/ibm-acpi/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libibm-acpi.la -libibm_acpi_la_SOURCES = \ +libibm_acpi_la_SOURCES = \ ibm-acpi-plugin.h \ ibm-acpi-plugin.c diff --git a/plugins/libsensors/Makefile.am b/plugins/libsensors/Makefile.am index 45785b1..5bf9681 100644 --- a/plugins/libsensors/Makefile.am +++ b/plugins/libsensors/Makefile.am @@ -9,11 +9,13 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) $(LIBSENSORS_CFLAGS) + $(GLIB_CFLAGS) \ + $(LIBSENSORS_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = liblibsensors.la -liblibsensors_la_SOURCES = \ +liblibsensors_la_SOURCES = \ libsensors-plugin.h \ libsensors-plugin.c diff --git a/plugins/mbmon/Makefile.am b/plugins/mbmon/Makefile.am index f391e67..0f35f44 100644 --- a/plugins/mbmon/Makefile.am +++ b/plugins/mbmon/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libmbmon.la -libmbmon_la_SOURCES = \ +libmbmon_la_SOURCES = \ mbmon-plugin.h \ mbmon-plugin.c diff --git a/plugins/netbsd/Makefile.am b/plugins/netbsd/Makefile.am index 61e506f..29aa85a 100644 --- a/plugins/netbsd/Makefile.am +++ b/plugins/netbsd/Makefile.am @@ -9,12 +9,13 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libnetbsd.la -libnetbsd_la_SOURCES = \ +libnetbsd_la_SOURCES = \ netbsd-plugin.h \ netbsd-plugin.c diff --git a/plugins/nvidia/Makefile.am b/plugins/nvidia/Makefile.am index f87cbab..4436944 100644 --- a/plugins/nvidia/Makefile.am +++ b/plugins/nvidia/Makefile.am @@ -9,11 +9,13 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) $(NVIDIA_CFLAGS) + $(GLIB_CFLAGS) \ + $(NVIDIA_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libnvidia.la -libnvidia_la_SOURCES = \ +libnvidia_la_SOURCES = \ nvidia-plugin.h \ nvidia-plugin.c diff --git a/plugins/omnibook/Makefile.am b/plugins/omnibook/Makefile.am index a7694f6..3e7a7c1 100644 --- a/plugins/omnibook/Makefile.am +++ b/plugins/omnibook/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libomnibook.la -libomnibook_la_SOURCES = \ +libomnibook_la_SOURCES = \ omnibook-plugin.h \ omnibook-plugin.c diff --git a/plugins/pmu-sys/Makefile.am b/plugins/pmu-sys/Makefile.am index da4103f..2f97ff6 100644 --- a/plugins/pmu-sys/Makefile.am +++ b/plugins/pmu-sys/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libpmu-sys.la -libpmu_sys_la_SOURCES = \ +libpmu_sys_la_SOURCES = \ pmu-sys-plugin.h \ pmu-sys-plugin.c diff --git a/plugins/smu-sys/Makefile.am b/plugins/smu-sys/Makefile.am index 55bf06c..427a886 100644 --- a/plugins/smu-sys/Makefile.am +++ b/plugins/smu-sys/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libsmu-sys.la -libsmu_sys_la_SOURCES = \ +libsmu_sys_la_SOURCES = \ smu-sys-plugin.h \ smu-sys-plugin.c diff --git a/plugins/sonypi/Makefile.am b/plugins/sonypi/Makefile.am index ce1929b..e75f70f 100644 --- a/plugins/sonypi/Makefile.am +++ b/plugins/sonypi/Makefile.am @@ -9,11 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libsonypi.la -libsonypi_la_SOURCES = \ +libsonypi_la_SOURCES = \ sonypi-plugin.h \ sonypi-plugin.c diff --git a/plugins/udisks2/Makefile.am b/plugins/udisks2/Makefile.am index 9bb0f11..4cd3574 100644 --- a/plugins/udisks2/Makefile.am +++ b/plugins/udisks2/Makefile.am @@ -9,13 +9,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) - - + $(GLIB_CFLAGS) \ + $(WARN_CFLAGS) plugin_LTLIBRARIES = libudisks2.la -libudisks2_la_SOURCES = \ +libudisks2_la_SOURCES = \ udisks2-plugin.h \ udisks2-plugin.c diff --git a/sensors-applet/Makefile.am b/sensors-applet/Makefile.am index 874d488..a864893 100644 --- a/sensors-applet/Makefile.am +++ b/sensors-applet/Makefile.am @@ -12,7 +12,12 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPREFIX=\""$(prefix)"\" \ -I$(top_srcdir) \ - $(GLIB_CFLAGS) $(GTK_CFLAGS) $(MATE_CFLAGS) $(CAIRO_CFLAGS) $(LIBNOTIFY_CFLAGS) + $(GLIB_CFLAGS) \ + $(GTK_CFLAGS) \ + $(MATE_CFLAGS) \ + $(CAIRO_CFLAGS) \ + $(LIBNOTIFY_CFLAGS) \ + $(WARN_CFLAGS) LIBS = $(GLIB_LIBS) $(GTK_LIBS) $(MATE_LIBS) $(CAIRO_LIBS) $(LIBNOTIFY_LIBS) -- cgit v1.2.1