summaryrefslogtreecommitdiffstats
path: root/cython/Makefile.am
blob: 20618d72f4a4a7fbeca46366b429628fe1261a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
AM_CPPFLAGS = -I$(top_srcdir)/include

AM_CFLAGS = $(GLOBAL_CFLAGS)
AM_LDFLAGS = $(GLOBAL_LDFLAGS)

EXTRA_DIST = \
	plist.pyx \
	plist.pxd

if HAVE_CYTHON

BUILT_SOURCES = plist.c

PXDINCLUDES = \
	plist.pxd \
	$(CYTHON_PLIST_INCLUDE_DIR)/plist.pxd

CLEANFILES = \
	*.pyc \
	*.pyo \
	plist.c

plistdir = $(pyexecdir)
plist_LTLIBRARIES = plist.la
plist_la_SOURCES = \
	plist_util.c \
	plist_util.h \
	plist.pyx

plist_la_CFLAGS = \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/src \
	$(PYTHON_CPPFLAGS) \
	$(AM_CFLAGS) \
	-Wno-shadow \
	-Wno-redundant-decls \
	-Wno-switch-default \
	-Wno-strict-aliasing \
	-Wno-implicit-function-declaration \
	-fvisibility=default

plist_la_LDFLAGS = -module -avoid-version $(PYTHON_LIBS) $(AM_LDFLAGS) -no-undefined
plist_la_LIBADD = $(top_builddir)/src/libplist-2.0.la

plist.c: plist.pyx $(PXDINCLUDES) $(PXIINCLUDES)

.pyx.c:
	$(CYTHON) -I$(CYTHON_PLIST_INCLUDE_DIR) -I$(top_srcdir)/src -o $@ $<

pxddir = $(includedir)/plist/cython
pxd_DATA = plist.pxd

endif