]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/grid/makefile.unx
ugh. Nesting the (per class) plugin sentries can require them to
[wxWidgets.git] / samples / grid / makefile.unx
index a80a6ec93e24c8fee339d7e8924f99b77ad8b357..b0bb5f0ebe71efc9ef8b4e3c7406a950372a1684 100644 (file)
@@ -1,7 +1,7 @@
 # Purpose: makefile for grid example (Unix)
 # Created: 2000-03-15
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = grid
 
@@ -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)