CC = g++ XLIBS = -L/usr/lib/X11 -LXext -lXmu -lXi -lX11 GLLIBS = -lGL -lGLU -lglut -L/usr/include/GL GLINC = -I/usr/include LIBS = -L/usr/lib -L/usr/local/lib # Note that there is a TAB before the '$(CC)' below. Also, it is dash-oh-three, # # not dash-zero-three that you see below (ie. -O3, not -03). The 'O' is for # # specifying optimization level of the generated binary. Eg. see # # http://www.redhat.com/en_us/USA/home/gnupro/technicaldetails/gccoptimization/ # # and # # http://gcc.gnu.org/onlinedocs/gcc-3.0/gcc_32.html#op_O all: $(CC) Camera.cpp Cubes.cpp Geometry.cpp Light.cpp ObjectInScene.cpp Tetrahedron.cpp Project4.cpp -O3 -o myPgm $(XLIBS) $(GLLIBS) $(GLINC) $(LIBS)