-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)