]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/isosurf/makefile.unx
added wxEncodingToCodepage() and implemented it properly (using in32 API instead...
[wxWidgets.git] / samples / opengl / isosurf / makefile.unx
index 1cdd977f444436bbd9c7034d61f91f95e8db1180..c0bce399417ff4517176aa6a482af8dda03fef15 100644 (file)
@@ -15,7 +15,7 @@ OPENGL_LIBS=-lGL -lGLU
 
 PROGRAM=isosurf
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 OBJECTS = $(PROGRAM).o
 
@@ -24,12 +24,12 @@ OBJECTS = $(PROGRAM).o
 .SUFFIXES:     .o .cpp
 
 .cpp.o :
-       $(CC) -c `wx-config --cxxflags` -o $@ $<
+       $(CXX) -c `wx-config --cxxflags` -o $@ $<
 
 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)