From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Boccassi Subject: [PATCH iproute2 2/3] testsuite: let make compile build the netlink helper Date: Wed, 22 Aug 2018 19:09:02 +0100 Message-ID: <20180822180903.26443-2-bluca@debian.org> References: <20180822180903.26443-1-bluca@debian.org> Cc: stephen@networkplumber.org, stefan.bader@canonical.com To: netdev@vger.kernel.org Return-path: Received: from mail-wm0-f67.google.com ([74.125.82.67]:37431 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727469AbeHVVfN (ORCPT ); Wed, 22 Aug 2018 17:35:13 -0400 Received: by mail-wm0-f67.google.com with SMTP id n11-v6so3100412wmc.2 for ; Wed, 22 Aug 2018 11:09:17 -0700 (PDT) In-Reply-To: <20180822180903.26443-1-bluca@debian.org> Sender: netdev-owner@vger.kernel.org List-ID: 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 --- testsuite/Makefile | 1 + testsuite/tools/Makefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/testsuite/Makefile b/testsuite/Makefile index 2acd0427..5e269877 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -32,6 +32,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 -- 2.18.0