iproute2/netem/Makefile
Stephen Hemminger 6054c1ebf7 SPDX license identifiers
For all files in iproute2 which do not have an obvious license
identification, mark them with SPDK GPL-2

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2017-11-24 12:21:35 -08:00

33 lines
673 B
Makefile

# 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)