2 # Sample makefile for compiling OpenGL/Mesa applications on Unix.
3 # This example assumes Linux with gcc.
5 # This makefile is in the public domain
7 # Revision 1.1 1999/08/19 00:55:42 jtg
10 # Revision 1.1 1999/02/24 05:20:45 brianp
17 CFLAGS = -c -g -ansi -pedantic -Wall
19 INCDIRS = -I. -I../include
21 LIBDIRS = -L../lib -L/usr/X11/lib
23 LIBS = -lglut -lMesaGLU -lMesaGL -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lm
35 $(CC) $(CFLAGS) $(INCDIRS) $< -o $@
43 $(CC) $(OBJECTS) $(LIBDIRS) $(LIBS) -o $@