]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/minifram/makefile.unx
ugh. Nesting the (per class) plugin sentries can require them to
[wxWidgets.git] / samples / minifram / makefile.unx
index 1dc2872c4da3bb3c2f5f410a6a2a38119414ba44..82971a6310da93dc4af706bc7ff22a629f43036e 100644 (file)
@@ -1,7 +1,7 @@
 # Purpose: makefile for minifram example (Unix)
 # Created: 2000-03-15
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = minifram
 
@@ -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)