Home | History | Annotate | Download | only in netem
      1 include ../config.mk
      2 
      3 DISTGEN = maketable normal pareto paretonormal
      4 DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
      5 
      6 HOSTCC ?= $(CC)
      7 CCOPTS  = $(CBUILD_CFLAGS)
      8 LDLIBS += -lm
      9 
     10 all: $(DISTGEN) $(DISTDATA)
     11 
     12 $(DISTGEN):
     13 	$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
     14 
     15 %.dist: %
     16 	./$* > $@
     17 
     18 experimental.dist: maketable experimental.dat
     19 	./maketable experimental.dat > experimental.dist
     20 
     21 stats: stats.c
     22 	$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
     23 
     24 install: all
     25 	mkdir -p $(DESTDIR)$(LIBDIR)/tc
     26 	for i in $(DISTDATA); \
     27 	do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
     28 	done
     29 
     30 clean:
     31 	rm -f $(DISTDATA) $(DISTGEN)
     32