]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/calendar/makefile.unx
don't try to remove -g flag from CFLAGS, it is not necessary and doesn't work correct...
[wxWidgets.git] / samples / calendar / makefile.unx
index b2329a8c3c87ef4d0b9793a66e3594b27ae025f8..17fbe094e6d4b200d4b7687daaabcbc3dea1abae 100644 (file)
@@ -1,7 +1,7 @@
 # Purpose: makefile for calendar example (Unix)
 # Created: 2000-01-03
 
 # Purpose: makefile for calendar example (Unix)
 # Created: 2000-01-03
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = calendar
 
 
 PROGRAM = calendar
 
@@ -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)