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