]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/opengl/cube/makefile.unx
fixed bug with the caret positioning after SetValue() introduced by the last commit
[wxWidgets.git] / samples / opengl / cube / makefile.unx
index f40497b3e5e0a5b4e95c49aba8a4f13b18312a6b..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 --cflags` -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)