

tuto01: tuto01.o rand.o
	gcc rand.o tuto01.o -lstdc++ -lm -o tuto01
	
rand.o: rand.cc rand.h
	g++ -c -Wall rand.cc
	
tuto01.o: tuto01.c
	gcc -c -Wall tuto01.c
	
clean :
	rm -f rand.o tuto01.o tuto01
	
tar: random.tar.gz
	tar zcvf random.tar.gz tuto01.c rand.cc rand.h Makefile --transform 's,^,random/,'
	
.PHONY: random.tar.gz
