1
pythondir = $(PYTHON_SITE_ARCH)
5
python_LTLIBRARIES = _arc.la
8
altpythondir = $(ALTPYTHON_SITE_ARCH)
11
altpython_DATA = arc.py
12
altpython_LTLIBRARIES = alt/_arc.la
16
AM_CPPFLAGS = -DWIN32 -DWINNT
19
SWIG_INPUTS = $(top_srcdir)/swig/*.i
22
PYDOXFLAGS = -DPYDOXYGEN
23
SWIG_INPUTS += pydoxygen.i
27
$(top_builddir)/src/hed/libs/credentialstore/libarccredentialstore.la \
28
$(top_builddir)/src/hed/libs/client/libarcclient.la \
29
$(top_builddir)/src/hed/libs/security/libarcsecurity.la \
30
$(top_builddir)/src/hed/libs/data/libarcdata2.la \
31
$(top_builddir)/src/hed/libs/credential/libarccredential.la \
32
$(top_builddir)/src/hed/libs/crypto/libarccrypto.la \
33
$(top_builddir)/src/hed/libs/message/libarcmessage.la \
34
$(top_builddir)/src/hed/libs/loader/libarcloader.la \
35
$(top_builddir)/src/libs/data-staging/libarcdatastaging.la \
36
$(top_builddir)/src/hed/libs/common/libarccommon.la
38
_arc_la_SOURCES = arc_init.cpp
39
nodist__arc_la_SOURCES = arc_wrap.cpp
40
_arc_la_CXXFLAGS = -I$(top_srcdir)/include \
41
$(LIBXML2_CFLAGS) $(GLIBMM_CFLAGS) $(PYTHON_CFLAGS) \
42
-fno-strict-aliasing -DSWIG_COBJECT_TYPES
44
$(ARCLIBS) $(LIBXML2_LIBS) $(GLIBMM_LIBS) $(PYTHON_LIBS)
45
_arc_la_LDFLAGS = -no-undefined -avoid-version -module
47
alt__arc_la_SOURCES = arc_init.cpp
48
nodist_alt__arc_la_SOURCES = arc_wrap.cpp
49
alt__arc_la_CXXFLAGS = -I$(top_srcdir)/include \
50
$(LIBXML2_CFLAGS) $(GLIBMM_CFLAGS) $(ALTPYTHON_CFLAGS) \
51
-fno-strict-aliasing -DSWIG_COBJECT_TYPES
52
alt__arc_la_LIBADD = \
53
$(ARCLIBS) $(LIBXML2_LIBS) $(GLIBMM_LIBS) $(ALTPYTHON_LIBS)
54
alt__arc_la_LDFLAGS = -no-undefined -avoid-version -module
56
SWIG_OUTPUTS = arc_wrap.cpp arc.py
58
EXTRA_DIST = Doxyfile.api doxy2swig.py pydoxygen.i
60
CLEANFILES = $(SWIG_OUTPUTS) arc.pyc api
62
MAINTAINERCLEANFILES = pydoxygen.i
64
@AMDEP_TRUE@include ./$(DEPDIR)/arc_wrap.deps
68
arc_wrap.cpp: $(SWIG_INPUTS)
70
grep -h '^#' $(SWIG_INPUTS) | \
71
$(CXXCOMPILE) $(_arc_la_CXXFLAGS) -M -MT arc_wrap.cpp -MT arc.py -MP -MF "$(DEPDIR)/arc_wrap.deps" -x c++ -
72
$(SWIG) -v -c++ -python -threads -module arc -o arc_wrap.cpp \
73
-I/usr/include -I$(top_srcdir)/include \
74
$(PYDOXFLAGS) $(AM_CPPFLAGS) $(OPENSSL_CFLAGS) $(top_srcdir)/swig/Arc.i
75
# Workaround for RHEL5 swig + EPEL5 python26
76
sed 's/\(^\s*char \*.*\) = \(.*ml_doc\)/\1 = (char *)\2/' arc_wrap.cpp > arc_wrap.cpp.new
77
mv arc_wrap.cpp.new arc_wrap.cpp
79
sed 's/^\(\s*char \*cstr;\) int len;/#if PY_VERSION_HEX < 0x02050000 \&\& !defined(PY_SSIZE_T_MIN)\n&\n#else\n\1 Py_ssize_t len;\n#endif/' arc_wrap.cpp > arc_wrap.cpp.new
80
mv arc_wrap.cpp.new arc_wrap.cpp
81
# Dont allow threading when deleting SwigPyIterator objects
82
sed '/*_wrap_delete_@SWIG_PYTHON_NAMING@Iterator/,/SWIG_PYTHON_THREAD_END/ s/.*SWIG_PYTHON_THREAD_[A-Z]*_ALLOW.*//' arc_wrap.cpp > arc_wrap.cpp.new
83
mv arc_wrap.cpp.new arc_wrap.cpp
84
# Dont allow threading when handling SWIG Python iterators (see bug
85
# 2683). Fixed in SWIG version 2.
86
if test "x@SWIG2@" != "xyes"; then \
87
sed '/*_wrap_@SWIG_PYTHON_NAMING@Iterator_/,/SWIG_PYTHON_THREAD_END/ s/.*SWIG_PYTHON_THREAD_[A-Z]*_ALLOW.*//' arc_wrap.cpp > arc_wrap.cpp.new; \
88
mv arc_wrap.cpp.new arc_wrap.cpp; \
90
# When mapping a template with a template class no space is inserted
91
# between the two right angle brackets.
92
sed 's/>>(new/> >(new/g' arc_wrap.cpp > arc_wrap.cpp.new
93
mv arc_wrap.cpp.new arc_wrap.cpp
94
# When mapping a template with another template class as argument, and
95
# that template class takes two classes as argument, then older swigs
96
# put parentheses around the two class arguments, e.g. T<(A,B)>, not
97
# valid syntax should be T<A,B> instead.
98
sed 's/<(\([,:[:alnum:]]*\))>/<\1>/g' arc_wrap.cpp > arc_wrap.cpp.tmp
99
mv arc_wrap.cpp.tmp arc_wrap.cpp
101
pydoxygen.i: $(srcdir)/Doxyfile.api
102
doxygen $(srcdir)/Doxyfile.api
103
python $(srcdir)/doxy2swig.py api/xml/index.xml $@
107
if test -n "$(PYTHON_SOABI)" ; then \
108
mv $(DESTDIR)$(pythondir)/_arc.so \
109
$(DESTDIR)$(pythondir)/_arc.$(PYTHON_SOABI).so ; \
111
if test -n "$(ALTPYTHON_SOABI)" ; then \
112
mv $(DESTDIR)$(altpythondir)/_arc.so \
113
$(DESTDIR)$(altpythondir)/_arc.$(ALTPYTHON_SOABI).so ; \
117
SUBDIRS = $(TEST_DIR)