Tizen 2.0 Release
[external/libgnutls26.git] / doc / examples / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
3 # Foundation, Inc.
4 #
5 # Author: Simon Josefsson
6 #
7 # This file is part of GnuTLS.
8 #
9 # This file is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
13 #
14 # This file 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 this file; if not, write to the Free Software Foundation,
21 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
23 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
24 AM_CPPFLAGS = \
25         -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes     \
26         -I$(top_srcdir)/libextra/includes                               \
27         -I$(top_srcdir)/gl -I$(top_builddir)/gl
28
29 # Gnulib warns and suggests use of fseeko instead of fseek, which is
30 # used in ex-cert-select.c, but certificate files will not be > 4 GB,
31 # so we just silence the warning instead of fixing the code here.
32 AM_CPPFLAGS += -D_GL_NO_LARGE_FILES
33
34 AM_LDFLAGS = -no-install
35 LDADD = libexamples.la                          \
36         ../../lib/libgnutls.la                  \
37         ../../libextra/libgnutls-extra.la       \
38         ../../gl/libgnu.la                      \
39         $(LIBSOCKET) $(INET_NTOP_LIB) $(INET_PTON_LIB)
40
41 CXX_LDADD = $(LDADD) \
42         ../../lib/libgnutlsxx.la
43
44 noinst_PROGRAMS = ex-client2 ex-client-resume
45 noinst_PROGRAMS += ex-cert-select ex-rfc2818
46
47 if ENABLE_PKI
48 noinst_PROGRAMS += ex-crq ex-serv1
49 endif
50
51 if ENABLE_CXX
52 ex_cxx_SOURCES = ex-cxx.cpp
53 ex_cxx_LDADD = $(CXX_LDADD)
54 noinst_PROGRAMS += ex-cxx
55 endif
56
57 if ENABLE_ANON
58 noinst_PROGRAMS += ex-client1 ex-serv-anon
59 endif
60
61 if ENABLE_OPENPGP
62 noinst_PROGRAMS += ex-serv-pgp
63 endif
64
65 if ENABLE_PKCS11
66 noinst_PROGRAMS += ex-cert-select-pkcs11
67 endif
68
69 if ENABLE_PSK
70 noinst_PROGRAMS += ex-client-psk
71 if ENABLE_PKI
72 noinst_PROGRAMS += ex-serv-psk
73 endif
74 endif
75
76 if ENABLE_SRP
77 noinst_PROGRAMS += ex-client-srp ex-serv-srp
78 endif
79
80 noinst_LTLIBRARIES = libexamples.la
81
82 libexamples_la_SOURCES = examples.h ex-alert.c ex-pkcs12.c              \
83         ex-session-info.c ex-x509-info.c ex-verify.c    \
84         tcp.c