all: test1 test2 test3 test4 test5

monte_carlo.o: polynome.o
	g++ -c monte_carlo.cpp -Wall

polynome.o:
	g++ -c polynome.cpp -Wall

array.o:
	g++ -c array.cpp -Wall

test1: monte_carlo.o polynome.o
	g++ monte_carlo.o polynome.o test1.cpp -o test1 -Wall

test2: monte_carlo.o polynome.o
	g++ monte_carlo.o polynome.o test2.cpp -o test2 -Wall

test3: monte_carlo.o polynome.o
	g++ monte_carlo.o polynome.o test3.cpp -o test3 -Wall

test4: monte_carlo.o polynome.o
	g++ monte_carlo.o polynome.o test4.cpp -o test4 -Wall

test5: array.o monte_carlo.o polynome.o
	g++ array.o monte_carlo.o polynome.o test5.cpp -o test5 -Wall

clean:
	rm -f *.hpp~ *.cpp~ *.o makefile~ test?
