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)
24 -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes \
25 -I$(top_srcdir)/extra/includes \
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 \
38 $(LIBSOCKET) $(INET_NTOP_LIB) $(INET_PTON_LIB)
40 CXX_LDADD = ../../lib/libgnutlsxx.la \
43 noinst_PROGRAMS = ex-client-resume ex-client-dtls
44 noinst_PROGRAMS += ex-cert-select ex-client-x509
45 noinst_PROGRAMS += ex-serv-dtls
46 noinst_PROGRAMS += print-ciphersuites
49 ex_cxx_SOURCES = ex-cxx.cpp
50 ex_cxx_LDADD = $(CXX_LDADD)
51 noinst_PROGRAMS += ex-cxx
55 noinst_PROGRAMS += ex-client-anon ex-serv-anon
59 noinst_PROGRAMS += ex-serv-pgp
63 noinst_PROGRAMS += ex-cert-select-pkcs11
67 noinst_PROGRAMS += ex-client-psk
68 noinst_PROGRAMS += ex-serv-psk
72 noinst_PROGRAMS += ex-client-srp ex-serv-srp
75 noinst_LTLIBRARIES = libexamples.la
78 noinst_PROGRAMS += ex-ocsp-client
81 libexamples_la_SOURCES = examples.h ex-alert.c ex-pkcs12.c \
82 ex-session-info.c ex-x509-info.c ex-verify.c \
83 tcp.c udp.c ex-pkcs11-list.c verify.c ex-verify-ssh.c