# This sample Makefile allows you to make a OpenGL application # whose source is exactly one .c file. # this works on lin313-01 through lin313-10 # # # To use this Makefile, you must type: # # make xxxx # ---- # where # xxxx.c is the name of the file you wish to compile, or # ---- CC = gcc CFLAGS = -g -c PROG = all ALL = bufftstA.o bufftstB.o LDLIBS = -L/usr/X11R6/lib -lglut -lGL -lGLU -lXi -lXmu -lXext -lX11 -lm INCLUDE = .c.o: $(CC) $(CFLAGS) $*.c executable: $(ALL) $(CC) -o bftst -g $(ALL) $(INCLUDE) $(LDLIBS)