]>
git.proxmox.com Git - mirror_iproute2.git/blob - Makefile
1 # Path to parent kernel include files directory
5 DOCDIR
=/usr
/doc
/iproute2
7 KERNEL_INCLUDE
=/usr
/include
8 LIBC_INCLUDE
=/usr
/include
10 DEFINES
= -DRESOLVE_HOSTNAMES
12 #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
16 #options if you compile with libc5, and without a bind>=4.9.4 libresolv
18 #ADDLIB=inet_ntop.o inet_pton.o
21 ADDLIB
+=dnet_ntop.o dnet_pton.o
24 ADDLIB
+=ipx_ntop.o ipx_pton.o
27 CCOPTS
= -D_GNU_SOURCE
-O2
-Wstrict-prototypes
-Wall
-g
28 CFLAGS
= $(CCOPTS
) -I
$(KERNEL_INCLUDE
) -I..
/include -I
/usr
/include/db41
$(DEFINES
)
30 LDLIBS
+= -L..
/lib
-lnetlink
-lutil
32 SUBDIRS
=lib ip tc misc
34 LIBNETLINK
=..
/lib
/libnetlink.a ..
/lib
/libutil.a
37 for i in
$(SUBDIRS
); \
38 do
$(MAKE
) -C
$$i; done
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
-type f
-maxdepth
1) $(DESTDIR
)$(DOCDIR
)/examples
46 install -m
0644 $(shell echo examples
/diffserv
/*) $(DESTDIR
)$(DOCDIR
)/examples
/diffserv
47 @for i in
$(SUBDIRS
) doc
; do
$(MAKE
) -C
$$i install; done
48 @cd etc
/iproute2
; for i in
*; do \
49 if
[ ! -e
$(DESTDIR
)$(CONFDIR
)/$$i ]; then \
50 echo
install -m
0644 $$i $(DESTDIR
)$(CONFDIR
); \
51 install -m
0644 $$i $(DESTDIR
)$(CONFDIR
); fi
; done
54 for i in
$(SUBDIRS
) doc
; \
55 do
$(MAKE
) -C
$$i clean; done
57 .EXPORT_ALL_VARIABLES
: