CC=g++
CFLAGS=-W -Wall -ansi -pedantic


all: LogicielNotes

LogicielNotes: LogicielNotes.o Etudiant.o Date.o GestionNotes.o Promo.o 
	g++ -o LogicielNotes LogicielNotes.o Etudiant.o Date.o GestionNotes.o Promo.o 

LogicielNotes.o: LogicielNotes.cpp Etudiant.h Date.h Promo.h 
	g++ LogicielNotes.cpp -c

GestionNotes.o: Promo.cpp Promo.h Etudiant.h
	g++ GestionNotes.cpp -c

Promo.o: Promo.cpp Promo.h Etudiant.h
	g++ Promo.cpp -c

Etudiant.o: Etudiant.cpp Etudiant.h Date.h
	g++ Etudiant.cpp -c

Date.o: Date.cpp Date.h
	g++ Date.cpp -c

clean:
	rm -rf *.o

mrproper: clean
	rm -rf hello


