]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dragimag/makefile.unx
In destructor: DestroyChildren() and make sure m_cocoaNSView is NULL so that
[wxWidgets.git] / samples / dragimag / makefile.unx
index 7022f314df5249c26c5ce528d6afc64ca81a64b0..ad7cf511b2584ab9856c141fb32eb3917cef5949 100644 (file)
@@ -1,7 +1,7 @@
 # Purpose: makefile for dragimag example (Unix)
 # Created: 2000-03-15
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = dragimag
 
@@ -12,12 +12,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)