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 | |
| 4 | LDLIBS += -lm |
| 5 | |
| 6 | %.dist: %.c |
| 7 | $(HOSTCC) $(CFLAGS) -o $* $< -lm |
| 8 | ./$* >$@ |
| 9 | |
| 10 | %.dist: %.dat |
| 11 | ./maketable $< >$@ |
| 12 | |
| 13 | all: $(DISTGEN) $(DISTDATA) |
| 14 | |
| 15 | install: all |
| 16 | mkdir -p $(DESTDIR)/usr/lib/tc |
| 17 | for i in $(DISTDATA); \ |
| 18 | do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \ |
| 19 | done |
| 20 | |
| 21 | clean: |
| 22 | rm -f $(DISTDATA) $(DISTGEN) |
| 23 | |
| 24 | maketable: maketable.c |
| 25 | $(HOSTCC) $(CFLAGS) -o $@ $< -lm |
| 26 | |
| 27 | |