File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # # This one is important to get right ...
2- # # We need to link in the libxml2mod.so file from here
3- PYLIBDIR := /usr/lib64/python2.5/site-packages
4- PYLIBDIR := /usr/lib/python-support/python-libxml2/python2.5
5-
6- # Defaults, should be fine
7- CFLAGS =-I. $(shell xml2-config --cflags) -g -Wall $(shell python-config --cflags)
8-
9- LIBS =$(shell xml2-config --libs) -lxml2mod $(shell python-config --libs)
10- LIBDIR =-L $(PYLIBDIR )
11-
12- .SUFFIX =.c .o .so
13-
14- all : test
15-
16- demomodule.so : demo.o dmixml.o
17- @echo " Linking: $@ "
18- @gcc -fPIC --shared -o $@ $^ $(LIBS ) $(LIBDIR )
19-
20- .c.o :
21- @echo " Compiling $<"
22- @gcc -fPIC -c $< $(CFLAGS )
23-
24- # test : demomodule.so
251test :
26- @echo " =========================================="
27- @echo " Running proof-of-concept code"
28- @echo " =========================================="
29- @echo " "
30- @python unit
2+ python unit
313
324clean :
335 rm -f * .{py[oc],o,so} * ~
Load diff This file was deleted.
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments