Imported Upstream version 2.4.3
[platform/upstream/audit.git] / bindings / swig / python3 / Makefile.am
1 # Makefile.am -- 
2 # Copyright 2015 Red Hat Inc., Durham, North Carolina.
3 # All Rights Reserved.
4 #
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
9
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
14
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
19 # Authors:
20 #   Steve Grubb <sgrubb@redhat.com>
21 #
22 CONFIG_CLEAN_FILES = *.loT *.rej *.orig
23 AM_CFLAGS = -fPIC -DPIC -fno-strict-aliasing $(PYTHON3_CFLAGS)
24 AM_CPPFLAGS = -I. -I$(top_builddir) -I${top_srcdir}/lib $(PYTHON3_INCLUDES)
25 LIBS = $(top_builddir)/lib/libaudit.la
26 SWIG_FLAGS = -python -py3 -modern
27 SWIG_INCLUDES = -I. -I$(top_builddir) -I${top_srcdir}/lib $(PYTHON3_INCLUDES)
28 py3exec_PYTHON = audit.py
29 py3exec_LTLIBRARIES = _audit.la
30 py3exec_SOLIBRARIES = _audit.so
31 _audit_la_CFLAGS = -shared
32 _audit_la_LDFLAGS = -module -avoid-version -Wl,-z,relro
33 _audit_la_HEADERS: $(top_builddir)/config.h 
34 _audit_la_DEPENDENCIES =${top_srcdir}/lib/libaudit.h ${top_builddir}/lib/libaudit.la
35 _audit_la_LIBADD = ${top_builddir}/lib/libaudit.la
36 nodist__audit_la_SOURCES  = audit_wrap.c
37 audit.py audit_wrap.c: ${srcdir}/../src/auditswig.i 
38         swig -o audit_wrap.c ${SWIG_FLAGS} ${SWIG_INCLUDES} ${srcdir}/../src/auditswig.i 
39
40 CLEANFILES = audit.py* audit_wrap.c *~
41