]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/embedded/makefile.unx
Add support for Metrowerks compilers.
[wxWidgets.git] / wxPython / samples / embedded / makefile.unx
index ab17be9ca02e730492e2ab41b2a8e1b7d5bd59c4..edb8e9e91aaff1fa1bfda06ba8ea3235a4c53e39 100644 (file)
 PROGRAM = embedded
 OBJECTS = $(PROGRAM).o
 
 PROGRAM = embedded
 OBJECTS = $(PROGRAM).o
 
-CXX = $(shell wx-config --cxx)
+#WX_CFG = wx-config
+WX_CFG = wxgtk2ud-2.5-config
+
+EXTRAINC=-I../../include -I/usr/include/python2.3
+EXTRALIB=-L/usr/lib/python2.3/config -lpython2.3
+CXX = $(shell $(WX_CFG) --cxx)
 
 
 .SUFFIXES:     .o .cpp
 
 .cpp.o :
 
 
 .SUFFIXES:     .o .cpp
 
 .cpp.o :
-       $(CXX) -c `wx-config --cxxflags` -o $@ $<
+       $(CXX) -c -g `$(WX_CFG) --cxxflags` $(EXTRAINC) -o $@ $<
 
 all:    $(PROGRAM)
 
 $(PROGRAM):    $(OBJECTS)
 
 all:    $(PROGRAM)
 
 $(PROGRAM):    $(OBJECTS)
-       $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+       $(CXX) -g -o $(PROGRAM) $(OBJECTS) `$(WX_CFG) --libs` $(EXTRALIB)
 
 clean:
        rm -f *.o $(PROGRAM)
 
 clean:
        rm -f *.o $(PROGRAM)