]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blob - netem/Makefile
Add ignore files to make using git easier
[lisovros/iproute2_canprio.git] / netem / Makefile
1 DISTGEN = maketable normal pareto paretonormal
2 DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
3
4 HOSTCC ?= $(CC)
5 LDLIBS += -lm 
6
7 all: $(DISTGEN) $(DISTDATA)
8
9 $(DISTGEN):
10         $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
11
12 %.dist: %
13         ./$* > $@
14
15 experimental.dist: maketable experimental.dat
16         ./maketable experimental.dat > experimental.dist
17
18 stats: stats.c
19         $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
20
21 install: all
22         mkdir -p $(DESTDIR)/usr/lib/tc
23         for i in $(DISTDATA); \
24         do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \
25         done
26
27 clean:
28         rm -f $(DISTDATA) $(DISTGEN)