]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/memcheck/makefile.unx
Fix for when Set is called with wxSameAs to behave just like calling SameAs()
[wxWidgets.git] / samples / memcheck / makefile.unx
index e43e74d7b4dd3053469d94da5f46c85e8bd3da69..6e8605e394c9da8141d0ab8c218987ac5a093c76 100644 (file)
@@ -13,7 +13,7 @@
 # under Linux.
 #
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = memcheck
 
@@ -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`
+       $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 
 clean: 
        rm -f *.o $(PROGRAM)