Add support for DTLS-SRTP profile negotiation (RFC 5764)
[gnutls.git] / extra / Makefile.am
blob8cbb4050cb48e406260864314e218a6c59a8b532
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
4 # Author: Nikos Mavrogiannopoulos
6 # This file is part of GnuTLS-EXTRA.
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.
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.
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.
23 ACLOCAL_AMFLAGS = -I ../m4 -I ../gl/m4
25 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_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
36 if ENABLE_MINITASN1
37 AM_CPPFLAGS += -I$(srcdir)/../lib/minitasn1
38 endif
40 SUBDIRS = includes
42 defexecdir = $(bindir)
43 defexec_DATA = 
46 # OpenSSL
48 libgnutls_openssl_la_LDFLAGS = -no-undefined
50 if ENABLE_OPENSSL
51 lib_LTLIBRARIES = libgnutls-openssl.la
53 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h        \
54         openssl_compat.c
56 libgnutls_openssl_la_LIBADD = ../gl/libgnu.la \
57         ../lib/libgnutls.la
59 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_SSL_CURRENT):$(LT_SSL_REVISION):$(LT_SSL_AGE)
61 if ENABLE_MINITASN1
62 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
63 else
64 libgnutls_openssl_la_LIBADD += $(LTLIBTASN1)
65 endif
67 libgnutls_openssl_la_LIBADD += $(LIBSOCKET)
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
77 DISTCLEANFILES = $(defexec_DATA)