X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d26a7e65f67f9388e5643605cec1605212ea3a9..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/samples/embedded/makefile.unx diff --git a/wxPython/samples/embedded/makefile.unx b/wxPython/samples/embedded/makefile.unx index df4f369f9e..01fda2bb5e 100644 --- a/wxPython/samples/embedded/makefile.unx +++ b/wxPython/samples/embedded/makefile.unx @@ -12,20 +12,23 @@ PROGRAM = embedded OBJECTS = $(PROGRAM).o -EXTRAINC=-I../../src -I/usr/include/python2.2 -EXTRALIB=-L/usr/lib/python2.2/config -lpython2.2 -CXX = $(shell wx-config --cxx) +WX_CFG = wx-config +PYVER = 2.4 + +EXTRAINC=-I../../include -I/usr/include/python$(PYVER) +EXTRALIB=-L/usr/lib/python$(PYVER)/config -lpython$(PYVER) +CXX = $(shell $(WX_CFG) --cxx) .SUFFIXES: .o .cpp .cpp.o : - $(CXX) -c `wx-config --cxxflags` $(EXTRAINC) -o $@ $< + $(CXX) -c -g `$(WX_CFG) --cxxflags` $(EXTRAINC) -o $@ $< all: $(PROGRAM) $(PROGRAM): $(OBJECTS) - $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` $(EXTRALIB) + $(CXX) -g -o $(PROGRAM) $(OBJECTS) `$(WX_CFG) --libs` $(EXTRALIB) clean: rm -f *.o $(PROGRAM)