]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
examples: compile with `make check' and add AM_CPPFLAGS
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 21 Feb 2022 23:56:36 +0000 (00:56 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Feb 2022 09:49:11 +0000 (10:49 +0100)
Compile examples via `make check' like libnftnl does. Use AM_CPPFLAGS to
specify local headers via -I.

Unfortunately, `make distcheck' did not catch this compile time error in
my system, since it was using the nftables/libnftables.h file of the
previous nftables release.

Fixes: 5b364657a35f ("build: missing SUBIRS update")
Fixes: caf2a6ad2d22 ("examples: add libnftables example program")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
examples/Makefile.am

index c972170d3fdc62a3da5491915ac610f1d4c901f7..3b8b0b6708dc28cc9144f07fe19c9ef0afc0515e 100644 (file)
@@ -1,4 +1,6 @@
-noinst_PROGRAMS        = nft-buffer            \
+check_PROGRAMS = nft-buffer            \
                  nft-json-file
 
+AM_CPPFLAGS = -I$(top_srcdir)/include
+
 LDADD = $(top_builddir)/src/libnftables.la