X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b089c5e8c8a2140258d150ca1ce42afd3b79e1b..8a721b35f6aa9265584aba421f2d5c0065fe3c86:/samples/opengl/cube/makefile.unx diff --git a/samples/opengl/cube/makefile.unx b/samples/opengl/cube/makefile.unx index ecf313ff33..afa6121f6f 100644 --- a/samples/opengl/cube/makefile.unx +++ b/samples/opengl/cube/makefile.unx @@ -11,13 +11,21 @@ PROGRAM=cube -OPENGLHOME=/home/jacs/mesa/Mesa-2.3 +CC = gcc -EXTRACPPFLAGS=-I$(OPENGLHOME)/include -EXTRALDFLAGS=-L$(OPENGLHOME)/lib -EXTRALDLIBS=-lMesaGL -lMesaGLU +OBJECTS = $(PROGRAM).o -OBJECTS=$(PROGRAM).o +# implementation -include ../../../src/makeprog.env +.SUFFIXES: .o .cpp +.cpp.o : + $(CC) -c `wx-config --cflags` -o $@ $< + +all: $(PROGRAM) + +$(PROGRAM): $(OBJECTS) + $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl -lMesaGL -lMesaGLU + +clean: + rm -f *.o $(PROGRAM)