Commit 96c9af76 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Fixed a couple more of python building problems, Daniel

parent 6327697c
LIBS=-L../.libs -L..
LIBS=-L../.libs -L.. $(XML_LIBS)
INCLUDES=-I$(PYTHON_INCLUDES) -I$(top_srcdir)/include
SHCFLAGS=$(INCLUDES) -Wall -fPIC
LINK_FLAGS= $(LIBS) -shared -lxml2
LINK_FLAGS= -shared
if WITH_PYTHON
all: _libxml.so
all: _libxml.so libxml2.py
libxml2.py: libxml.py libxml2class.py
cat libxml.py libxml2class.py > libxml2.py
_libxml.so: libxml.o libxml2-py.o
$(CC) $(LINK_FLAGS) libxml2-py.o libxml.o -o _libxml.so
$(CC) $(LINK_FLAGS) libxml2-py.o libxml.o $(LIBS) -o _libxml.so
else
all:
endif
......@@ -28,4 +31,4 @@ $(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
cd $(srcdir) && $(PYTHON) $(GENERATE)
clean:
rm -f $(GENERATED) *.o _libxml.so
rm -f $(GENERATED) *.o _libxml.so *.pyc
#include <Python.h>
#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment