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.
30 EXTRA_DIST = args-std.def
32 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
36 -I$(builddir)/../lib/includes \
37 -I$(srcdir)/../lib/includes \
38 -I$(srcdir)/../extra/includes \
41 bin_PROGRAMS = gnutls-serv gnutls-cli psktool gnutls-cli-debug certtool
43 bin_PROGRAMS += srptool
46 bin_PROGRAMS += ocsptool
50 bin_PROGRAMS += p11tool
51 PKCS11_SRCS = p11common.c p11common.h
58 gnutls_serv_SOURCES = \
60 udp-serv.c udp-serv.h \
65 gnutls_serv_LDADD = ../lib/libgnutls.la
66 gnutls_serv_LDADD += libcmd-serv.la ../gl/libgnu.la $(LIBOPTS_LDADD) $(LTLIBINTL)
67 gnutls_serv_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB)
68 noinst_LTLIBRARIES += libcmd-serv.la
69 libcmd_serv_la_CFLAGS =
70 libcmd_serv_la_SOURCES = serv-args.def serv-args.c serv-args.h
73 srptool_SOURCES = srptool.c
74 srptool_LDADD = ../lib/libgnutls.la libcmd-srp.la ../gl/libgnu.la
75 srptool_LDADD += $(LIBOPTS_LDADD)
76 noinst_LTLIBRARIES += libcmd-srp.la
77 libcmd_srp_la_CFLAGS =
78 libcmd_srp_la_SOURCES = srptool-args.def srptool-args.c srptool-args.h
82 ocsptool_SOURCES = ocsptool.c ocsptool-common.h ocsptool-common.c \
84 ocsptool_LDADD = ../lib/libgnutls.la libcmd-ocsp.la ../gl/libgnu.la
85 ocsptool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL) $(GETADDRINFO_LIB)
86 noinst_LTLIBRARIES += libcmd-ocsp.la
87 libcmd_ocsp_la_CFLAGS =
88 libcmd_ocsp_la_SOURCES = ocsptool-args.def ocsptool-args.h ocsptool-args.c
91 psktool_SOURCES = psk.c
92 psktool_LDADD = ../lib/libgnutls.la libcmd-psk.la ../gl/libgnu.la
93 psktool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
94 noinst_LTLIBRARIES += libcmd-psk.la
95 libcmd_psk_la_CFLAGS =
96 libcmd_psk_la_SOURCES = psk-args.def psk-args.c psk-args.h
98 BENCHMARK_SRCS = benchmark-cipher.c benchmark.c benchmark.h benchmark-tls.c
100 gnutls_cli_SOURCES = cli.c common.h common.c \
101 socket.c socket.h ocsptool-common.c \
102 $(PKCS11_SRCS) $(BENCHMARK_SRCS)
103 gnutls_cli_LDADD = ../lib/libgnutls.la
104 gnutls_cli_LDADD += libcmd-cli.la ../gl/libgnu.la $(LIBOPTS_LDADD) $(LTLIBINTL)
105 gnutls_cli_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB) $(LIB_CLOCK_GETTIME) \
107 noinst_LTLIBRARIES += libcmd-cli.la
108 libcmd_cli_la_CFLAGS =
109 libcmd_cli_la_SOURCES = cli-args.def cli-args.c cli-args.h
111 gnutls_cli_debug_SOURCES = tls_test.c tests.h tests.c \
112 socket.c socket.h common.h common.c \
114 gnutls_cli_debug_LDADD = ../lib/libgnutls.la libcmd-cli-debug.la
115 gnutls_cli_debug_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
116 gnutls_cli_debug_LDADD += ../gl/libgnu.la $(LIBSOCKET) $(GETADDRINFO_LIB)
117 noinst_LTLIBRARIES += libcmd-cli-debug.la
118 libcmd_cli_debug_la_CFLAGS =
119 libcmd_cli_debug_la_SOURCES = cli-debug-args.def cli-debug-args.c cli-debug-args.h
123 certtool_SOURCES = certtool.c dh.c certtool-common.c $(PKCS11_SRCS)
124 certtool_LDADD = ../lib/libgnutls.la
125 certtool_LDADD += libcmd-certtool.la ../gl/libgnu.la
127 noinst_LTLIBRARIES += libcmd-certtool.la
128 libcmd_certtool_la_CFLAGS =
129 libcmd_certtool_la_SOURCES = certtool-args.c certtool-args.def certtool-args.h \
130 certtool-cfg.h certtool-cfg.c
131 libcmd_certtool_la_LIBADD = ../gl/libgnu.la $(LTLIBREADLINE)
132 libcmd_certtool_la_LIBADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
133 libcmd_certtool_la_LIBADD += ../lib/libgnutls.la
134 libcmd_certtool_la_LIBADD += ../gl/libgnu.la $(INET_PTON_LIB)
139 p11tool_SOURCES = p11tool-args.def p11tool.c pkcs11.c certtool-common.c p11tool.h $(PKCS11_SRCS)
140 p11tool_LDADD = ../lib/libgnutls.la $(LIBOPTS_LDADD) $(LTLIBINTL)
141 p11tool_LDADD += libcmd-p11tool.la ../gl/libgnu.la
143 noinst_LTLIBRARIES += libcmd-p11tool.la
144 libcmd_p11tool_la_CFLAGS =
145 libcmd_p11tool_la_SOURCES = p11tool-args.def p11tool-args.c p11tool-args.h \
146 certtool-cfg.h certtool-cfg.c
147 libcmd_p11tool_la_LIBADD = ../gl/libgnu.la $(LTLIBREADLINE)
148 libcmd_p11tool_la_LIBADD += ../lib/libgnutls.la
149 libcmd_p11tool_la_LIBADD += ../gl/libgnu.la $(INET_PTON_LIB)
151 endif # ENABLE_PKCS11
153 ocsptool-args.c: $(srcdir)/args-std.def $(srcdir)/ocsptool-args.def
154 -autogen ocsptool-args.def
155 p11tool-args.c: $(srcdir)/args-std.def $(srcdir)/p11tool-args.def
156 -autogen p11tool-args.def
157 psk-args.c: $(srcdir)/args-std.def $(srcdir)/psk-args.def
158 -autogen psk-args.def
159 cli-debug-args.c: $(srcdir)/args-std.def $(srcdir)/cli-debug-args.def
160 -autogen cli-debug-args.def
161 cli-args.c: $(srcdir)/args-std.def $(srcdir)/cli-args.def
162 -autogen cli-args.def
163 serv-args.c: $(srcdir)/args-std.def $(srcdir)/serv-args.def
164 -autogen serv-args.def
165 srptool-args.c: $(srcdir)/args-std.def $(srcdir)/srptool-args.def
166 -autogen srptool-args.def
167 certtool-args.c: $(srcdir)/args-std.def $(srcdir)/certtool-args.def
168 -autogen certtool-args.def