From a0e0018c9a7ef5ce7f6d2c3ae16aecbbd16a8f67 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 16:18:53 +0200 Subject: Adding upstream version 6.1.0. Signed-off-by: Daniel Baumann --- netem/Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 netem/Makefile (limited to 'netem/Makefile') diff --git a/netem/Makefile b/netem/Makefile new file mode 100644 index 0000000..ba4c5a7 --- /dev/null +++ b/netem/Makefile @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: GPL-2.0 +include ../config.mk + +DISTGEN = maketable normal pareto paretonormal +DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist + +HOSTCC ?= $(CC) +CCOPTS = $(CBUILD_CFLAGS) +LDLIBS += -lm + +all: $(DISTGEN) $(DISTDATA) + +$(DISTGEN): + $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm + +%.dist: % + ./$* > $@ + +experimental.dist: maketable experimental.dat + ./maketable experimental.dat > experimental.dist + +stats: stats.c + $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm + +install: all + mkdir -p $(DESTDIR)$(LIBDIR)/tc + for i in $(DISTDATA); \ + do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \ + done + +clean: + rm -f $(DISTDATA) $(DISTGEN) -- cgit v1.2.3