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