
-include ../../make.inc

INC=-I../..
LIB=-L../..  -lfgsl_$(F90) $(GSL_LIB)


all : cdf.exe cheb.exe combination.exe diff.exe dwt.exe \
	fitting.exe fitting2.exe fitting3.exe histogram.exe histogram2d.exe \
	ieee.exe ieeeround.exe integration.exe \
	interp.exe interpp.exe intro.exe matrix.exe \
	min.exe monte.exe nlfit.exe ntupler.exe ntuplew.exe \
	ode-initval.exe permutation.exe permshuffle.exe polyroots.exe  qrng.exe \
	randpoisson.exe randwalk.exe \
	rng.exe rngunif.exe roots.exe \
	siman.exe stat.exe statsort.exe sum.exe vector.exe 

%.exe : %.f90
	$(F90) $(FPP) -g -C -o $@ $(INC) $^ $(LIB) 

siman.exe : siman.f90 siman_print.c
	$(CC) -g -c siman_print.c
	$(F90) -g -C -o $@ $(INC) siman.f90 siman_print.o $(LIB) 

clean :
	rm -f *~ *.exe *.mod *.o fitting2.dat test.dat
