]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - Makefile
bridge: man: fix "brige" typo
[mirror_iproute2.git] / Makefile
index b794f080e90a9472f0f060df9155d5d0b5b740f0..15c81ecfdca3a527be93c36a1e8618991259cbbe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
+ifndef VERBOSE
+MAKEFLAGS += --no-print-directory
+endif
+
 PREFIX?=/usr
 LIBDIR?=$(PREFIX)/lib
 SBINDIR?=/sbin
@@ -7,6 +11,7 @@ DOCDIR?=$(DATADIR)/doc/iproute2
 MANDIR?=$(DATADIR)/man
 ARPDDIR?=/var/lib/arpd
 KERNEL_INCLUDE?=/usr/include
+BASH_COMPDIR?=$(DATADIR)/bash-completion/completions
 
 # Path to db_185.h include
 DBM_INCLUDE:=$(DESTDIR)/usr/include
@@ -32,6 +37,8 @@ ADDLIB+=mpls_ntop.o mpls_pton.o
 CC = gcc
 HOSTCC = gcc
 DEFINES += -D_GNU_SOURCE
+# Turn on transparent support for LFS
+DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 CCOPTS = -O2
 WFLAGS := -Wall -Wstrict-prototypes  -Wmissing-prototypes
 WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
@@ -39,7 +46,7 @@ WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
 CFLAGS := $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) $(CFLAGS)
 YACCFLAGS = -d -t -v
 
-SUBDIRS=lib ip tc bridge misc netem genl man
+SUBDIRS=lib ip tc bridge misc netem genl tipc devlink man
 
 LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
 LDLIBS += $(LIBNETLINK)
@@ -47,7 +54,7 @@ LDLIBS += $(LIBNETLINK)
 all: Config
        @set -e; \
        for i in $(SUBDIRS); \
-       do $(MAKE) $(MFLAGS) -C $$i; done
+       do echo; echo $$i; $(MAKE) $(MFLAGS) -C $$i; done
 
 Config:
        sh configure $(KERNEL_INCLUDE)
@@ -64,6 +71,8 @@ install: all
                $(DESTDIR)$(DOCDIR)/examples/diffserv
        @for i in $(SUBDIRS) doc; do $(MAKE) -C $$i install; done
        install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR)
+       install -m 0755 -d $(DESTDIR)$(BASH_COMPDIR)
+       install -m 0644 bash-completion/tc $(DESTDIR)$(BASH_COMPDIR)
 
 snapshot:
        echo "static const char SNAPSHOT[] = \""`date +%y%m%d`"\";" \