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