]>
git.proxmox.com Git - mirror_iproute2.git/blob - Makefile
4 DOCDIR
=/usr
/doc
/iproute2
6 # Path to parent kernel include files directory
7 KERNEL_INCLUDE
:=/usr
/include
9 DEFINES
= -DRESOLVE_HOSTNAMES
11 #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
16 ADDLIB
+=dnet_ntop.o dnet_pton.o
19 ADDLIB
+=ipx_ntop.o ipx_pton.o
22 CCOPTS
= -D_GNU_SOURCE
-O2
-Wstrict-prototypes
-Wall
-g
23 CFLAGS
= $(CCOPTS
) -I
$(KERNEL_INCLUDE
) -I..
/include $(DEFINES
)
25 LDLIBS
+= -L..
/lib
-lnetlink
-lutil
27 SUBDIRS
=lib ip tc misc
29 LIBNETLINK
=..
/lib
/libnetlink.a ..
/lib
/libutil.a
32 @for i in
$(SUBDIRS
); \
33 do
$(MAKE
) $(MFLAGS
) -C
$$i; done
36 .
/configure
$(KERNEL_INCLUDE
)
39 install -m
0755 -d
$(DESTDIR
)$(SBINDIR
)
40 install -m
0755 -d
$(CONFDIR
)
41 install -m
0755 -d
$(DESTDIR
)$(DOCDIR
)/examples
42 install -m
0755 -d
$(DESTDIR
)$(DOCDIR
)/examples
/diffserv
43 install -m
0644 README.iproute2
+tc
$(shell find examples
-type f
-maxdepth
1) $(DESTDIR
)$(DOCDIR
)/examples
44 install -m
0644 $(shell echo examples
/diffserv
/*) $(DESTDIR
)$(DOCDIR
)/examples
/diffserv
45 @for i in
$(SUBDIRS
) doc
; do
$(MAKE
) -C
$$i install; done
46 @cd etc
/iproute2
; for i in
*; do \
47 if
[ ! -e
$(CONFDIR
)/$$i ]; then \
48 echo
install -m
0644 $$i $(CONFDIR
); \
49 install -m
0644 $$i $(CONFDIR
); fi
; done
52 @for i in
$(SUBDIRS
) doc
; \
53 do
$(MAKE
) $(MFLAGS
) -C
$$i clean; done
59 .EXPORT_ALL_VARIABLES
: