]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/event/makefile.unx
made operator==() and \!=() const (still doesn't make them correct probably)
[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
 
 # Purpose: makefile for event example (Unix)
 # Created: 2001-01-31
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = event
 
 
 PROGRAM = event
 
@@ -12,12 +12,12 @@ OBJECTS = $(PROGRAM).o
 .SUFFIXES:     .o .cpp
 
 .cpp.o :
 .SUFFIXES:     .o .cpp
 
 .cpp.o :
-       $(CC) -c `wx-config --cxxflags` -o $@ $<
+       $(CXX) -c `wx-config --cxxflags` -o $@ $<
 
 all:    $(PROGRAM)
 
 $(PROGRAM):    $(OBJECTS)
 
 all:    $(PROGRAM)
 
 $(PROGRAM):    $(OBJECTS)
-       $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+       $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 
 clean:
        rm -f *.o $(PROGRAM)
 
 clean:
        rm -f *.o $(PROGRAM)