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) |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 5 | LDLIBS += -lm |
| 6 | |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 7 | all: $(DISTGEN) $(DISTDATA) |
| 8 | |
shemminger | ce715cd | 2005-09-01 22:38:19 +0000 | [diff] [blame] | 9 | $(DISTGEN): |
shemminger | 319baac | 2006-03-14 19:43:59 +0000 | [diff] [blame] | 10 | $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm |
shemminger | ce715cd | 2005-09-01 22:38:19 +0000 | [diff] [blame] | 11 | |
| 12 | %.dist: % |
| 13 | ./$* > $@ |
| 14 | |
| 15 | experimental.dist: maketable experimental.dat |
| 16 | ./maketable experimental.dat > experimental.dist |
| 17 | |
Stephen Hemminger | ebfd0f3 | 2006-06-15 16:22:09 -0700 | [diff] [blame^] | 18 | stats: stats.c |
| 19 | $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm |
| 20 | |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 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) |