summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2018-08-22 19:09:02 +0100
committerStephen Hemminger <stephen@networkplumber.org>2018-08-24 23:14:09 -0700
commit012895ce4eda26a65d2d7cced8cbb0f433365927 (patch)
tree432b3999b850e77f3cf1e72895f0347305c32192 /testsuite
parentad23e152b85a92b30a944cb70f4fbc8d4933ac29 (diff)
downloadiproute2-012895ce4eda26a65d2d7cced8cbb0f433365927.tar.gz
testsuite: let make compile build the netlink helper
The generate_nlmsg binary is required but make -C testsuite compile does not build it. Add the necessary includes and C*FLAGS to the tools Makefile and have the compile target build it. Signed-off-by: Luca Boccassi <bluca@debian.org> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/Makefile1
-rw-r--r--testsuite/tools/Makefile4
2 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/Makefile b/testsuite/Makefile
index fa4849c7..39bf1d4e 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -30,6 +30,7 @@ configure:
compile: configure
echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..;
+ $(MAKE) -C tools
listtests:
@for t in $(TESTS); do \
diff --git a/testsuite/tools/Makefile b/testsuite/tools/Makefile
index f0ce4ee2..c936af71 100644
--- a/testsuite/tools/Makefile
+++ b/testsuite/tools/Makefile
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
+include ../../config.mk
+
generate_nlmsg: generate_nlmsg.c ../../lib/libnetlink.c
- $(CC) -o $@ $^
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDLIBS) $(EXTRA_CFLAGS) -I../../include -include../../include/uapi/linux/netlink.h -o $@ $^
clean:
rm -f generate_nlmsg