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