]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/isosurf/makefile.unx
added raw key code and flags support (based on patch from Bryce Denney)
[wxWidgets.git] / samples / opengl / isosurf / makefile.unx
index 86c4c5a6a4643040dc2baabfd2bf28749ac5c472..c0bce399417ff4517176aa6a482af8dda03fef15 100644 (file)
@@ -15,7 +15,7 @@ OPENGL_LIBS=-lGL -lGLU
 
 PROGRAM=isosurf
 
 
 PROGRAM=isosurf
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 OBJECTS = $(PROGRAM).o
 
 
 OBJECTS = $(PROGRAM).o
 
@@ -24,12 +24,12 @@ OBJECTS = $(PROGRAM).o
 .SUFFIXES:     .o .cpp
 
 .cpp.o :
 .SUFFIXES:     .o .cpp
 
 .cpp.o :
-       $(CC) -c `wx-config --cflags` -o $@ $<
+       $(CXX) -c `wx-config --cxxflags` -o $@ $<
 
 all: $(PROGRAM) isosurf.dat
 
 $(PROGRAM):    $(OBJECTS)
 
 all: $(PROGRAM) isosurf.dat
 
 $(PROGRAM):    $(OBJECTS)
-       $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
+       $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS)
 
 clean: 
        rm -f *.o $(PROGRAM)
 
 clean: 
        rm -f *.o $(PROGRAM)