X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b089c5e8c8a2140258d150ca1ce42afd3b79e1b..6ce8b8484654b5ab073951373c93d9bdd8221881:/samples/opengl/cube/makefile.unx?ds=inline diff --git a/samples/opengl/cube/makefile.unx b/samples/opengl/cube/makefile.unx index ecf313ff33..6c2b07cdc1 100644 --- a/samples/opengl/cube/makefile.unx +++ b/samples/opengl/cube/makefile.unx @@ -9,15 +9,27 @@ # # Makefile for cube example (UNIX). +OPENGL_LIBS=-lGL -lGLU +#if you have old Mesa, try this: +#OPENGL_LIBS=-lMesaGL -lMesaGLU + PROGRAM=cube -OPENGLHOME=/home/jacs/mesa/Mesa-2.3 +CXX = $(shell wx-config --cxx) + +OBJECTS = $(PROGRAM).o + +# implementation + +.SUFFIXES: .o .cpp -EXTRACPPFLAGS=-I$(OPENGLHOME)/include -EXTRALDFLAGS=-L$(OPENGLHOME)/lib -EXTRALDLIBS=-lMesaGL -lMesaGLU +.cpp.o : + $(CXX) -c `wx-config --cxxflags` -o $@ $< -OBJECTS=$(PROGRAM).o +all: $(PROGRAM) -include ../../../src/makeprog.env +$(PROGRAM): $(OBJECTS) + $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS) +clean: + rm -f *.o $(PROGRAM)