]>
Commit | Line | Data |
---|---|---|
6054c1eb | 1 | # SPDX-License-Identifier: GPL-2.0 |
5f1df307 | 2 | include ../config.mk |
69fed534 | 3 | |
eb1d6822 SH |
4 | DISTGEN = maketable normal pareto paretonormal |
5 | DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist | |
6 | ||
ce715cd9 | 7 | HOSTCC ?= $(CC) |
3cc6232e | 8 | CCOPTS = $(CBUILD_CFLAGS) |
3bad1dbb | 9 | LDLIBS += -lm |
eb1d6822 | 10 | |
ce715cd9 | 11 | all: $(DISTGEN) $(DISTDATA) |
eb1d6822 | 12 | |
ce715cd9 | 13 | $(DISTGEN): |
319baacb | 14 | $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm |
eb1d6822 | 15 | |
ce715cd9 SH |
16 | %.dist: % |
17 | ./$* > $@ | |
18 | ||
19 | experimental.dist: maketable experimental.dat | |
20 | ./maketable experimental.dat > experimental.dist | |
eb1d6822 | 21 | |
ebfd0f31 SH |
22 | stats: stats.c |
23 | $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm | |
24 | ||
eb1d6822 | 25 | install: all |
1a7943bc | 26 | mkdir -p $(DESTDIR)$(LIBDIR)/tc |
eb1d6822 | 27 | for i in $(DISTDATA); \ |
1a7943bc | 28 | do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \ |
eb1d6822 SH |
29 | done |
30 | ||
31 | clean: | |
32 | rm -f $(DISTDATA) $(DISTGEN) |