| 1 | #### |
| 2 | # Seccomp Library Source Files |
| 3 | # |
| 4 | |
| 5 | # |
| 6 | # This library is free software; you can redistribute it and/or modify it |
| 7 | # under the terms of version 2.1 of the GNU Lesser General Public License |
| 8 | # as published by the Free Software Foundation. |
| 9 | # |
| 10 | # This library is distributed in the hope that it will be useful, but |
| 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser |
| 13 | # General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU Lesser General Public License |
| 16 | # along with this library; if not, see <http://www.gnu.org/licenses>. |
| 17 | # |
| 18 | |
| 19 | SUBDIRS = . |
| 20 | if ENABLE_PYTHON |
| 21 | SUBDIRS += python |
| 22 | endif |
| 23 | |
| 24 | SOURCES_ALL = \ |
| 25 | api.c system.h system.c \ |
| 26 | gen_pfc.h gen_pfc.c gen_bpf.h gen_bpf.c \ |
| 27 | hash.h hash.c \ |
| 28 | db.h db.c \ |
| 29 | arch.c arch.h \ |
| 30 | arch-x86.h arch-x86.c arch-x86-syscalls.c \ |
| 31 | arch-x86_64.h arch-x86_64.c arch-x86_64-syscalls.c \ |
| 32 | arch-x32.h arch-x32.c arch-x32-syscalls.c \ |
| 33 | arch-arm.h arch-arm.c arch-arm-syscalls.c \ |
| 34 | arch-aarch64.h arch-aarch64.c arch-aarch64-syscalls.c \ |
| 35 | arch-mips.h arch-mips.c arch-mips-syscalls.c \ |
| 36 | arch-mips64.h arch-mips64.c arch-mips64-syscalls.c \ |
| 37 | arch-mips64n32.h arch-mips64n32.c arch-mips64n32-syscalls.c \ |
| 38 | arch-ppc.h arch-ppc.c arch-ppc-syscalls.c \ |
| 39 | arch-ppc64.h arch-ppc64.c arch-ppc64-syscalls.c \ |
| 40 | arch-s390.h arch-s390.c arch-s390-syscalls.c \ |
| 41 | arch-s390x.h arch-s390x.c arch-s390x-syscalls.c |
| 42 | |
| 43 | EXTRA_DIST = arch-syscall-validate |
| 44 | |
| 45 | TESTS = arch-syscall-check |
| 46 | |
| 47 | check_PROGRAMS = arch-syscall-check arch-syscall-dump |
| 48 | |
| 49 | lib_LTLIBRARIES = libseccomp.la |
| 50 | |
| 51 | arch_syscall_dump_SOURCES = arch-syscall-dump.c ${SOURCES_ALL} |
| 52 | |
| 53 | arch_syscall_check_SOURCES = arch-syscall-check.c ${SOURCES_ALL} |
| 54 | |
| 55 | libseccomp_la_SOURCES = ${SOURCES_ALL} |
| 56 | libseccomp_la_CPPFLAGS = ${AM_CPPFLAGS} -I${top_builddir}/include |
| 57 | libseccomp_la_CFLAGS = ${AM_CFLAGS} ${CFLAGS} -fPIC -DPIC -fvisibility=hidden |
| 58 | libseccomp_la_LDFLAGS = ${AM_LDFLAGS} ${LDFLAGS} \ |
| 59 | -version-number ${VERSION_MAJOR}:${VERSION_MINOR}:${VERSION_MICRO} |
| 60 | |
| 61 | check-build: |
| 62 | ${MAKE} ${AM_MAKEFLAGS} ${check_PROGRAMS} |