]>
git.proxmox.com Git - mirror_iproute2.git/blob - Makefile
4 DOCDIR
=/usr
/share
/doc
/iproute2
7 # Path to db_185.h include
8 DBM_INCLUDE
:=/usr
/include
10 DEFINES
= -DRESOLVE_HOSTNAMES
12 #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
17 ADDLIB
+=dnet_ntop.o dnet_pton.o
20 ADDLIB
+=ipx_ntop.o ipx_pton.o
24 CCOPTS
= -D_GNU_SOURCE
-O2
-Wstrict-prototypes
-Wall
25 CFLAGS
= $(CCOPTS
) -I..
/include $(DEFINES
)
27 LDLIBS
+= -L..
/lib
-lnetlink
-lutil
29 SUBDIRS
=lib ip tc misc netem
31 LIBNETLINK
=..
/lib
/libnetlink.a ..
/lib
/libutil.a
34 @for i in
$(SUBDIRS
); \
35 do
$(MAKE
) $(MFLAGS
) -C
$$i; done
38 sh configure
$(KERNEL_INCLUDE
)
41 install -m
0755 -d
$(DESTDIR
)$(SBINDIR
)
42 install -m
0755 -d
$(DESTDIR
)$(CONFDIR
)
43 install -m
0755 -d
$(DESTDIR
)$(DOCDIR
)/examples
44 install -m
0755 -d
$(DESTDIR
)$(DOCDIR
)/examples
/diffserv
45 install -m
0644 README.iproute2
+tc
$(shell find examples
-maxdepth
1 -type f
) \
46 $(DESTDIR
)$(DOCDIR
)/examples
47 install -m
0644 $(shell find examples
/diffserv
-maxdepth
1 -type f
) \
48 $(DESTDIR
)$(DOCDIR
)/examples
/diffserv
49 @for i in
$(SUBDIRS
) doc
; do
$(MAKE
) -C
$$i install; done
50 install -m
0644 $(shell find etc
/iproute2
-maxdepth
1 -type f
) $(DESTDIR
)$(CONFDIR
)
51 install -m
0755 -d
$(DESTDIR
)$(MANDIR
)/man8
52 install -m
0644 $(shell find man
/man8
-maxdepth
1 -type f
) $(DESTDIR
)$(MANDIR
)/man8
53 ln
-sf
$(MANDIR
)/man8
/tc-pbfifo
.8 $(DESTDIR
)$(MANDIR
)/man8
/tc-bfifo
.8
54 ln
-sf
$(MANDIR
)/man8
/tc-pbfifo
.8 $(DESTDIR
)$(MANDIR
)/man8
/tc-pfifo
.8
55 install -m
0755 -d
$(DESTDIR
)$(MANDIR
)/man3
56 install -m
0644 $(shell find man
/man3
-maxdepth
1 -type f
) $(DESTDIR
)$(MANDIR
)/man3
59 @for i in
$(SUBDIRS
) doc
; \
60 do
$(MAKE
) $(MFLAGS
) -C
$$i clean; done
65 distclean: clean clobber
67 .EXPORT_ALL_VARIABLES
: