# This sample Makefile allows you to make an OpenGL application # whose source is exactly one .c file. # # # To use this Makefile, you type: # # make xxxx # # where # xxxx.c is the name of the file you wish to compile # # A binary named xxxx will be produced # Libraries are assumed to be in the default search paths # as are any required include files CC = cc DEBUG = -ggdb #LDLIBS = -I/usr/X11R6/include -L/usr/X11R6/lib -lglut -lGL -lGLU -lXmu -lXext -lX11 -lXt -lXi -lSM -lICE -lm LDLIBS = -L/usr/X11R6/lib -lglut -lGL -lGLU -lXmu -lXext -lX11 -lXt -lXi -lSM -lICE -lm .c: $(CC) $@.c $(LDLIBS) $(DEBUG) -o $@