# path to GLUT and GL GLUTROOT = GLROOT = /usr/local # flags for C compiler # glut under $(GLROOT) # -g to enable debugging info CFLAGS = -I$(GLUTROOT)/include -I$(GLROOT)/include -g -Wall -DGL_GLEXT_PROTOTYPES # flags for C++ compiler -- same as C compiler so C++ can find includes CXXFLAGS = $(CFLAGS) # where to find libraries # -L to find when linking and # -rpath to find shared libraries at run-time LDFLAGS = -L$(GLUTROOT)/lib -L$(GLROOT)/lib \ -Wl,-rpath,$(GLUTROOT)/lib,-rpath,$(GLROOT)/lib # names of libraries to use: # glut for cross-platform window creation and interaction # GLU for a set of utilities for GL (some of which are used by GLUT) # GL for OpenGL itself LDLIBS = -lglut -lGLU -lGL -lm -lpthread