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 /Makefile | |
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 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -54,12 +54,12 @@ SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma man LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a LDLIBS += $(LIBNETLINK) -all: Config +all: config.mk @set -e; \ for i in $(SUBDIRS); \ do echo; echo $$i; $(MAKE) $(MFLAGS) -C $$i; done -Config: +config.mk: sh configure $(KERNEL_INCLUDE) install: all @@ -88,9 +88,9 @@ clean: do $(MAKE) $(MFLAGS) -C $$i clean; done clobber: - touch Config + touch config.mk $(MAKE) $(MFLAGS) clean - rm -f Config cscope.* + rm -f config.mk cscope.* distclean: clobber |