MF= Makefile # Use this line for the native IBM OpenGL LIBS= -lGL -lGLU -lglut -lXmu -lX11 -lm # Use these lines for the portable Mesa OpenGL implementation #INCGL= -I/usr/local/packages/mesa/mesa6.2/include #LIBGL= -L/usr/local/packages/mesa/mesa6.2/lib #LIBS= -lMesaGL -lMesaGLU -lMesaglut -lXmu -lX11 -lm CC= xlc_r CFLAGS= -q64 -O3 $(INCGL) LFLAGS= $(CFLAGS) $(LIBGL) EXE= ogltest SRC= \ ogltest.c # # No need to edit below this line # .SUFFIXES: .SUFFIXES: .c .o OBJ= $(SRC:.c=.o) .c.o: $(CC) $(CFLAGS) -c $< all: $(EXE) $(EXE): $(OBJ) $(CC) $(LFLAGS) -o $@ $(OBJ) $(LIBS) $(OBJ): $(MF) tar: tar cvf $(EXE).tar $(MF) $(SRC) clean: rm -f $(OBJ) $(EXE) core