6 # Copyright: (c) 1998 Julian Smart
10 # Makefile for cube example (UNIX).
12 OPENGL_LIBS=-lGL -lGLU
13 #if you have old Mesa, try this:
14 #OPENGL_LIBS=-lMesaGL -lMesaGLU
18 CXX = $(shell wx-config --cxx)
20 OBJECTS = $(PROGRAM).o
27 $(CXX) -c `wx-config --cxxflags` -o $@ $<
31 $(PROGRAM): $(OBJECTS)
32 $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)