]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/makefile.unx
fixed typo in wxString::swap() which was completely broken
[wxWidgets.git] / samples / controls / makefile.unx
index ebf2d915758ce9851118d322cbe3be62eeca98db..6519d521e39013b7980899af0b25407eda7e5292 100644 (file)
@@ -15,7 +15,7 @@
 
 PROGRAM = controls
 
-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`
+       $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 
 clean: 
        rm -f *.o $(PROGRAM)