--- Makefile.orig Fri Dec 14 18:55:38 2001 +++ Makefile Fri Dec 14 18:59:07 2001 @@ -0,0 +1,18 @@ +PYTHON_INCLUDES=-I$(LOCALBASE)/include/python$(PYTHON_VER) + +all: bg5pdflib.so + +bg5pdflib.so: bg5pdflib.o + $(CC) -shared bg5pdflib.o -L$(LOCALBASE)/lib -lpdf -lz -o $@ + +.c.o: + $(CC) $(CFLAGS) -fPIC $(PYTHON_INCLUDES) -I$(LOCALBASE)/include -c $< + +install: + mkdir -p $(DESTDIR)/$(LOCALBASE)/lib/python$(PYTHON_VER)/site-packages + install -m 755 -o root -g bin bg5pdf $(DESTDIR)/$(LOCALBASE)/bin + install -m 644 -o root -g bin bg5pdflib.so \ + $(DESTDIR)/$(LOCALBASE)/lib/python$(PYTHON_VER)/site-packages + +clean: + rm -f *.o bg5pdflib.so