all: test_arbres test_chemins test_contour

arbres.o:
	gcc -c arbres.c -Wall
test_arbres: arbres.o
	gcc arbres.o test_arbres.c -o test_arbres -Wall


chemin.o:
	gcc -c chemins.c -Wall
test_chemins: chemins.o
	gcc chemins.o test_chemins.c -o test_chemins -Wall


contour.o: chemin.o arbres.o
	gcc -c contour.c -Wall
test_contour: contour.o
	gcc arbres.o contour.o chemins.o test_contour.c -o test_contour -Wall


clean:
	rm -f *~ *.o *.dat test_arbres test_chemins test_contour
