# This sample Makefile allows you to make a OpenGL application # whose source is exactly one .c file. # # # To use this Makefile, you must type: # # make PROG=xxxx # ---- # where # xxxx.c is the name of the file you wish to compile, or # ---- CC = gcc LDLIBS = -I/usr/include/ -L/usr/lib/ -L/usr/X11R6/lib -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm -lpthread executable: $(CC) $(PROG).c \ $(LDLIBS) -o $(PROG)