]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - Makefile
ip/tunnel: Use print_0xhex() instead of print_string()
[mirror_iproute2.git] / Makefile
index 7a691dea2441771e848c7a67d060c0cc0f535876..32587db3be70598aef5bcff1025fe9e0ff90153e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
 # Top level Makefile for iproute2
 
+ifeq ("$(origin V)", "command line")
+VERBOSE = $(V)
+endif
+ifndef VERBOSE
+VERBOSE = 0
+endif
+
 ifeq ($(VERBOSE),0)
 MAKEFLAGS += --no-print-directory
 endif
@@ -46,7 +54,7 @@ CCOPTS = -O2
 WFLAGS := -Wall -Wstrict-prototypes  -Wmissing-prototypes
 WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
 
-CFLAGS := $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) $(CFLAGS)
+CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS)
 YACCFLAGS = -d -t -v
 
 SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma man
@@ -73,7 +81,7 @@ install: all
                $(DESTDIR)$(DOCDIR)/examples
        install -m 0644 $(shell find examples/diffserv -maxdepth 1 -type f) \
                $(DESTDIR)$(DOCDIR)/examples/diffserv
-       @for i in $(SUBDIRS) doc; do $(MAKE) -C $$i install; done
+       @for i in $(SUBDIRS) 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)
@@ -84,7 +92,7 @@ snapshot:
                > include/SNAPSHOT.h
 
 clean:
-       @for i in $(SUBDIRS) doc; \
+       @for i in $(SUBDIRS); \
        do $(MAKE) $(MFLAGS) -C $$i clean; done
 
 clobber: