CC=g++ COMMUN=../commun/ CFLAGS=-I$(COMMUN) -I/usr/local/prog3d/include -I/usr/local/prog3d/swMesa LDFLAGS=-L/usr/local/prog3d/lib -lGL -lglut -lGLU -L/usr/X11R6/lib -lX11 -lXi -lXmu -lm -lIL TARGET= main.cpp travail.cpp $(COMMUN)algebre.cpp $(COMMUN)facet.cpp $(COMMUN)parser.cpp $(COMMUN)parserOBJ.cpp $(COMMUN)trackball.cpp OBJ= $(TARGET:.cpp=.o) all: evidence evidence: $(OBJ) $(CC) -o $@ $^ $(LDFLAGS) %.o: %.c $(CC) -o $@ -c $< $(CFLAGS) %.o: %.cpp $(CC) -o $@ -c $< $(CFLAGS)