.SUFFIXES=

.SUFFIXES=.cc .o

CC=g++
OPTIONS_COMPIL=-g -Wall -ansi -pedantic
OPTIONS_LIEN=-g

all:Complexes ObjetsGraphiques

EXEC_NC=execNC
Complexes:${EXEC_NC}

EXEC_OG=execOG
ObjetsGraphiques:${EXEC_OG}


.cc.o:
	${CC} ${OPTIONS_COMPIL} -c $< -o $@

OBJETS_NC=NombreComplexePolaire.o NombreComplexeCartesien.o NombreComplexe.o mainNC.o


OBJETS_OG=Point.o ObjetGraphique.o Cercle.o Ligne.o mainOG.o



${EXEC_NC}:${OBJETS_NC}
	${CC} -o ${EXEC_NC} ${OBJETS_NC} ${OPTIONS_LIENS}


${EXEC_OG}:${OBJETS_OG}
	${CC} -o ${EXEC_OG} ${OBJETS_OG} ${OPTIONS_LIENS}

clean:
	rm -f ${EXEC_NC} ${OBJETS_NC} ${EXEC_OG} ${OBJETS_OG}



Cercle.o: Cercle.cc Cercle.hxx ObjetGraphique.hxx Point.hxx
Ligne.o: Ligne.cc Ligne.hxx ObjetGraphique.hxx Point.hxx
NombreComplexe.o: NombreComplexe.cc NombreComplexe.hxx
NombreComplexeCartesien.o: NombreComplexeCartesien.cc \
 NombreComplexeCartesien.hxx NombreComplexe.hxx
NombreComplexePolaire.o: NombreComplexePolaire.cc \
 NombreComplexePolaire.hxx NombreComplexe.hxx
ObjetGraphique.o: ObjetGraphique.cc ObjetGraphique.hxx Point.hxx
Point.o: Point.cc Point.hxx
mainNC.o: mainNC.cc NombreComplexe.hxx NombreComplexeCartesien.hxx \
 NombreComplexePolaire.hxx
mainOG.o: mainOG.cc ObjetGraphique.hxx Point.hxx Cercle.hxx Ligne.hxx
