X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=48f469b0d0a85626b9ac2f36d61fece865c57737;hb=25c6339b223f17d1603702c0c87f06b252bb4949;hp=b526d3b5b5c4e4ec013f8f7d601ad02ff0dbfa03;hpb=2c62a64d60959e96f364a289df61308655abc99f;p=mirror_iproute2.git diff --git a/Makefile b/Makefile index b526d3b5..48f469b0 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,8 @@ PREFIX?=/usr LIBDIR?=$(PREFIX)/lib SBINDIR?=/sbin CONFDIR?=/etc/iproute2 +NETNS_RUN_DIR?=/var/run/netns +NETNS_ETC_DIR?=/etc/netns DATADIR?=$(PREFIX)/share HDRDIR?=$(PREFIX)/include/iproute2 DOCDIR?=$(DATADIR)/doc/iproute2 @@ -34,13 +36,9 @@ ifneq ($(SHARED_LIBS),y) DEFINES+= -DNO_SHARED_LIBS endif -DEFINES+=-DCONFDIR=\"$(CONFDIR)\" - -#options for decnet -ADDLIB+=dnet_ntop.o dnet_pton.o - -#options for ipx -ADDLIB+=ipx_ntop.o ipx_pton.o +DEFINES+=-DCONFDIR=\"$(CONFDIR)\" \ + -DNETNS_RUN_DIR=\"$(NETNS_RUN_DIR)\" \ + -DNETNS_ETC_DIR=\"$(NETNS_ETC_DIR)\" #options for mpls ADDLIB+=mpls_ntop.o mpls_pton.o @@ -67,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) @@ -92,7 +103,7 @@ snapshot: > include/SNAPSHOT.h clean: - @for i in $(SUBDIRS); \ + @for i in $(SUBDIRS) testsuite; \ do $(MAKE) $(MFLAGS) -C $$i clean; done clobber: @@ -102,6 +113,15 @@ clobber: distclean: clobber +check: all + cd testsuite && $(MAKE) && $(MAKE) 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