]> git.proxmox.com Git - mirror_iproute2.git/blame - netem/Makefile
iproute: Set ip/ip6 lwtunnel flags
[mirror_iproute2.git] / netem / Makefile
CommitLineData
6054c1eb 1# SPDX-License-Identifier: GPL-2.0
5f1df307 2include ../config.mk
69fed534 3
eb1d6822
SH
4DISTGEN = maketable normal pareto paretonormal
5DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
6
ce715cd9 7HOSTCC ?= $(CC)
3cc6232e 8CCOPTS = $(CBUILD_CFLAGS)
3bad1dbb 9LDLIBS += -lm
eb1d6822 10
ce715cd9 11all: $(DISTGEN) $(DISTDATA)
eb1d6822 12
ce715cd9 13$(DISTGEN):
319baacb 14 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
eb1d6822 15
ce715cd9
SH
16%.dist: %
17 ./$* > $@
18
19experimental.dist: maketable experimental.dat
20 ./maketable experimental.dat > experimental.dist
eb1d6822 21
ebfd0f31
SH
22stats: stats.c
23 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
24
eb1d6822 25install: all
1a7943bc 26 mkdir -p $(DESTDIR)$(LIBDIR)/tc
eb1d6822 27 for i in $(DISTDATA); \
1a7943bc 28 do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
eb1d6822
SH
29 done
30
31clean:
32 rm -f $(DISTDATA) $(DISTGEN)