CFLAGS	+= -Wall   -g 
LDFLAGS += -Wall

all: liste deuxTar

liste.o: liste.c liste.h liste_type.h
	gcc ${CFLAGS} -c liste.c -o liste.o 

liste:  liste.o
	gcc ${LDFLAGS}  liste.o -o liste

liste_corr: liste_corr.c liste.h liste_type.h
	gcc ${CFLAGS}  liste_corr.c -o liste_corr 

deuxTar: clean
	make tar
	make tarSol

tarSol: 
	cd ..; tar -cvf TD-liste-Sol.tar code/

tar: 
	cd ..; tar -cvf TD-liste.tar --exclude code/liste_corr.c code/ 

clean:
	-rm -rf *~ *.out  *.o liste liste_corr ../TD-liste-Sol.tar ../TD-liste.tar


