tests: updated the suite to account for the removal of DSA by default
[gnutls:gnutls.git] / extra / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
3 #
4 # Author: Nikos Mavrogiannopoulos
5 #
6 # This file is part of GnuTLS-EXTRA.
7 #
8 # GnuTLS-extra is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 3 of the
11 # License, or (at your option) any later version.
12 #
13 # GnuTLS-extra is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with GnuTLS-EXTRA; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22
23 ACLOCAL_AMFLAGS = -I ../m4 -I ../gl/m4
24
25 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS) $(NETTLE_CFLAGS)
26 AM_CPPFLAGS = \
27         -I$(srcdir)/../gl                       \
28         -I$(builddir)/../gl                     \
29         -I$(builddir)/../lib/includes   \
30         -I$(srcdir)/../lib/includes     \
31         -I$(srcdir)/includes            \
32         -I$(builddir)/includes          \
33         -I$(srcdir)/../lib              \
34         -I$(builddir)/../lib
35
36 if ENABLE_MINITASN1
37 AM_CPPFLAGS += -I$(srcdir)/../lib/minitasn1
38 endif
39
40 SUBDIRS = includes
41
42 defexecdir = $(bindir)
43 defexec_DATA = 
44
45
46 # OpenSSL
47
48 libgnutls_openssl_la_LDFLAGS = -no-undefined
49
50 if ENABLE_OPENSSL
51 lib_LTLIBRARIES = libgnutls-openssl.la
52
53 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h        \
54         openssl_compat.c
55
56 libgnutls_openssl_la_LIBADD = ../gl/libgnu.la \
57         ../lib/libgnutls.la
58
59 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_SSL_CURRENT):$(LT_SSL_REVISION):$(LT_SSL_AGE)
60
61 if ENABLE_MINITASN1
62 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
63 else
64 libgnutls_openssl_la_LIBADD += $(LTLIBTASN1)
65 endif
66
67 libgnutls_openssl_la_LIBADD += $(LIBSOCKET)
68
69 if HAVE_LD_OUTPUT_DEF
70 libgnutls_openssl_la_LDFLAGS += \
71         -Wl,--output-def,libgnutls-openssl-$(DLL_VERSION).def
72 libgnutls-openssl-$(DLL_VERSION).def: libgnutls-openssl.la
73 defexec_DATA += libgnutls-openssl-$(DLL_VERSION).def
74 endif
75 endif
76
77 DISTCLEANFILES = $(defexec_DATA)