# 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 XINCSEARCH = -I/usr/X11R6/include -I/usr/include/Motif1.2 -I/usr/local/include -I$(INCLUDEDIR)/GL XLIBSEARCH = -L/usr/X11R6/lib -L/usr/local/lib/Motif1.2 SEARCH = ${XINCSEARCH} ${XLIBSEARCH} CC = cc LDLIBS = -lglut -lMesaGLU -lMesaGL -lXmu -lXext -lXi -lXext -lX11 -lm .c: $(CC) $@.c $(LDLIBS) -o $@ ${SEARCH}