osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 1 | DISTGEN = maketable normal pareto paretonormal |
| 2 | DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist |
| 3 | |
shemminger | ce715cd | 2005-09-01 22:38:19 +0000 | [diff] [blame] | 4 | HOSTCC ?= $(CC) |
Bertrand Jacquin | 3cc6232 | 2008-06-21 01:51:19 -0400 | [diff] [blame] | 5 | CCOPTS = $(CBUILD_CFLAGS) |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 6 | LDLIBS += -lm |
| 7 | |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 8 | all: $(DISTGEN) $(DISTDATA) |
| 9 | |
shemminger | ce715cd | 2005-09-01 22:38:19 +0000 | [diff] [blame] | 10 | $(DISTGEN): |
shemminger | 319baac | 2006-03-14 19:43:59 +0000 | [diff] [blame] | 11 | $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm |
shemminger | ce715cd | 2005-09-01 22:38:19 +0000 | [diff] [blame] | 12 | |
| 13 | %.dist: % |
| 14 | ./$* > $@ |
| 15 | |
| 16 | experimental.dist: maketable experimental.dat |
| 17 | ./maketable experimental.dat > experimental.dist |
| 18 | |
Stephen Hemminger | ebfd0f3 | 2006-06-15 16:22:09 -0700 | [diff] [blame] | 19 | stats: stats.c |
| 20 | $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm |
| 21 | |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 22 | install: all |
Rafael Almeida | b514b35 | 2008-06-01 21:33:44 -0300 | [diff] [blame] | 23 | mkdir -p $(DESTDIR)/lib/tc |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 24 | for i in $(DISTDATA); \ |
Rafael Almeida | b514b35 | 2008-06-01 21:33:44 -0300 | [diff] [blame] | 25 | do install -m 755 $$i $(DESTDIR)/lib/tc; \ |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 26 | done |
| 27 | |
| 28 | clean: |
| 29 | rm -f $(DISTDATA) $(DISTGEN) |