benchmark time was increased.
[gnutls.git] / src / Makefile.am
blob5a11ebee3e4d2f1ca6673baad31bbb846257f4b7
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)/../extra/includes   \
39         $(LIBOPTS_CFLAGS)
41 bin_PROGRAMS = gnutls-serv gnutls-cli psktool gnutls-cli-debug certtool
42 if ENABLE_SRP
43 bin_PROGRAMS += srptool
44 endif
45 if ENABLE_OCSP
46 bin_PROGRAMS += ocsptool
47 endif
49 if ENABLE_TROUSERS
50 bin_PROGRAMS += tpmtool
51 endif
53 if ENABLE_PKCS11
54 bin_PROGRAMS += p11tool
55 endif
57 noinst_LTLIBRARIES =
59 gnutls_serv_SOURCES =           \
60   list.h serv.c                 \
61   udp-serv.c udp-serv.h         \
62   socket.c socket.h             \
63   common.h common.c             \
64   certtool-common.h 
65 gnutls_serv_LDADD = ../lib/libgnutls.la
66 gnutls_serv_LDADD += libcmd-serv.la ../gl/libgnu.la
67 gnutls_serv_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
68 gnutls_serv_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB)
69 noinst_LTLIBRARIES += libcmd-serv.la
70 libcmd_serv_la_CFLAGS =
71 libcmd_serv_la_SOURCES = serv-args.def serv-args.c serv-args.h
73 if ENABLE_SRP
74 srptool_SOURCES = srptool.c
75 srptool_LDADD = ../lib/libgnutls.la libcmd-srp.la ../gl/libgnu.la 
76 srptool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
77 noinst_LTLIBRARIES += libcmd-srp.la
78 libcmd_srp_la_CFLAGS =
79 libcmd_srp_la_SOURCES = srptool-args.def srptool-args.c srptool-args.h
80 endif
82 if ENABLE_OCSP
83 ocsptool_SOURCES = ocsptool.c ocsptool-common.h ocsptool-common.c \
84         socket.c socket.h
85 ocsptool_LDADD = ../lib/libgnutls.la libcmd-ocsp.la ../gl/libgnu.la 
86 ocsptool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL) $(GETADDRINFO_LIB)
87 noinst_LTLIBRARIES += libcmd-ocsp.la
88 libcmd_ocsp_la_CFLAGS =
89 libcmd_ocsp_la_SOURCES = ocsptool-args.def ocsptool-args.h ocsptool-args.c
90 endif
92 psktool_SOURCES = psk.c
93 psktool_LDADD = ../lib/libgnutls.la libcmd-psk.la ../gl/libgnu.la 
94 psktool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
95 noinst_LTLIBRARIES += libcmd-psk.la
96 libcmd_psk_la_CFLAGS = 
97 libcmd_psk_la_SOURCES = psk-args.def psk-args.c psk-args.h
99 BENCHMARK_SRCS = benchmark-cipher.c benchmark.c benchmark.h benchmark-tls.c
101 gnutls_cli_SOURCES = cli.c common.h common.c \
102         socket.c socket.h ocsptool-common.c \
103         $(BENCHMARK_SRCS)
104 gnutls_cli_LDADD = ../lib/libgnutls.la
105 gnutls_cli_LDADD += libcmd-cli.la ../gl/libgnu.la $(LIBOPTS_LDADD) $(LTLIBINTL)
106 gnutls_cli_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB) $(LIB_CLOCK_GETTIME) \
107          $(SERVENT_LIB)
108 noinst_LTLIBRARIES += libcmd-cli.la
109 libcmd_cli_la_CFLAGS = 
110 libcmd_cli_la_SOURCES = cli-args.def cli-args.c cli-args.h
112 gnutls_cli_debug_SOURCES = tls_test.c tests.h tests.c \
113                 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 += ../gl/libgnu.la
116 gnutls_cli_debug_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
117 gnutls_cli_debug_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB)
118 noinst_LTLIBRARIES += libcmd-cli-debug.la
119 libcmd_cli_debug_la_CFLAGS =
120 libcmd_cli_debug_la_SOURCES = cli-debug-args.def cli-debug-args.c cli-debug-args.h
122 #certtool
124 certtool_SOURCES = certtool.c dh.c certtool-common.c certtool-extras.c common.c
125 certtool_LDADD = ../lib/libgnutls.la 
126 certtool_LDADD += libcmd-certtool.la ../gl/libgnu.la
128 noinst_LTLIBRARIES += libcmd-certtool.la
129 libcmd_certtool_la_CFLAGS =
130 libcmd_certtool_la_SOURCES = certtool-args.c certtool-args.def certtool-args.h  \
131         certtool-cfg.h certtool-cfg.c
132 libcmd_certtool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
133 libcmd_certtool_la_LIBADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
134 libcmd_certtool_la_LIBADD += $(LTLIBREADLINE)
135 libcmd_certtool_la_LIBADD += $(INET_PTON_LIB)
137 # p11 tool
138 if ENABLE_PKCS11
140 p11tool_SOURCES = p11tool-args.def p11tool.c pkcs11.c certtool-common.c \
141         certtool-extras.c p11tool.h common.c
142 p11tool_LDADD = ../lib/libgnutls.la
143 p11tool_LDADD += libcmd-p11tool.la ../gl/libgnu.la
144 p11tool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
146 noinst_LTLIBRARIES += libcmd-p11tool.la
147 libcmd_p11tool_la_CFLAGS =
148 libcmd_p11tool_la_SOURCES = p11tool-args.def p11tool-args.c p11tool-args.h \
149         certtool-cfg.h certtool-cfg.c
150 libcmd_p11tool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
151 libcmd_p11tool_la_LIBADD += $(LTLIBREADLINE) $(INET_PTON_LIB)
153 endif # ENABLE_PKCS11
155 if ENABLE_TROUSERS
157 tpmtool_SOURCES = tpmtool-args.def tpmtool.c certtool-common.c certtool-extras.c common.c
158 tpmtool_LDADD = ../lib/libgnutls.la
159 tpmtool_LDADD += libcmd-tpmtool.la ../gl/libgnu.la
160 tpmtool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
162 noinst_LTLIBRARIES += libcmd-tpmtool.la
163 libcmd_tpmtool_la_CFLAGS =
164 libcmd_tpmtool_la_SOURCES = tpmtool-args.def tpmtool-args.c tpmtool-args.h \
165         certtool-cfg.h certtool-cfg.c
166 libcmd_tpmtool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
167 libcmd_tpmtool_la_LIBADD += $(LTLIBREADLINE) $(INET_PTON_LIB)
169 endif # ENABLE_TROUSERS
171 BUILT_SOURCES = ocsptool-args.c p11tool-args.c psk-args.c cli-debug-args.c \
172                 cli-args.c serv-args.c srptool-args.c certtool-args.c
174 ocsptool-args.c: $(srcdir)/args-std.def $(srcdir)/ocsptool-args.def
175         -autogen ocsptool-args.def
176 tpmtool-args.c: $(srcdir)/args-std.def $(srcdir)/tpmtool-args.def
177         -autogen tpmtool-args.def
178 p11tool-args.c: $(srcdir)/args-std.def $(srcdir)/p11tool-args.def
179         -autogen p11tool-args.def
180 psk-args.c: $(srcdir)/args-std.def $(srcdir)/psk-args.def
181         -autogen psk-args.def
182 cli-debug-args.c: $(srcdir)/args-std.def $(srcdir)/cli-debug-args.def
183         -autogen cli-debug-args.def
184 cli-args.c: $(srcdir)/args-std.def $(srcdir)/cli-args.def
185         -autogen cli-args.def
186 serv-args.c: $(srcdir)/args-std.def $(srcdir)/serv-args.def
187         -autogen serv-args.def
188 srptool-args.c: $(srcdir)/args-std.def $(srcdir)/srptool-args.def
189         -autogen srptool-args.def
190 certtool-args.c: $(srcdir)/args-std.def $(srcdir)/certtool-args.def
191         -autogen certtool-args.def