File: Makefile.am

package info (click to toggle)
kopanocore 8.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 15,400 kB
  • sloc: cpp: 175,422; python: 24,623; perl: 7,319; php: 6,056; sh: 2,172; makefile: 1,294; xml: 45; ansic: 1
file content (187 lines) | stat: -rw-r--r-- 6,214 bytes parent folder | download
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# -*- Makefile -*-

SUBDIRS = include/kopano kopano zarafa

SWIG_CXXFLAGS = -Wall -python -c++ -threads \
	-I${top_srcdir}/common/include -I${top_srcdir}/swig/include \
	-I${srcdir}/include

lib_LTLIBRARIES = libkcpyconv.la libkcpydirector.la
pyexec_LTLIBRARIES = _MAPICore.la _inetmapi.la _icalmapi.la _libfreebusy.la
noinst_LTLIBRARIES = _archiver.la _RecurrenceState.la
noinst_DATA = libkcpyconv.ldd libkcpydirector.ldd \
	_MAPICore.ldd _inetmapi.ldd _icalmapi.ldd \
	_archiver.ldd _libfreebusy.ldd _RecurrenceState.ldd
CLEANFILES = ${noinst_DATA} .*.dep

# disable warnings since code is mostly generated
AM_CPPFLAGS = ${ZCPPFLAGS} \
	-I${top_srcdir}/mapi4linux/include -I${top_srcdir}/provider/common \
	-I${top_srcdir}/common -I${top_srcdir}/m4lcommon \
	${PYTHON_CFLAGS} -I${top_srcdir}/swig -w \
	-DSWIG_PYTHON_OUTPUT_TUPLE -DSWIG_TYPE_TABLE=MAPI
AM_CXXFLAGS = ${ZCXXFLAGS} -fvisibility=default
python_SYFLAGS = -Wl,--version-script=python.sym

libkcpyconv_la_SOURCES = conversion.cpp
libkcpyconv_la_LDFLAGS = ${AM_LDFLAGS} ${python_SYFLAGS${NO_VSYM}} \
	-release ${PYTHON_VERSION}
libkcpyconv_la_LIBADD  = ${PYTHON_LIBS} \
	${top_builddir}/libmapi.la
EXTRA_libkcpyconv_la_DEPENDENCIES = python.sym

libkcpydirector_la_SOURCES = ../director_util.cpp
libkcpydirector_la_LDFLAGS = ${AM_LDFLAGS} ${python_SYFLAGS${NO_VSYM}} \
	-release ${PYTHON_VERSION}
libkcpydirector_la_LIBADD  = -lpthread
EXTRA_libkcpydirector_la_DEPENDENCIES = python.sym

_MAPICore_la_CPPFLAGS = ${AM_CPPFLAGS} -I${top_srcdir}/libsync
_MAPICore_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version
_MAPICore_la_LIBADD = libkcpyconv.la libkcpydirector.la \
	${top_builddir}/libmapi.la \
	${top_builddir}/libkcutil.la \
	$(XML2_LIBS) $(PYTHON_LIBS)

_inetmapi_la_CPPFLAGS = ${AM_CPPFLAGS} -I${top_srcdir}/inetmapi
_inetmapi_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version
_inetmapi_la_LIBADD = libkcpyconv.la \
	${top_builddir}/libmapi.la \
	${top_builddir}/libkcutil.la \
	${top_builddir}/libkcinetmapi.la \
	$(PYTHON_LIBS)

_icalmapi_la_CPPFLAGS = ${AM_CPPFLAGS} -I${top_srcdir}/libicalmapi \
	-I${top_srcdir}/libfreebusy
_icalmapi_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version
_icalmapi_la_LIBADD = libkcpyconv.la \
	${top_builddir}/libmapi.la \
	${top_builddir}/libkcicalmapi.la \
	${top_builddir}/libkcutil.la \
	${top_builddir}/libkcfreebusy.la \
	$(ICAL_LIBS) $(PYTHON_LIBS)

_archiver_la_CPPFLAGS = ${AM_CPPFLAGS} -I${top_srcdir}/ECtools/archiver
_archiver_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version -rpath '$(libdir)'
_archiver_la_LIBADD = \
	${top_builddir}/libkcarchiver.la \
	${top_builddir}/libkcarchivercore.la \
	$(PYTHON_LIBS)

_RecurrenceState_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version -rpath '$(libdir)'
_RecurrenceState_la_LIBADD = libkcpyconv.la \
	${top_builddir}/libmapi.la \
	${top_builddir}/libkcutil.la \
	$(PYTHON_LIBS)

_libfreebusy_la_CPPFLAGS = ${AM_CPPFLAGS} -I${top_srcdir}/libfreebusy
_libfreebusy_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version
_libfreebusy_la_LIBADD = libkcpyconv.la ${top_builddir}/libmapi.la \
	${top_builddir}/libkcfreebusy.la \
	${top_builddir}/libkcutil.la \
	$(PYTHON_LIBS)


