]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/event/makefile.unx
corrected GetBestSize() implementation: take all items, not just the currently visibl...
[wxWidgets.git] / samples / event / makefile.unx
index f2e963d8ae82c48984bf13a8fb9bad47d6b676fd..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 --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)