]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/event/makefile.unx
fixed bug with the caret positioning after SetValue() introduced by the last commit
[wxWidgets.git] / samples / event / makefile.unx
index 5062d4f617db4fa625fef74dcb1ceeecb6353f1a..c31b23c009fcc7518b1b424f0d61d3c2f09db968 100644 (file)
@@ -1,7 +1,7 @@
 # Purpose: makefile for event example (Unix)
 # Created: 2001-01-31
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = event
 
@@ -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)