]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/erase/makefile.unx
removed Julian's hack that is no longer needed after wxBitmap stubs were added even...
[wxWidgets.git] / samples / erase / makefile.unx
index 1e82bd01d4741a45b3eecbaec813c4831065618a..653c324fe5186868e1126ed0b05fe79b76a0a007 100644 (file)
@@ -13,7 +13,7 @@
 # under Linux.
 #
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = erase
 
@@ -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)