# Makefile for OpenGL programs # Written by: Grant Macklem # Date: January 6, 2000 # Compilier settings CXX = g++ # Set the following variable to the name of your GL and GLU library. Note # that "lib" will automatically be prepended and ".a" will be appended. GLLIB = GL GLULIB = GLU # Set this variable to the location of your X11 libraries XLIB = /usr/X11/lib EXECUTABLES = pyramid OBJECTS = EXPENDABLES = $(EXECUTABLES) $(OBJECTS) LFLAGS = -lglut -l$(GLLIB) -l$(GLULIB) -L$(XLIB) -lX11 -lXmu -lXi -lXext -lm CFLAGS = -gstabs -Wall -O3 # $< is the name of the first dependency (pyramid.cxx in this case) # $@ is the name of the target of the rule (pyramid in this case) pyramid: pyramid.cxx $(CXX) $(CFLAGS) $< $(LFLAGS) -o $@ clean: rm -f $(EXPENDABLES) all: @make $(EXECUTABLES)