summaryrefslogtreecommitdiffstats
path: root/cython/Makefile.am
blob: 3577c4ebd38170a93d21cba40501e1c5f2dbe319 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
AM_CPPFLAGS = \
	-I$(top_srcdir)/include

AM_CFLAGS = \
	$(GLOBAL_CFLAGS) \
	$(libgnutls_CFLAGS) \
	$(libtasn1_CFLAGS) \
	$(openssl_CFLAGS) \
	$(libplist_CFLAGS) \
	$(LFS_CFLAGS) \
	$(PTHREAD_CFLAGS)

AM_LIBS = \
	$(libgnutls_LIBS) \
	$(libtasn1_LIBS) \
	$(openssl_LIBS) \
	$(libplist_LIBS) \
	$(PTHREAD_LIBS)

if HAVE_CYTHON

BUILT_SOURCES = imobiledevice.c
PXDINCLUDES = \
	imobiledevice.pxd \
	$(CYTHON_PLIST_INCLUDE_DIR)/plist.pxd

PXIINCLUDES = \
	lockdown.pxi \
	mobilesync.pxi \
	notification_proxy.pxi \
	sbservices.pxi \
	mobilebackup.pxi \
	mobilebackup2.pxi \
	afc.pxi \
	file_relay.pxi \
	screenshotr.pxi \
	installation_proxy.pxi \
	webinspector.pxi \
	heartbeat.pxi \
	diagnostics_relay.pxi \
	misagent.pxi \
	house_arrest.pxi \
	restore.pxi \
	mobile_image_mounter.pxi \
	debugserver.pxi

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

EXTRA_DIST = \
	imobiledevice.pyx \
	imobiledevice.pxd \
	$(PXIINCLUDES)

imobiledevicedir = $(pyexecdir)
imobiledevice_LTLIBRARIES = imobiledevice.la
imobiledevice_la_SOURCES = imobiledevice.pyx
imobiledevice_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 \
	$(CYTHON_CFLAGS)

imobiledevice_la_LDFLAGS = \
	-module \
	-avoid-version \
	-L$(libdir) \
	$(PYTHON_LIBS) \
	$(AM_LIBS) \
	-no-undefined

imobiledevice_la_LIBADD = $(top_builddir)/src/libimobiledevice-1.0.la

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

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

endif