summaryrefslogtreecommitdiffstats
path: root/lib/accelerated/Makefile.am
blob: a7f8e5a7320bae27e7afd02dcc1d8c9d6f8cd472 (plain)
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
## Process this file with automake to produce Makefile.in
# Copyright (C) 2011-2012 Free Software Foundation, Inc.
#
# Author: Nikos Mavrogiannopoulos
#
# This file is part of GNUTLS.
#
# The GNUTLS 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 3 of
# the License, or (at your option) any later version.
#
# The GNUTLS 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.  If not, see <https://www.gnu.org/licenses/>

include $(top_srcdir)/lib/common.mk

SUBDIRS = 
AM_CPPFLAGS = \
	-I$(srcdir)/../../gl		\
	-I$(builddir)/../../gl		\
	-I$(srcdir)/../includes		\
	-I$(builddir)/../../gl		\
	-I$(builddir)/../includes	\
	-I$(srcdir)/..

if ENABLE_MINITASN1
AM_CPPFLAGS += -I$(srcdir)/../minitasn1
endif

noinst_LTLIBRARIES = libaccelerated.la

EXTRA_DIST = accelerated.h cryptodev.h afalg.h
libaccelerated_la_SOURCES = accelerated.c cryptodev.c cryptodev-gcm.c afalg.c
libaccelerated_la_LIBADD =

if ENABLE_NETTLE
if ASM_X86
SUBDIRS += x86
AM_CFLAGS += -DASM_X86
libaccelerated_la_LIBADD += x86/libx86.la
endif

if ASM_AARCH64
SUBDIRS += aarch64
AM_CFLAGS += -DASM_AARCH64
libaccelerated_la_LIBADD += aarch64/libaarch64.la
endif
endif

if ASM_X86_32
AM_CFLAGS += -DASM_X86_32
endif

if ASM_X86_64
AM_CFLAGS += -DASM_X86_64
endif

if ENABLE_AFALG
AM_CPPFLAGS += $(LIBKCAPI_CFLAGS)
libaccelerated_la_LIBADD += $(LIBKCAPI_LIBS)
endif