# Included distributions:
# 1. experimental
# 2. normal
# 3. pareto
# 4. paretonormal

include ../../Config

experimental_headers= experimental.h experimental.mu.h experimental.sigma.h
normal_headers= normal.h normal.mu.h normal.sigma.h
pareto_headers= pareto.h pareto.mu.h pareto.sigma.h
paretonormal_headers= paretonormal.h paretonormal.mu.h paretonormal.sigma.h

headers= $(experimental_headers) $(normal_headers) $(pareto_headers) $(paretonormal_headers)

ifeq ($(strip $(DISTRIBUTION)),)
	DISTRIBUTION= -DUSE_EXPERIMENTAL -DDISTRIBUTION_NAME="\"experimental\""
endif

CFLAGS= $(DISTRIBUTION) -I../../include -g

PROGS= abnormtable countup cumdist erf findrange fixsigma normdist regrandom testnormal

all:  $(PROGS)

install: 

regrandom:	regrandom.o 
	$(CC) $(CFLAGS) -o regrandom regrandom.o ../random.o -lm

stats:	stats.c
	$(CC) $(CFLAGS) -o stats stats.c -lm

findrange:	findrange.c
	$(CC) $(CFLAGS) -o findrange findrange.c -lm

cumdist:	cumdist.c
	$(CC) $(CFLAGS) -o cumdist cumdist.c -lm

countup:	countup.c
	$(CC) $(CFLAGS) -o countup countup.c -lm

clean:
	-rm -f *.o $(PROGS)
