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