mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-24 10:23:40 +08:00
6054c1ebf7
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>
33 lines
673 B
Makefile
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)
|