diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-08-10 17:05:03 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-08-23 10:03:09 -0700 |
commit | 5f1df307b47f7f0b28a29d85418a3934cc3a83b2 (patch) | |
tree | 77853c3de06be5f0eae9f15cb20736829262c4ae /ip | |
parent | 51186362ba95d7fc4f97ef7763718e1b5d236056 (diff) | |
download | platform_external_iproute2-5f1df307b47f7f0b28a29d85418a3934cc3a83b2.tar.gz platform_external_iproute2-5f1df307b47f7f0b28a29d85418a3934cc3a83b2.tar.bz2 platform_external_iproute2-5f1df307b47f7f0b28a29d85418a3934cc3a83b2.zip |
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 'ip')
-rw-r--r-- | ip/Makefile | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/ip/Makefile b/ip/Makefile index 8ed2686c..52c9a2e5 100644 --- a/ip/Makefile +++ b/ip/Makefile @@ -13,20 +13,7 @@ IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \ RTMONOBJ=rtmon.o -include ../Config - -ifeq ($(IP_CONFIG_SETNS),y) - CFLAGS += -DHAVE_SETNS -endif - -ifeq ($(HAVE_ELF),y) - CFLAGS += -DHAVE_ELF - LDLIBS += -lelf -endif -ifeq ($(HAVE_MNL),y) - CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags) - LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs) -endif +include ../config.mk ALLOBJ=$(IPOBJ) $(RTMONOBJ) SCRIPTS=ifcfg rtpr routel routef |