X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=ac58cd97e52f2287198599541c21c0683562b6e2;hb=86b265f23f1f295b4e542de20954aebd2dc23110;hp=1d11462b7ad1c89c3f3fdec29bac2e4f3d2898f2;hpb=4f7d3057911ebc5df78113896cb02e1b4ffbfabe;p=iproute2.git diff --git a/Makefile b/Makefile index 1d11462..ac58cd9 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,6 @@ SBINDIR=/usr/sbin CONFDIR=/etc/iproute2 DOCDIR=/usr/share/doc/iproute2 MANDIR=/usr/share/man -KERNEL_INCLUDE=/usr/include # Path to db_185.h include DBM_INCLUDE:=/usr/include @@ -24,6 +23,7 @@ CC = gcc HOSTCC = gcc CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall CFLAGS = $(CCOPTS) -I../include $(DEFINES) +YACCFLAGS = -d -t -v LDLIBS += -L../lib -lnetlink -lutil @@ -36,7 +36,7 @@ all: Config do $(MAKE) $(MFLAGS) -C $$i; done Config: - ./configure $(KERNEL_INCLUDE) + sh configure $(KERNEL_INCLUDE) install: all install -m 0755 -d $(DESTDIR)$(SBINDIR) @@ -51,18 +51,22 @@ install: all install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR) install -m 0755 -d $(DESTDIR)$(MANDIR)/man8 install -m 0644 $(shell find man/man8 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man8 - ln -sf $(MANDIR)/man8/tc-pbfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-bfifo.8 - ln -sf $(MANDIR)/man8/tc-pbfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8 + ln -sf tc-pbfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-bfifo.8 + ln -sf tc-pbfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8 install -m 0755 -d $(DESTDIR)$(MANDIR)/man3 install -m 0644 $(shell find man/man3 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man3 clean: + rm -f cscope.* @for i in $(SUBDIRS) doc; \ do $(MAKE) $(MFLAGS) -C $$i clean; done clobber: clean rm -f Config -distclean: clean clobber +distclean: clobber + +cscope: + cscope -b -q -R -Iinclude -sip -slib -smisc -snetem -stc .EXPORT_ALL_VARIABLES: