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 /netem | |
parent | 51186362ba95d7fc4f97ef7763718e1b5d236056 (diff) | |
download | iproute2-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 'netem')
-rw-r--r-- | netem/Makefile | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/netem/Makefile b/netem/Makefile index 2499f086..43418527 100644 --- a/netem/Makefile +++ b/netem/Makefile @@ -1,4 +1,4 @@ -include ../Config +include ../config.mk DISTGEN = maketable normal pareto paretonormal DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist @@ -7,11 +7,6 @@ HOSTCC ?= $(CC) CCOPTS = $(CBUILD_CFLAGS) LDLIBS += -lm -ifeq ($(HAVE_MNL),y) - CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags) - LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs) -endif - all: $(DISTGEN) $(DISTDATA) $(DISTGEN): |