/
githubmirror
/
audit-userspace
Обзор
Документация
Войти
/
githubmirror
/
audit-userspace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
bindings/swig/python3/Makefile.am
49 строк
2 KB
Steve Grubb
bindings: add check-local for python module underlinkage
03 мар 2026, 07:43
03 мар 2026, 07:43
9f1bade
Код
Авторство
О чём код?
# Makefile.am -- # Copyright 2015 Red Hat Inc. # All Rights Reserved. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this program; see the file COPYING.lib. If not, write to # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor # Boston, MA 02110-1335, USA. # # Authors: # Steve Grubb <sgrubb@redhat.com> # CONFIG_CLEAN_FILES = *.loT *.rej *.orig AM_CFLAGS = -fPIC -DPIC -fno-strict-aliasing $(PYTHON3_CFLAGS) AM_CPPFLAGS = -I. -I$(top_builddir) -I${top_srcdir}/lib $(PYTHON3_INCLUDES) LIBS = $(top_builddir)/lib/libaudit.la SWIG_FLAGS = -python SWIG_INCLUDES = -I. -I$(top_builddir) -I${top_srcdir}/lib $(PYTHON3_INCLUDES) pyexec_PYTHON = audit.py pyexec_LTLIBRARIES = _audit.la _audit_la_CFLAGS = -shared _audit_la_LDFLAGS = -module -avoid-version -Wl,-z,relro _audit_la_DEPENDENCIES =${top_srcdir}/lib/audit_logging.h ${top_builddir}/lib/libaudit.la _audit_la_LIBADD = ${top_builddir}/lib/libaudit.la $(PYTHON3_LIBS) nodist__audit_la_SOURCES = audit_wrap.c audit.py audit_wrap.c: ${srcdir}/../src/auditswig.i swig -o audit_wrap.c ${SWIG_FLAGS} ${SWIG_INCLUDES} ${srcdir}/../src/auditswig.i CLEANFILES = audit.py* audit_wrap.c *~ check-local: @python3_embed_libs=`python3-config --embed --libs 2>/dev/null`; \ if test -z "$$python3_embed_libs"; then \ echo "SKIP: python3-config --embed --libs is unavailable"; \ exit 77; \ fi; \ $(MAKE) clean >/dev/null; \ $(MAKE) all-am LDFLAGS="$(LDFLAGS) -Wl,--no-undefined" \ PYTHON3_LIBS="$$python3_embed_libs"