diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-02-22 00:56:36 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-02-22 10:49:11 +0100 |
commit | 18a08fb7f0443f8bde83393bd6f69e23a04246b3 (patch) | |
tree | f193ea4e3d157fea2865d99ae9a4b81af5322a95 /examples/Makefile.am | |
parent | 5b364657a35f4e4cd5d220ba2a45303d729c8eca (diff) |
examples: compile with `make check' and add AM_CPPFLAGS
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>
Diffstat (limited to 'examples/Makefile.am')
-rw-r--r-- | examples/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index c972170d..3b8b0b67 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -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 |