1 DISTGEN = maketable normal pareto paretonormal 2 DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist 3 4 HOSTCC ?= $(CC) 5 CCOPTS = $(CBUILD_CFLAGS) 6 LDLIBS += -lm 7 8 all: $(DISTGEN) $(DISTDATA) 9 10 $(DISTGEN): 11 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm 12 13 %.dist: % 14 ./$* > $@ 15 16 experimental.dist: maketable experimental.dat 17 ./maketable experimental.dat > experimental.dist 18 19 stats: stats.c 20 $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm 21 22 install: all 23 mkdir -p $(DESTDIR)$(LIBDIR)/tc 24 for i in $(DISTDATA); \ 25 do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \ 26 done 27 28 clean: 29 rm -f $(DISTDATA) $(DISTGEN) 30