X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b089c5e8c8a2140258d150ca1ce42afd3b79e1b..1b48afd23db9e8b5bfac8323c292b08f8f9f2e0e:/samples/opengl/penguin/makefile.unx diff --git a/samples/opengl/penguin/makefile.unx b/samples/opengl/penguin/makefile.unx index c8d335c1bf..bc26127d08 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 +CC = $(shell wx-config --cc) +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 + $(CXX) -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 + $(CXX) `wx-config --cxxflags` -I../../gtk -c penguin.cpp -include ../../../src/makeprog.env +lw.o: lw.cpp + $(CXX) `wx-config --cxxflags` -I../../gtk -c lw.cpp + +trackball.o: trackball.c + $(CC) `wx-config --cflags` -I../../gtk -c trackball.c + +clean: + rm -f *.o Penguin