aboutsummaryrefslogtreecommitdiffstats
path: root/rdma
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-08-10 17:05:03 -0700
committerStephen Hemminger <stephen@networkplumber.org>2017-08-23 10:03:09 -0700
commit5f1df307b47f7f0b28a29d85418a3934cc3a83b2 (patch)
tree77853c3de06be5f0eae9f15cb20736829262c4ae /rdma
parent51186362ba95d7fc4f97ef7763718e1b5d236056 (diff)
downloadiproute2-5f1df307b47f7f0b28a29d85418a3934cc3a83b2.tar.gz
config: put CFLAGS/LDLIBS in config.mk
This renames Config to config.mk and includes more Make input. Now configure generates all the required CFLAGS and LDLIBS for the optional libraries. Also, use pkg-config to test for libelf, rather than using a test program. This makes it consistent with other libraries. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'rdma')
-rw-r--r--rdma/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/rdma/Makefile b/rdma/Makefile
index 1a9e4b1a9..1b5aa50b2 100644
--- a/rdma/Makefile
+++ b/rdma/Makefile
@@ -1,13 +1,10 @@
-include ../Config
+include ../config.mk
ifeq ($(HAVE_MNL),y)
RDMA_OBJ = rdma.o utils.o dev.o link.o
TARGETS=rdma
-CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags)
-LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
-
endif
all: $(TARGETS) $(LIBS)