]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - Makefile
devlink: Add man page for devlink-trap
[mirror_iproute2.git] / Makefile
index ea2f797c933f4afb8b5dfa623769b08e658df531..a3cc88f1aed28b27cda49c75b89b5ee334c503c2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,12 +40,6 @@ DEFINES+=-DCONFDIR=\"$(CONFDIR)\" \
          -DNETNS_RUN_DIR=\"$(NETNS_RUN_DIR)\" \
          -DNETNS_ETC_DIR=\"$(NETNS_ETC_DIR)\"
 
-#options for decnet
-ADDLIB+=dnet_ntop.o dnet_pton.o
-
-#options for ipx
-ADDLIB+=ipx_ntop.o ipx_pton.o
-
 #options for mpls
 ADDLIB+=mpls_ntop.o mpls_pton.o
 
@@ -54,7 +48,7 @@ HOSTCC ?= $(CC)
 DEFINES += -D_GNU_SOURCE
 # Turn on transparent support for LFS
 DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-CCOPTS = -O2
+CCOPTS = -O2 -pipe
 WFLAGS := -Wall -Wstrict-prototypes  -Wmissing-prototypes
 WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
 
@@ -71,6 +65,19 @@ all: config.mk
        for i in $(SUBDIRS); \
        do echo; echo $$i; $(MAKE) $(MFLAGS) -C $$i; done
 
+help:
+       @echo "Make Targets:"
+       @echo " all                 - build binaries"
+       @echo " clean               - remove products of build"
+       @echo " distclean           - remove configuration and build"
+       @echo " install             - install binaries on local machine"
+       @echo " check               - run tests"
+       @echo " cscope              - build cscope database"
+       @echo " snapshot            - generate version number header"
+       @echo ""
+       @echo "Make Arguments:"
+       @echo " V=[0|1]             - set build verbosity level"
+
 config.mk:
        sh configure $(KERNEL_INCLUDE)
 
@@ -106,6 +113,16 @@ clobber:
 
 distclean: clobber
 
+check: all
+       $(MAKE) -C testsuite
+       $(MAKE) -C testsuite alltests
+       @if command -v man >/dev/null 2>&1; then \
+               echo "Checking manpages for syntax errors..."; \
+               $(MAKE) -C man check; \
+       else \
+               echo "man not installed, skipping checks for syntax errors."; \
+       fi
+
 cscope:
        cscope -b -q -R -Iinclude -sip -slib -smisc -snetem -stc