PYROOT=/usr INSTALLROOT=/usr SRCLIB=$(PYROOT)/lib/python2.2/config/libpython2.2.a build: $(SRCLIB) mkdir -p scratch (cd scratch; ar x $(PYROOT)/lib/python2.2/config/libpython2.2.a) (cd scratch; g++ -shared -o libpython2.2.so -lpthread -lutil -ldl *.o) install: scratch/libpython2.2.so mkdir -p $(INSTALLROOT)/lib/python2.2/config install -m 755 scratch/libpython2.2.so $(INSTALLROOT)/lib install -m 755 scratch/libpython2.2.so $(INSTALLROOT)/lib/python2.2/config