# The -n option of utest requires the cephes function ndtr (which # calculates normal distribution tail probabilities). On my system # this is in libcephes. To build utest, you have two options. (1) # Get cephes from http://www.netlib.org/cephes/, build it (or at least # the part that contains ndtr, install it in your library path # (probably /usr/local/lib) as libcephes.a. (2) Comment out the two # lines below defining LDLIBS and CFLAGS, and uncomment the following # two lines. In this case utest will be built without the -n option. # LDLIBS= -lcephes -lm CFLAGS= -DTOPT -DNOPT $(OPT) # LDLIBS= -lm # CFLAGS= -DTOPT $(OPT) OPT= -g -O2 CXXFLAGS= -DTOPT $(OPT) ESRC= eutest.c rpick.c pick.c gcf.c lpicks.c dprint.c error.c readline.c \ erealloc.c irand.c ealloc.c tsrandom.c estrdup.c igets.c EOBJ= $(ESRC:.c=.o) USRC= utest.c error.c lpicks.c dprint.c erealloc.c ealloc.c pick.c \ tsrandom.c rpick.c gcf.c irand.c UOBJ= $(USRC:.c=.o) all: eutest utest man man: eutest.man utest.man eutest.html utest.html eutest: $(EOBJ) $(CC) -o $@ $(EOBJ) $(LDLIBS) utest: $(UOBJ) $(CC) -o $@ $(UOBJ) $(LDLIBS) eutest.ln: $(ESRC) $(LINT) $(LNFLAGS) $(ESRC) > $@ .SUFFIXES: .pod .man .html .c: $(CC) $(OUTPUT_OPTION) $< $(CC) -o $@ $(<:.c=.o) pick.o $(LDLIBS) .pod.man: rm -f $@ pod2man $< > $@ .pod.html: rm -f $@ pod2html $< > $@ clean: rm -f $(EOBJ) $(UOBJ)