X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c661ecca60bd71a6d4561425da832cb9e0b30d67..4e1c35f810f574af79e649fa37171dfa7fc775ee:/samples/opengl/isosurf/makefile.unx diff --git a/samples/opengl/isosurf/makefile.unx b/samples/opengl/isosurf/makefile.unx index fbb993eb4c..c0bce39941 100644 --- a/samples/opengl/isosurf/makefile.unx +++ b/samples/opengl/isosurf/makefile.unx @@ -9,9 +9,13 @@ # # Makefile for isosurf example (UNIX). +OPENGL_LIBS=-lGL -lGLU +#if you have old Mesa, try this: +#OPENGL_LIBS=-lMesaGL -lMesaGLU + PROGRAM=isosurf -CC = gcc +CXX = $(shell wx-config --cxx) OBJECTS = $(PROGRAM).o @@ -20,12 +24,12 @@ OBJECTS = $(PROGRAM).o .SUFFIXES: .o .cpp .cpp.o : - $(CC) -c `wx-config --cflags` -o $@ $< + $(CXX) -c `wx-config --cxxflags` -o $@ $< all: $(PROGRAM) isosurf.dat $(PROGRAM): $(OBJECTS) - $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl -lMesaGL -lMesaGLU + $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS) clean: rm -f *.o $(PROGRAM)