]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/grid/makefile.unx
Changes for wxOGL since wxFatalError has been deprecated.
[wxWidgets.git] / samples / grid / makefile.unx
index 7c445357a66c61d9a57bc1dc0db8b557df0559c2..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 --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)