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): |
| 10 | $(HOSTCC) -Wall -O1 -I../include -o $@ $@.c -lm |
| 11 | |
| 12 | %.dist: % |
| 13 | ./$* > $@ |
| 14 | |
| 15 | experimental.dist: maketable experimental.dat |
| 16 | ./maketable experimental.dat > experimental.dist |
| 17 | |
osdl.net!shemminger | eb1d682 | 2005-02-09 22:05:41 +0000 | [diff] [blame] | 18 | install: all |
| 19 | mkdir -p $(DESTDIR)/usr/lib/tc |
| 20 | for i in $(DISTDATA); \ |
| 21 | do install -m 755 $$i $(DESTDIR)/usr/lib/tc; \ |
| 22 | done |
| 23 | |
| 24 | clean: |
| 25 | rm -f $(DISTDATA) $(DISTGEN) |