Added dane_verification_status_print() and danetool can verify a DANE entry.
[gnutls.git] / src / Makefile.am
blob9935f0de111c713212a3ca2ceb1084372172f627
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000-2012 Free Software Foundation, Inc.
4 # This file is part of GnuTLS.
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This file is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this file; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 SUBDIRS =
22 if ENABLE_CRYWRAP
23 SUBDIRS += crywrap
24 endif
26 if NEED_LIBOPTS
27 SUBDIRS += libopts
28 endif
30 EXTRA_DIST = args-std.def
32 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
33 AM_CPPFLAGS = \
34         -I$(srcdir)/../gl                       \
35         -I$(builddir)/../gl                     \
36         -I$(builddir)/../lib/includes           \
37         -I$(srcdir)/../lib/includes             \
38         -I$(srcdir)/../libdane/includes         \
39         -I$(srcdir)/../extra/includes   \
40         $(LIBOPTS_CFLAGS)
42 bin_PROGRAMS = gnutls-serv gnutls-cli psktool gnutls-cli-debug certtool
43 if ENABLE_SRP
44 bin_PROGRAMS += srptool
45 endif
46 if ENABLE_OCSP
47 bin_PROGRAMS += ocsptool
48 endif
49 if ENABLE_DANE
50 bin_PROGRAMS += danetool
51 endif
53 if ENABLE_TROUSERS
54 bin_PROGRAMS += tpmtool
55 endif
57 if ENABLE_PKCS11
58 bin_PROGRAMS += p11tool
59 endif
61 noinst_LTLIBRARIES =
63 gnutls_serv_SOURCES =           \
64   list.h serv.c                 \
65   udp-serv.c udp-serv.h         \
66   socket.c socket.h             \
67   common.h common.c             \
68   certtool-common.h 
69 gnutls_serv_LDADD = ../lib/libgnutls.la
70 gnutls_serv_LDADD += libcmd-serv.la ../gl/libgnu.la
71 gnutls_serv_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
72 gnutls_serv_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB)
73 noinst_LTLIBRARIES += libcmd-serv.la
74 libcmd_serv_la_CFLAGS =
75 libcmd_serv_la_SOURCES = serv-args.def serv-args.c serv-args.h
77 if ENABLE_SRP
78 srptool_SOURCES = srptool.c
79 srptool_LDADD = ../lib/libgnutls.la libcmd-srp.la ../gl/libgnu.la 
80 srptool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
81 noinst_LTLIBRARIES += libcmd-srp.la
82 libcmd_srp_la_CFLAGS =
83 libcmd_srp_la_SOURCES = srptool-args.def srptool-args.c srptool-args.h
84 endif
86 if ENABLE_OCSP
87 ocsptool_SOURCES = ocsptool.c ocsptool-common.h ocsptool-common.c \
88         socket.c socket.h
89 ocsptool_LDADD = ../lib/libgnutls.la libcmd-ocsp.la ../gl/libgnu.la 
90 ocsptool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL) $(GETADDRINFO_LIB)
91 noinst_LTLIBRARIES += libcmd-ocsp.la
92 libcmd_ocsp_la_CFLAGS =
93 libcmd_ocsp_la_SOURCES = ocsptool-args.def ocsptool-args.h ocsptool-args.c
94 endif
96 psktool_SOURCES = psk.c
97 psktool_LDADD = ../lib/libgnutls.la libcmd-psk.la ../gl/libgnu.la 
98 psktool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
99 noinst_LTLIBRARIES += libcmd-psk.la
100 libcmd_psk_la_CFLAGS = 
101 libcmd_psk_la_SOURCES = psk-args.def psk-args.c psk-args.h
103 BENCHMARK_SRCS = benchmark-cipher.c benchmark.c benchmark.h benchmark-tls.c
105 gnutls_cli_SOURCES = cli.c common.h common.c \
106         socket.c socket.h ocsptool-common.c \
107         $(BENCHMARK_SRCS)
108 gnutls_cli_LDADD = ../lib/libgnutls.la
109 if ENABLE_DANE
110 gnutls_cli_LDADD += ../libdane/libgnutls-dane.la
111 endif
112 gnutls_cli_LDADD += libcmd-cli.la ../gl/libgnu.la $(LIBOPTS_LDADD) $(LTLIBINTL)
113 gnutls_cli_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB) $(LIB_CLOCK_GETTIME) \
114          $(SERVENT_LIB)
115 noinst_LTLIBRARIES += libcmd-cli.la
116 libcmd_cli_la_CFLAGS = 
117 libcmd_cli_la_SOURCES = cli-args.def cli-args.c cli-args.h
119 gnutls_cli_debug_SOURCES = tls_test.c tests.h tests.c \
120                 socket.c socket.h common.h common.c
121 gnutls_cli_debug_LDADD = ../lib/libgnutls.la libcmd-cli-debug.la 
122 gnutls_cli_debug_LDADD += ../gl/libgnu.la
123 gnutls_cli_debug_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
124 gnutls_cli_debug_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB)
125 noinst_LTLIBRARIES += libcmd-cli-debug.la
126 libcmd_cli_debug_la_CFLAGS =
127 libcmd_cli_debug_la_SOURCES = cli-debug-args.def cli-debug-args.c cli-debug-args.h
129 #certtool
131 certtool_SOURCES = certtool.c dh.c certtool-common.c certtool-extras.c common.c
132 certtool_LDADD = ../lib/libgnutls.la 
133 certtool_LDADD += libcmd-certtool.la ../gl/libgnu.la
135 noinst_LTLIBRARIES += libcmd-certtool.la
136 libcmd_certtool_la_CFLAGS =
137 libcmd_certtool_la_SOURCES = certtool-args.c certtool-args.def certtool-args.h  \
138         certtool-cfg.h certtool-cfg.c
139 libcmd_certtool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
140 libcmd_certtool_la_LIBADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
141 libcmd_certtool_la_LIBADD += $(LTLIBREADLINE)
142 libcmd_certtool_la_LIBADD += $(INET_PTON_LIB)
144 if ENABLE_DANE
146 danetool_SOURCES = danetool.c certtool-common.c certtool-extras.c common.c
147 danetool_LDADD = ../lib/libgnutls.la 
148 danetool_LDADD += libcmd-danetool.la ../gl/libgnu.la
149 danetool_LDADD += ../libdane/libgnutls-dane.la
151 noinst_LTLIBRARIES += libcmd-danetool.la
152 libcmd_danetool_la_CFLAGS =
153 libcmd_danetool_la_SOURCES = danetool-args.c danetool-args.def danetool-args.h \
154         certtool-cfg.h certtool-cfg.c
155 libcmd_danetool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
156 libcmd_danetool_la_LIBADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
157 libcmd_danetool_la_LIBADD += $(LTLIBREADLINE)
158 libcmd_danetool_la_LIBADD += $(INET_PTON_LIB)
160 endif #ENABLE_DANE
162 # p11 tool
163 if ENABLE_PKCS11
165 p11tool_SOURCES = p11tool-args.def p11tool.c pkcs11.c certtool-common.c \
166         certtool-extras.c p11tool.h common.c
167 p11tool_LDADD = ../lib/libgnutls.la
168 p11tool_LDADD += libcmd-p11tool.la ../gl/libgnu.la
169 p11tool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
171 noinst_LTLIBRARIES += libcmd-p11tool.la
172 libcmd_p11tool_la_CFLAGS =
173 libcmd_p11tool_la_SOURCES = p11tool-args.def p11tool-args.c p11tool-args.h \
174         certtool-cfg.h certtool-cfg.c
175 libcmd_p11tool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
176 libcmd_p11tool_la_LIBADD += $(LTLIBREADLINE) $(INET_PTON_LIB)
178 endif # ENABLE_PKCS11
180 if ENABLE_TROUSERS
182 tpmtool_SOURCES = tpmtool-args.def tpmtool.c certtool-common.c certtool-extras.c common.c
183 tpmtool_LDADD = ../lib/libgnutls.la
184 tpmtool_LDADD += libcmd-tpmtool.la ../gl/libgnu.la
185 tpmtool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
187 noinst_LTLIBRARIES += libcmd-tpmtool.la
188 libcmd_tpmtool_la_CFLAGS =
189 libcmd_tpmtool_la_SOURCES = tpmtool-args.def tpmtool-args.c tpmtool-args.h \
190         certtool-cfg.h certtool-cfg.c
191 libcmd_tpmtool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
192 libcmd_tpmtool_la_LIBADD += $(LTLIBREADLINE) $(INET_PTON_LIB)
194 endif # ENABLE_TROUSERS
196 BUILT_SOURCES = ocsptool-args.c p11tool-args.c psk-args.c cli-debug-args.c \
197                 cli-args.c serv-args.c srptool-args.c certtool-args.c
199 danetool-args.c: $(srcdir)/args-std.def $(srcdir)/danetool-args.def
200         -autogen danetool-args.def
201 ocsptool-args.c: $(srcdir)/args-std.def $(srcdir)/ocsptool-args.def
202         -autogen ocsptool-args.def
203 tpmtool-args.c: $(srcdir)/args-std.def $(srcdir)/tpmtool-args.def
204         -autogen tpmtool-args.def
205 p11tool-args.c: $(srcdir)/args-std.def $(srcdir)/p11tool-args.def
206         -autogen p11tool-args.def
207 psk-args.c: $(srcdir)/args-std.def $(srcdir)/psk-args.def
208         -autogen psk-args.def
209 cli-debug-args.c: $(srcdir)/args-std.def $(srcdir)/cli-debug-args.def
210         -autogen cli-debug-args.def
211 cli-args.c: $(srcdir)/args-std.def $(srcdir)/cli-args.def
212         -autogen cli-args.def
213 serv-args.c: $(srcdir)/args-std.def $(srcdir)/serv-args.def
214         -autogen serv-args.def
215 srptool-args.c: $(srcdir)/args-std.def $(srcdir)/srptool-args.def
216         -autogen srptool-args.def
217 certtool-args.c: $(srcdir)/args-std.def $(srcdir)/certtool-args.def
218         -autogen certtool-args.def