]> git.proxmox.com Git - mirror_iproute2.git/blob - netem/Makefile
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger...
[mirror_iproute2.git] / netem / Makefile
1 DISTGEN = maketable normal pareto paretonormal
2 DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
3
4 HOSTCC ?= $(CC)
5 CCOPTS = $(CBUILD_CFLAGS)
6 LDLIBS += -lm
7
8 all: $(DISTGEN) $(DISTDATA)
9
10 $(DISTGEN):
11 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
12
13 %.dist: %
14 ./$* > $@
15
16 experimental.dist: maketable experimental.dat
17 ./maketable experimental.dat > experimental.dist
18
19 stats: stats.c
20 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
21
22 install: all
23 mkdir -p $(DESTDIR)/lib/tc
24 for i in $(DISTDATA); \
25 do install -m 755 $$i $(DESTDIR)/lib/tc; \
26 done
27
28 clean:
29 rm -f $(DISTDATA) $(DISTGEN)