diff options
Diffstat (limited to 'cython/Makefile.am')
-rw-r--r-- | cython/Makefile.am | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cython/Makefile.am b/cython/Makefile.am new file mode 100644 index 0000000..1dc8a00 --- /dev/null +++ b/cython/Makefile.am @@ -0,0 +1,31 @@ +AM_CPPFLAGS = -I$(top_srcdir)/include + +AM_CFLAGS = $(GLOBAL_CFLAGS) $(libxml2_CFLAGS) +AM_LDFLAGS = $(libxml2_LIBS) + +if HAVE_CYTHON + +BUILT_SOURCES = plist.c +PXDINCLUDES = plist.pxd $(CYTHON_PLIST_INCLUDE_DIR)/plist.pxd +PXIINCLUDES = + +CLEANFILES = \ + *.pyc \ + *.pyo \ + plist.c + +EXTRA_DIST = plist.pyx plist.pxd $(PXIINCLUDES) + +plistdir = $(pyexecdir) +plist_LTLIBRARIES = plist.la +plist_la_SOURCES = plist_util.c plist_util.h plist.pyx +plist_la_CFLAGS = -I../include -I../src $(PYTHON_CPPFLAGS) $(AM_CFLAGS) -Wno-shadow -Wno-redundant-decls -Wno-switch-default -Wno-strict-aliasing -Wno-implicit-function-declaration +plist_la_LDFLAGS = -module -avoid-version -L$(libdir) $(PYTHON_LDFLAGS) $(AM_LDFLAGS) +plist_la_LIBADD = ../src/libplist.la + +plist.c: plist.pyx $(PXDINCLUDES) $(PXIINCLUDES) + +.pyx.c: + $(CYTHON) -I$(CYTHON_PLIST_INCLUDE_DIR) -I$(top_srcdir)/src -o $@ $< + +endif |