]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialogs/makefile.unx
don't define _puttchar ourselves when using newest mingw runtime
[wxWidgets.git] / samples / dialogs / makefile.unx
index 9c9fb558689eb4745b5890cba4dedb3b6e6c97f8..c9be335bcb111dc0df141dba2ea3fbcac4b10a5b 100644 (file)
@@ -15,7 +15,7 @@
 
 PROGRAM = dialogs
 
-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)