]> git.proxmox.com Git - mirror_iproute2.git/blame - Makefile
add more changelog entries about what in to last release
[mirror_iproute2.git] / Makefile
CommitLineData
aba5acdf 1DESTDIR=
c90d5875 2SBINDIR=/usr/sbin
aba5acdf 3CONFDIR=/etc/iproute2
562fac2a 4DOCDIR=/usr/share/doc/iproute2
06ddd50f 5MANDIR=/usr/share/man
aba5acdf 6
d1e48c7e
SH
7# Path to db_185.h include
8DBM_INCLUDE:=/usr/include
9
aba5acdf
SH
10DEFINES= -DRESOLVE_HOSTNAMES
11
12#options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
13LDLIBS=-lresolv
14ADDLIB=
15
aba5acdf
SH
16#options for decnet
17ADDLIB+=dnet_ntop.o dnet_pton.o
18
19#options for ipx
20ADDLIB+=ipx_ntop.o ipx_pton.o
21
aba5acdf 22CC = gcc
b209eda9 23HOSTCC = gcc
c450ff3d 24CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
71c60c07 25CFLAGS = $(CCOPTS) -I../include $(DEFINES)
aba5acdf
SH
26
27LDLIBS += -L../lib -lnetlink -lutil
28
d33de549 29SUBDIRS=lib ip tc misc netem
aba5acdf
SH
30
31LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
32
adff36d7
SH
33all: Config
34 @for i in $(SUBDIRS); \
35 do $(MAKE) $(MFLAGS) -C $$i; done
36
37Config:
38 ./configure $(KERNEL_INCLUDE)
aba5acdf 39
aba5acdf
SH
40install: all
41 install -m 0755 -d $(DESTDIR)$(SBINDIR)
e9a05e96 42 install -m 0755 -d $(DESTDIR)$(CONFDIR)
aba5acdf
SH
43 install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples
44 install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples/diffserv
c72238e4 45 install -m 0644 README.iproute2+tc $(shell find examples -maxdepth 1 -type f) \
e9a05e96 46 $(DESTDIR)$(DOCDIR)/examples
c72238e4 47 install -m 0644 $(shell find examples/diffserv -maxdepth 1 -type f) \
e9a05e96 48 $(DESTDIR)$(DOCDIR)/examples/diffserv
aba5acdf 49 @for i in $(SUBDIRS) doc; do $(MAKE) -C $$i install; done
c72238e4 50 install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR)
cb4d97a9 51 install -m 0755 -d $(DESTDIR)$(MANDIR)/man8
c72238e4 52 install -m 0644 $(shell find man/man8 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man8
c3759b76
SH
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
c450ff3d 55 install -m 0755 -d $(DESTDIR)$(MANDIR)/man3
85ac60ce 56 install -m 0644 $(shell find man/man3 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man3
aba5acdf
SH
57
58clean:
adff36d7
SH
59 @for i in $(SUBDIRS) doc; \
60 do $(MAKE) $(MFLAGS) -C $$i clean; done
61
62clobber: clean
63 rm -f Config
64
44d3eb25 65distclean: clean clobber
aba5acdf
SH
66
67.EXPORT_ALL_VARIABLES: