mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-02-09 03:56:17 +00:00
Fixed a couple more of python building problems, Daniel
This commit is contained in:
parent
6327697c52
commit
96c9af76e7
@ -1,12 +1,15 @@
|
||||
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
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <Python.h>
|
||||
|
||||
#include <libxml/xmlversion.h>
|
||||
#include <libxml/xmlmemory.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user