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 /libqcdm | |
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 'libqcdm')
-rw-r--r-- | libqcdm/src/Makefile.am | 13 | ||||
-rw-r--r-- | libqcdm/tests/Makefile.am | 11 |
2 files changed, 19 insertions, 5 deletions
diff --git a/libqcdm/src/Makefile.am b/libqcdm/src/Makefile.am index f13098f3..69143bdf 100644 --- a/libqcdm/src/Makefile.am +++ b/libqcdm/src/Makefile.am @@ -1,5 +1,13 @@ -AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) -AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS) + +AM_CFLAGS = \ + $(WARN_CFLAGS) \ + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) + +AM_LDFLAGS = \ + $(WARN_LDFLAGS) \ + $(CODE_COVERAGE_LDFLAGS) \ + $(NULL) noinst_LTLIBRARIES = libqcdm.la libqcdm-test.la @@ -41,4 +49,3 @@ libqcdm_test_la_SOURCES = \ libqcdm_test_la_LIBADD = \ $(MM_LIBS) - diff --git a/libqcdm/tests/Makefile.am b/libqcdm/tests/Makefile.am index c00f1b01..961c5e1d 100644 --- a/libqcdm/tests/Makefile.am +++ b/libqcdm/tests/Makefile.am @@ -1,7 +1,14 @@ include $(top_srcdir)/gtester.make -AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) -AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS) +AM_CFLAGS = \ + $(WARN_CFLAGS) \ + $(CODE_COVERAGE_CFLAGS) \ + $(NULL) + +AM_LDFLAGS = \ + $(WARN_LDFLAGS) \ + $(CODE_COVERAGE_LDFLAGS) \ + $(NULL) noinst_PROGRAMS = test-qcdm modepref ipv6pref reset TEST_PROGS += test-qcdm |