]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dnd/makefile.unx
added missing includes required for CW8 Carbon compilation
[wxWidgets.git] / samples / dnd / makefile.unx
index 362470118708fefa2f2cc7d673d2d7104a31f65e..fbb90b2456160698ae8616b95235f8a47fdfadf4 100644 (file)
@@ -15,7 +15,7 @@
 
 PROGRAM = dnd
 
-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 --cxxflags` -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)