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