X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b089c5e8c8a2140258d150ca1ce42afd3b79e1b..8916d00747c8e7b704ad549afcd8d0f88b6d861e:/samples/opengl/penguin/makefile.unx?ds=sidebyside diff --git a/samples/opengl/penguin/makefile.unx b/samples/opengl/penguin/makefile.unx index c8d335c1bf..778d905184 100644 --- a/samples/opengl/penguin/makefile.unx +++ b/samples/opengl/penguin/makefile.unx @@ -7,15 +7,27 @@ # # Makefile for penguin example (UNIX). -PROGRAM=penguin +OPENGL_LIBS=-lGL -lGLU +#if you have old Mesa, try this: +#OPENGL_LIBS=-lMesaGL -lMesaGLU -OPENGLHOME=/home/jacs/mesa/Mesa-2.3 +CPP = g++ +CXX = $(shell wx-config --cxx) -EXTRACPPFLAGS=-I$(OPENGLHOME)/include # -I../../motif -EXTRALDFLAGS=-L$(OPENGLHOME)/lib -EXTRALDLIBS=-lMesaGL -lMesaGLU +Penguin: penguin.o trackball.o lw.o + $(CPP) -o Penguin \ + penguin.o trackball.o lw.o \ + `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS) -OBJECTS=$(PROGRAM).o trackball.o lw.o +penguin.o: penguin.cpp + $(CPP) `wx-config --cxxflags` -I../../gtk -c penguin.cpp -include ../../../src/makeprog.env +lw.o: lw.cpp + $(CPP) `wx-config --cxxflags` -I../../gtk -c lw.cpp + +trackball.o: trackball.c + $(CXX) `wx-config --cxxflags` -I../../gtk -c trackball.c + +clean: + rm -f *.o Penguin