BUILT_SOURCES = mapi_wrap.cxx \
				mapi_wrap.h \
				inetmapi_wrap.cxx \
				icalmapi_wrap.cxx \
				archiver_wrap.cxx \
				libfreebusy_wrap.cxx \
				RecurrenceState_wrap.cxx


CLEANFILES += ${BUILT_SOURCES} \
			 MAPICore.py \
			 inetmapi.py \
			 icalmapi.py \
			 archiver.py \
			 libfreebusy.py

python.sym: ${top_builddir}/config.status

# wait for full output of swig
MAPICore.py: $(BUILT_SOURCES)
inetmapi.py: $(BUILT_SOURCES)
icalmapi.py: $(BUILT_SOURCES)
archiver.py: $(BUILT_SOURCES)
libfreebusy.py: $(BUILT_SOURCES)
RecurrenceState.py: $(BUILT_SOURCES)

nodist__MAPICore_la_SOURCES = mapi_wrap.cxx mapi_wrap.h scl.h
nodist__inetmapi_la_SOURCES = inetmapi_wrap.cxx
nodist__icalmapi_la_SOURCES = icalmapi_wrap.cxx
nodist__archiver_la_SOURCES = archiver_wrap.cxx
_archiver_la_SOURCES = archiver_conv.h archiver_conv.cpp
nodist__RecurrenceState_la_SOURCES = RecurrenceState_wrap.cxx
nodist__libfreebusy_la_SOURCES = libfreebusy_wrap.cxx
_libfreebusy_la_SOURCES = libfreebusy_conv.h libfreebusy_conv.cpp

EXTRA_DIST = helpers_python.i \
	setup.py \
	setup.cfg \
	MAPICore.py \
	inetmapi.py \
	icalmapi.py \
	libfreebusy.py \
	MAPI/Defs.py \
	MAPI/__init__.py \
	MAPI/version.py \
	MAPI/Struct.py \
	MAPI/Tags.py \
	MAPI/Time.py \
	MAPI/Util/__init__.py \
	MAPI/Util/Generators.py \
	MAPI/Util/Iterators.py \
	MAPI/Util/AddressBook.py \
	MAPI/Util/codepage.py \
	archiver_python.i

datadir = ${pythondir}
data_DATA = MAPICore.py inetmapi.py icalmapi.py libfreebusy.py
noinst_datadir = RecurrenceState.py

DEPFLAGS = -MMD -MF .$@.dep

mapi_wrap.h: mapi_wrap.cxx
mapi_wrap.cxx: ../mapi.i
	if test "x$(SWIG_EXEC)" = "x"; then echo "swig is required for 'make dist'"; exit 1; fi
	${SWIG_EXEC} -I${top_srcdir}/common/include -I${top_srcdir}/libsync ${DEPFLAGS} ${SWIG_FLAGS} ${SWIG_CXXFLAGS} -o $@ $<

inetmapi_wrap.cxx: ../inetmapi.i
	${SWIG_EXEC} ${DEPFLAGS} ${SWIG_CXXFLAGS} -o $@ $<

icalmapi_wrap.cxx: ../icalmapi.i
	${SWIG_EXEC} -I${top_srcdir}/libicalmapi -I${top_srcdir}/libfreebusy ${DEPFLAGS} ${SWIG_CXXFLAGS} -o $@ $<

archiver_wrap.cxx: ../archiver.i
	${SWIG_EXEC} -I${top_srcdir}/ECtools/archiver ${DEPFLAGS} ${SWIG_CXXFLAGS} -o $@ $<

RecurrenceState_wrap.cxx: ../RecurrenceState.i
	${SWIG_EXEC} -I${top_srcdir}/common -I${top_srcdir}/m4lcommon ${DEPFLAGS} ${SWIG_CXXFLAGS} -o $@ $<

libfreebusy_wrap.cxx: ../libfreebusy.i
	${SWIG_EXEC} -I${top_srcdir}/libfreebusy ${DEPFLAGS} ${SWIG_CXXFLAGS} -o $@ $<

-include .*.dep

check-syntax:
	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) \
		-fsyntax-only -fmessage-length=0 ${CHK_SOURCES} -Wall -Wformat=2

install-exec-local:
	rm -Rf staging
	${MKDIR_P} staging
	cp -a ${srcdir}/setup.py ${srcdir}/setup.cfg ${srcdir}/MAPI staging/
	cp -a MAPI/version.py staging/MAPI/
	cd staging/ && ${PYTHON} setup.py \
		build --build-base="${abs_builddir}/build" \
		install --install-layout=deb -f $${DESTDIR+--root=${DESTDIR}} \
		${NULL}
	rm -Rf build

uninstall-local:
	rm -Rf ${DESTDIR}${pythondir}/MAPI \
		${DESTDIR}${pythondir}/MAPI-*.egg-info

include ../../global.am