CC = gcc # libraries required to compile opengl/glut programs may be system-dependent # this is a setup for a typical install of redhat 9 LIBOPT = -L/usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lXi -lX11 -lm OPTS = -Wall -O3 all : prj prj : main.o $(CC) -o proj3 $(OPTS) main.o $(LIBOPT) main.o : main.cpp Makefile $(CC) $(OPTS) -I/usr/X11R6/include -c main.cpp clean: rm proj3 *.o