Use INET_NTOP_LIB and INET_PTON_LIB.
[gnutls.git] / doc / examples / Makefile.am
blobee8a4a0c09eeda2bd6eac66be5f1cd320ec0f2c4
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation
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)/libextra/includes                               \
26         -I$(top_srcdir)/gl -I$(top_builddir)/gl
28 AM_LDFLAGS = -no-install
29 LDADD = libexamples.la                          \
30         ../../lib/libgnutls.la                  \
31         ../../libextra/libgnutls-extra.la       \
32         ../../gl/libgnu.la                      \
33         $(LIBSOCKET) $(INET_NTOP_LIB) $(INET_PTON_LIB)
35 CXX_LDADD = $(LDADD) \
36         ../../lib/libgnutlsxx.la
38 noinst_PROGRAMS = ex-client2 ex-client-resume
39 noinst_PROGRAMS += ex-cert-select
41 if ENABLE_PKI
42 noinst_PROGRAMS += ex-crq ex-serv1 ex-serv-export
43 endif
45 if ENABLE_CXX
46 ex_cxx_SOURCES = ex-cxx.cpp
47 ex_cxx_LDADD = $(CXX_LDADD)
48 noinst_PROGRAMS += ex-cxx
49 endif
51 if ENABLE_ANON
52 noinst_PROGRAMS += ex-client1 ex-serv-anon
53 noinst_PROGRAMS += ex-client-tlsia 
54 endif
56 if ENABLE_OPENPGP
57 noinst_PROGRAMS += ex-serv-pgp
58 endif
60 if ENABLE_PSK
61 noinst_PROGRAMS += ex-client-psk
62 if ENABLE_PKI
63 noinst_PROGRAMS += ex-serv-psk
64 endif
65 endif
67 if ENABLE_SRP
68 noinst_PROGRAMS += ex-client-srp ex-serv-srp
69 endif
71 noinst_LTLIBRARIES = libexamples.la
73 libexamples_la_SOURCES = examples.h ex-alert.c ex-pkcs12.c              \
74         ex-rfc2818.c ex-session-info.c ex-x509-info.c ex-verify.c       \
75         tcp.c