1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/apps/public/iproute/netem/Makefile
2024-07-22 01:58:46 -03:00

30 lines
607 B
Makefile
Executable File

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)/lib/tc
for i in $(DISTDATA); \
do install -m 755 $$i $(DESTDIR)/lib/tc; \
done
clean:
rm -f $(DISTDATA) $(DISTGEN)