1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
5 # Author: Simon Josefsson
7 # This file is part of GnuTLS.
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.
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.
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.
23 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
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
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
34 AM_LDFLAGS = -no-install
35 LDADD = libexamples.la \
36 ../../lib/libgnutls.la \
37 ../../libextra/libgnutls-extra.la \
39 $(LIBSOCKET) $(INET_NTOP_LIB) $(INET_PTON_LIB)
41 CXX_LDADD = $(LDADD) \
42 ../../lib/libgnutlsxx.la
44 noinst_PROGRAMS = ex-client2 ex-client-resume
45 noinst_PROGRAMS += ex-cert-select ex-rfc2818
48 noinst_PROGRAMS += ex-crq ex-serv1
52 ex_cxx_SOURCES = ex-cxx.cpp
53 ex_cxx_LDADD = $(CXX_LDADD)
54 noinst_PROGRAMS += ex-cxx
58 noinst_PROGRAMS += ex-client1 ex-serv-anon
62 noinst_PROGRAMS += ex-serv-pgp
66 noinst_PROGRAMS += ex-cert-select-pkcs11
70 noinst_PROGRAMS += ex-client-psk
72 noinst_PROGRAMS += ex-serv-psk
77 noinst_PROGRAMS += ex-client-srp ex-serv-srp
80 noinst_LTLIBRARIES = libexamples.la
82 libexamples_la_SOURCES = examples.h ex-alert.c ex-pkcs12.c \
83 ex-session-info.c ex-x509-info.c ex-verify.c \