CC=g++ COMMUN=../commun/ CFLAGS=-I$(COMMUN) -I/usr/local/prog3d/include LDFLAGS=-L/usr/local/prog3d/lib -lGL -lglut -lGLU -L/usr/X11R6/lib -lX11 -lXi -lXmu -lm -ljpeg -lIL TARGET= coupe.cpp $(COMMUN)sgi.cpp $(COMMUN)glm.cpp $(COMMUN)trackball.cpp OBJ= $(TARGET:.cpp=.o) all: coupe coupe: $(OBJ) $(CC) -o $@ $^ $(LDFLAGS) %.o: %.c $(CC) -o $@ -c $< $(CFLAGS) %.o: %.cpp $(CC) -o $@ -c $< $(CFLAGS)