X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c661ecca60bd71a6d4561425da832cb9e0b30d67..af035b26c422255f23cbc06d0af5ea7aa72696ee:/samples/opengl/cube/makefile.unx?ds=sidebyside diff --git a/samples/opengl/cube/makefile.unx b/samples/opengl/cube/makefile.unx index afa6121f6f..f40497b3e5 100644 --- a/samples/opengl/cube/makefile.unx +++ b/samples/opengl/cube/makefile.unx @@ -9,6 +9,10 @@ # # Makefile for cube example (UNIX). +OPENGL_LIBS=-lGL -lGLU +#if you have old Mesa, try this: +#OPENGL_LIBS=-lMesaGL -lMesaGLU + PROGRAM=cube CC = gcc @@ -25,7 +29,7 @@ OBJECTS = $(PROGRAM).o all: $(PROGRAM) $(PROGRAM): $(OBJECTS) - $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl -lMesaGL -lMesaGLU + $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS) clean: rm -f *.o $(PROGRAM)