]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/cube/makefile.unx
compate charset names case-insensitively in GetEncodingFromName()
[wxWidgets.git] / samples / opengl / cube / makefile.unx
index b68dbefcf4e49cc25bc49167c89a4c4b4010d22c..6c2b07cdc10cd4087d6e94e192380a7eceacc20b 100644 (file)
@@ -15,7 +15,7 @@ OPENGL_LIBS=-lGL -lGLU
 
 PROGRAM=cube
 
-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)
 
 $(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)