diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-19 11:06:43 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | 1c078531a017358241a35475fb24f2bd65d501db (patch) | |
tree | a2dd47febbed8353ca3917f396f905a342fa19dc /libmm-glib | |
parent | 4bfd955e64af56b47d398a857be4e8e1b16ce260 (diff) |
build: use AX_IS_RELEASE() and AX_COMPILER_FLAGS()
The autoconf macros AX_COMPILER_FLAGS_{CFLAGS|GIR|LDFLAGS} test
for compiler and linker support of various flags, and add the flags to
the generated output.
If the command-line option '--enable-compile-warnings' is specified to
'configure', a number of additional warning options is also added to the
output. This is the default.
This update requires the presence of the GNU autoconf-archive in the
system.
Diffstat (limited to 'libmm-glib')
-rw-r--r-- | libmm-glib/Makefile.am | 12 | ||||
-rw-r--r-- | libmm-glib/generated/Makefile.am | 9 |
2 files changed, 14 insertions, 7 deletions
diff --git a/libmm-glib/Makefile.am b/libmm-glib/Makefile.am index f75cc28d..49f1e832 100644 --- a/libmm-glib/Makefile.am +++ b/libmm-glib/Makefile.am @@ -92,6 +92,7 @@ libmm_glib_la_SOURCES = \ $(NULL) libmm_glib_la_CPPFLAGS = \ + $(LIBMM_GLIB_CFLAGS) \ -I$(srcdir) \ -I$(top_srcdir) \ -I$(top_builddir) \ @@ -100,22 +101,20 @@ libmm_glib_la_CPPFLAGS = \ -I${top_srcdir}/libmm-glib/generated \ -I${top_builddir}/libmm-glib/generated \ -DLIBMM_GLIB_COMPILATION \ - $(AM_CPPFLAGS) \ $(NULL) -libmm_glib_la_CFLAGS = \ - $(LIBMM_GLIB_CFLAGS) \ - $(AM_CFLAGS) \ +libmm_glib_gla_CFLAGS = \ + $(WARN_CFLAGS) \ $(NULL) libmm_glib_la_LIBADD = \ ${top_builddir}/libmm-glib/generated/libmm-generated.la \ - $(LIBMM_GLIB_LIBS) \ $(NULL) libmm_glib_la_LDFLAGS = \ -version-info $(MM_GLIB_LT_CURRENT):$(MM_GLIB_LT_REVISION):$(MM_GLIB_LT_AGE) \ - $(AM_LDFLAGS) \ + $(WARN_LDFLAGS) \ + $(LIBMM_GLIB_LIBS) \ $(NULL) includedir = @includedir@/libmm-glib @@ -209,6 +208,7 @@ ModemManager_1_0_gir_CFLAGS = $(libmm_glib_la_CPPFLAGS) ModemManager_1_0_gir_LIBS = libmm-glib.la ModemManager_1_0_gir_EXPORT_PACKAGES = libmm-glib ModemManager_1_0_gir_SCANNERFLAGS = \ + $(WARN_SCANNERFLAGS) \ --c-include "libmm-glib.h" \ --identifier-prefix=MM \ --identifier-prefix=Mm \ diff --git a/libmm-glib/generated/Makefile.am b/libmm-glib/generated/Makefile.am index 5f4a5ad9..0f6161dc 100644 --- a/libmm-glib/generated/Makefile.am +++ b/libmm-glib/generated/Makefile.am @@ -244,7 +244,14 @@ libmm_generated_la_CPPFLAGS = \ -Wno-shadow \ $(NULL) -libmm_generated_la_LIBADD = $(LIBMM_GLIB_LIBS) +libmm_generated_la_CFLAGS = \ + $(WARN_CFLAGS) \ + $(NULL) + +libmm_generated_la_LDFLAGS = \ + $(WARN_LDFLAGS) \ + $(LIBMM_GLIB_LIBS) \ + $(NULL) includedir = @includedir@/libmm-glib nodist_include_HEADERS = $(GENERATED_H) |