CFLAGS=-Wall 

all: printf testPrintf scanf scanf2 portee   personne tarSol
#tar-sol

printf: printf.o
	gcc  printf.o -o printf

printf.o: printf.c
	gcc -c ${CFLAGS}  printf.c -o printf.o

scanf: scanf.c
	gcc ${CFLAGS}  scanf.c -o scanf

scanf2: scanf2.c
	gcc ${CFLAGS}  scanf2.c -o scanf2

scanf3: scanf3.c
	gcc ${CFLAGS}  scanf3.c -o scanf3

portee: portee.c
	gcc  ${CFLAGS} portee.c -o portee

testPrintf: testPrintf.c
	gcc ${CFLAGS}  testPrintf.c -o testPrintf

personne: personne.c
	gcc  ${CFLAGS} personne.c -o personne


tarSol:
	cd ..;tar cvf TD2-sol.tar code/

clean:
	\rm -rf *.o testPrintf portee scanf printf scanf2 *~ scanf3 personne ../TD2-sol.tar
