updated makefiles
[gnutls.git] / doc / examples / Makefile.am
blob29f612f9865709b2121a519a1b4cf5385e0a0b17
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2005-2012 Free Software Foundation, Inc.
4 # Author: Simon Josefsson
6 # This file is part of GnuTLS.
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # This file 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 this file; if not, write to the Free Software Foundation,
20 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
23 AM_CPPFLAGS = \
24         -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes     \
25         -I$(top_srcdir)/extra/includes \
26         -I$(top_srcdir)/gl \
27         -I$(top_builddir)/gl
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 -DNO_LIBCURL
34 AM_LDFLAGS = -no-install
35 LDADD = libexamples.la                          \
36         ../../lib/libgnutls.la                  \
37         ../../gl/libgnu.la                      \
38         $(LIBSOCKET) $(INET_NTOP_LIB) $(INET_PTON_LIB)
40 CXX_LDADD = $(LDADD) \
41         ../../lib/libgnutlsxx.la
43 noinst_PROGRAMS = ex-client-resume ex-client-dtls
44 noinst_PROGRAMS += ex-cert-select ex-client-x509
46 if ENABLE_CXX
47 ex_cxx_SOURCES = ex-cxx.cpp
48 ex_cxx_LDADD = $(CXX_LDADD)
49 noinst_PROGRAMS += ex-cxx
50 endif
52 if ENABLE_ANON
53 noinst_PROGRAMS += ex-client-anon ex-serv-anon
54 endif
56 if ENABLE_OPENPGP
57 noinst_PROGRAMS += ex-serv-pgp
58 endif
60 if ENABLE_PKCS11
61 noinst_PROGRAMS += ex-cert-select-pkcs11
62 endif
64 if ENABLE_PSK
65 noinst_PROGRAMS += ex-client-psk
66 noinst_PROGRAMS += ex-serv-psk
67 endif
69 if ENABLE_SRP
70 noinst_PROGRAMS += ex-client-srp ex-serv-srp
71 endif
73 noinst_LTLIBRARIES = libexamples.la
75 if ENABLE_OCSP
76 noinst_PROGRAMS += ex-ocsp-client
77 endif
79 libexamples_la_SOURCES = examples.h ex-alert.c ex-pkcs12.c \
80         ex-session-info.c ex-x509-info.c ex-verify.c    \
81         tcp.c udp.c ex-pkcs11-list.c verify.c ex-verify-ssh.c \
82         ex-serv-dtls.c print-ciphersuites.c