all: test_gaussienne test_uniforme affiche_histogrammes test_matrices gaussiennes_correlees


alea.o:
	gcc -Wall -c alea.c -lm
matrices.o:
	gcc -Wall -c matrices.c -lm
histo.o:
	gcc -Wall -c histo.c -lm


test_uniforme: alea.o
	gcc -Wall alea.o test_uniforme.c -o test_uniforme -lm
test_gaussienne: alea.o
	gcc -Wall alea.o test_gaussienne.c -o test_gaussienne -lm
affiche_histogrammes: alea.o histo.o
	gcc -Wall alea.o histo.o affiche_histogrammes.c -o affiche_histogrammes -lm
test_matrices: matrices.o
	gcc -Wall matrices.o test_matrices.c -o test_matrices -lm
gaussiennes_correlees: matrices.o alea.o
	gcc -Wall matrices.o alea.o gaussiennes_correlees.c -o gaussiennes_correlees -lm

clean:
	rm -f *~ *.o test_gaussienne test_uniforme test_matrices affiche_histogrammes *.dat gaussiennes_correlees
