removed old flag
[gnutls.git] / src / Makefile.am
blobf4aa7e024d0dc3f056b2707796b019882b1c4544
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
50 if ENABLE_TROUSERS
51 bin_PROGRAMS += tpmtool
52 endif
54 if ENABLE_PKCS11
55 bin_PROGRAMS += p11tool
56 endif
58 noinst_LTLIBRARIES =
60 gnutls_serv_SOURCES =           \
61   list.h serv.c                 \
62   udp-serv.c udp-serv.h         \
63   socket.c socket.h             \
64   common.h common.c             \
65   certtool-common.h 
66 gnutls_serv_LDADD = ../lib/libgnutls.la
67 gnutls_serv_LDADD += libcmd-serv.la ../gl/libgnu.la
68 gnutls_serv_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
69 gnutls_serv_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB)
70 noinst_LTLIBRARIES += libcmd-serv.la
71 libcmd_serv_la_CFLAGS =
72 libcmd_serv_la_SOURCES = serv-args.def serv-args.c serv-args.h
74 if ENABLE_SRP
75 srptool_SOURCES = srptool.c
76 srptool_LDADD = ../lib/libgnutls.la libcmd-srp.la ../gl/libgnu.la 
77 srptool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
78 noinst_LTLIBRARIES += libcmd-srp.la
79 libcmd_srp_la_CFLAGS =
80 libcmd_srp_la_SOURCES = srptool-args.def srptool-args.c srptool-args.h
81 endif
83 if ENABLE_OCSP
84 ocsptool_SOURCES = ocsptool.c ocsptool-common.h ocsptool-common.c \
85         socket.c socket.h
86 ocsptool_LDADD = ../lib/libgnutls.la libcmd-ocsp.la ../gl/libgnu.la 
87 ocsptool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL) $(GETADDRINFO_LIB)
88 noinst_LTLIBRARIES += libcmd-ocsp.la
89 libcmd_ocsp_la_CFLAGS =
90 libcmd_ocsp_la_SOURCES = ocsptool-args.def ocsptool-args.h ocsptool-args.c
91 endif
93 psktool_SOURCES = psk.c
94 psktool_LDADD = ../lib/libgnutls.la libcmd-psk.la ../gl/libgnu.la 
95 psktool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
96 noinst_LTLIBRARIES += libcmd-psk.la
97 libcmd_psk_la_CFLAGS = 
98 libcmd_psk_la_SOURCES = psk-args.def psk-args.c psk-args.h
100 BENCHMARK_SRCS = benchmark-cipher.c benchmark.c benchmark.h benchmark-tls.c
102 gnutls_cli_SOURCES = cli.c common.h common.c \
103         socket.c socket.h ocsptool-common.c \
104         $(BENCHMARK_SRCS)
105 gnutls_cli_LDADD = ../lib/libgnutls.la
106 if ENABLE_DANE
107 gnutls_cli_LDADD += ../libdane/libdane.la
108 endif
109 gnutls_cli_LDADD += libcmd-cli.la ../gl/libgnu.la $(LIBOPTS_LDADD) $(LTLIBINTL)
110 gnutls_cli_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB) $(LIB_CLOCK_GETTIME) \
111          $(SERVENT_LIB)
112 noinst_LTLIBRARIES += libcmd-cli.la
113 libcmd_cli_la_CFLAGS = 
114 libcmd_cli_la_SOURCES = cli-args.def cli-args.c cli-args.h
116 gnutls_cli_debug_SOURCES = tls_test.c tests.h tests.c \
117                 socket.c socket.h common.h common.c
118 gnutls_cli_debug_LDADD = ../lib/libgnutls.la libcmd-cli-debug.la 
119 gnutls_cli_debug_LDADD += ../gl/libgnu.la
120 gnutls_cli_debug_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
121 gnutls_cli_debug_LDADD += $(LIBSOCKET) $(GETADDRINFO_LIB)
122 noinst_LTLIBRARIES += libcmd-cli-debug.la
123 libcmd_cli_debug_la_CFLAGS =
124 libcmd_cli_debug_la_SOURCES = cli-debug-args.def cli-debug-args.c cli-debug-args.h
126 #certtool
128 certtool_SOURCES = certtool.c dh.c certtool-common.c certtool-extras.c common.c
129 certtool_LDADD = ../lib/libgnutls.la 
130 certtool_LDADD += libcmd-certtool.la ../gl/libgnu.la
132 noinst_LTLIBRARIES += libcmd-certtool.la
133 libcmd_certtool_la_CFLAGS =
134 libcmd_certtool_la_SOURCES = certtool-args.c certtool-args.def certtool-args.h  \
135         certtool-cfg.h certtool-cfg.c
136 libcmd_certtool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
137 libcmd_certtool_la_LIBADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
138 libcmd_certtool_la_LIBADD += $(LTLIBREADLINE)
139 libcmd_certtool_la_LIBADD += $(INET_PTON_LIB)
141 # p11 tool
142 if ENABLE_PKCS11
144 p11tool_SOURCES = p11tool-args.def p11tool.c pkcs11.c certtool-common.c \
145         certtool-extras.c p11tool.h common.c
146 p11tool_LDADD = ../lib/libgnutls.la
147 p11tool_LDADD += libcmd-p11tool.la ../gl/libgnu.la
148 p11tool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
150 noinst_LTLIBRARIES += libcmd-p11tool.la
151 libcmd_p11tool_la_CFLAGS =
152 libcmd_p11tool_la_SOURCES = p11tool-args.def p11tool-args.c p11tool-args.h \
153         certtool-cfg.h certtool-cfg.c
154 libcmd_p11tool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
155 libcmd_p11tool_la_LIBADD += $(LTLIBREADLINE) $(INET_PTON_LIB)
157 endif # ENABLE_PKCS11
159 if ENABLE_TROUSERS
161 tpmtool_SOURCES = tpmtool-args.def tpmtool.c certtool-common.c certtool-extras.c common.c
162 tpmtool_LDADD = ../lib/libgnutls.la
163 tpmtool_LDADD += libcmd-tpmtool.la ../gl/libgnu.la
164 tpmtool_LDADD += $(LIBOPTS_LDADD) $(LTLIBINTL)
166 noinst_LTLIBRARIES += libcmd-tpmtool.la
167 libcmd_tpmtool_la_CFLAGS =
168 libcmd_tpmtool_la_SOURCES = tpmtool-args.def tpmtool-args.c tpmtool-args.h \
169         certtool-cfg.h certtool-cfg.c
170 libcmd_tpmtool_la_LIBADD = ../gl/libgnu.la ../lib/libgnutls.la
171 libcmd_tpmtool_la_LIBADD += $(LTLIBREADLINE) $(INET_PTON_LIB)
173 endif # ENABLE_TROUSERS
175 BUILT_SOURCES = ocsptool-args.c p11tool-args.c psk-args.c cli-debug-args.c \
176                 cli-args.c serv-args.c srptool-args.c certtool-args.c
178 ocsptool-args.c: $(srcdir)/args-std.def $(srcdir)/ocsptool-args.def
179         -autogen ocsptool-args.def
180 tpmtool-args.c: $(srcdir)/args-std.def $(srcdir)/tpmtool-args.def
181         -autogen tpmtool-args.def
182 p11tool-args.c: $(srcdir)/args-std.def $(srcdir)/p11tool-args.def
183         -autogen p11tool-args.def
184 psk-args.c: $(srcdir)/args-std.def $(srcdir)/psk-args.def
185         -autogen psk-args.def
186 cli-debug-args.c: $(srcdir)/args-std.def $(srcdir)/cli-debug-args.def
187         -autogen cli-debug-args.def
188 cli-args.c: $(srcdir)/args-std.def $(srcdir)/cli-args.def
189         -autogen cli-args.def
190 serv-args.c: $(srcdir)/args-std.def $(srcdir)/serv-args.def
191         -autogen serv-args.def
192 srptool-args.c: $(srcdir)/args-std.def $(srcdir)/srptool-args.def
193         -autogen srptool-args.def
194 certtool-args.c: $(srcdir)/args-std.def $(srcdir)/certtool-args.def
195         -autogen certtool-args.def