1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
3 # 2009, 2010 Free Software Foundation, Inc.
5 # This file is part of GnuTLS.
7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # This file is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this file; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
27 -I$(builddir)/../lib/includes \
28 -I$(srcdir)/../lib/includes \
29 -I$(srcdir)/../libextra/includes \
32 noinst_PROGRAMS = benchmark
33 bin_PROGRAMS = gnutls-serv gnutls-cli psktool gnutls-cli-debug
35 bin_PROGRAMS += certtool
38 bin_PROGRAMS += srptool
42 bin_PROGRAMS += p11tool
43 PKCS11_SRCS = p11common.c p11common.h
50 gnutls_serv_SOURCES = list.h serv.c common.h common.c certtool-common.h $(PKCS11_SRCS)
52 gnutls_serv_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la
53 gnutls_serv_LDADD += libcmd-serv.la ../gl/libgnu.la
54 gnutls_serv_LDADD += $(LTLIBGCRYPT) $(LIBSOCKET) $(GETADDRINFO_LIB)
55 noinst_LTLIBRARIES += libcmd-serv.la
56 libcmd_serv_la_CFLAGS =
57 libcmd_serv_la_SOURCES = serv.gaa serv-gaa.h serv-gaa.c
60 srptool_SOURCES = crypt.c
61 srptool_LDADD = ../lib/libgnutls.la libcmd-srp.la ../gl/libgnu.la
62 noinst_LTLIBRARIES += libcmd-srp.la
63 libcmd_srp_la_CFLAGS =
64 libcmd_srp_la_SOURCES = crypt.gaa crypt-gaa.h crypt-gaa.c
67 psktool_SOURCES = psk.c
68 psktool_LDADD = ../lib/libgnutls.la libcmd-psk.la ../gl/libgnu.la
69 noinst_LTLIBRARIES += libcmd-psk.la
70 libcmd_psk_la_CFLAGS =
71 libcmd_psk_la_SOURCES = psk.gaa psk-gaa.h psk-gaa.c
73 benchmark_SOURCES = benchmark.c
74 benchmark_LDADD = ../lib/libgnutls.la ../gl/libgnu.la $(LIB_CLOCK_GETTIME)
76 gnutls_cli_SOURCES = cli.c common.h common.c $(PKCS11_SRCS)
77 gnutls_cli_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la
78 gnutls_cli_LDADD += libcmd-cli.la ../gl/libgnu.la
79 gnutls_cli_LDADD += $(LTLIBGCRYPT) $(LIBSOCKET) $(GETADDRINFO_LIB)
80 noinst_LTLIBRARIES += libcmd-cli.la
81 libcmd_cli_la_CFLAGS =
82 libcmd_cli_la_SOURCES = cli.gaa cli-gaa.h cli-gaa.c
84 gnutls_cli_debug_SOURCES = tls_test.c tests.h tests.c common.h common.c $(PKCS11_SRCS)
85 gnutls_cli_debug_LDADD = ../lib/libgnutls.la libcmd-cli-debug.la
86 gnutls_cli_debug_LDADD += ../gl/libgnu.la $(LIBSOCKET) $(GETADDRINFO_LIB)
87 noinst_LTLIBRARIES += libcmd-cli-debug.la
88 libcmd_cli_debug_la_CFLAGS =
89 libcmd_cli_debug_la_SOURCES = tls_test.gaa tls_test-gaa.h tls_test-gaa.c
93 certtool_SOURCES = certtool.c prime.c certtool-common.c $(PKCS11_SRCS)
94 certtool_LDADD = ../lib/libgnutls.la
95 certtool_LDADD += libcmd-certtool.la ../gl/libgnu.la
96 certtool_LDADD += $(LTLIBGCRYPT)
98 certtool_LDADD += -lcfg+
100 noinst_LTLIBRARIES += libcfg.la
102 libcfg_la_SOURCES = cfg/cfg+.c cfg/cfgfile.c cfg/cmdline.c cfg/parse.c \
103 cfg/props.c cfg/shared.c cfg/platon/str/dynfgets.c \
104 cfg/platon/str/strctype.c cfg/platon/str/strdyn.c \
105 cfg/platon/str/strplus.c
106 certtool_LDADD += libcfg.la
108 noinst_LTLIBRARIES += libcmd-certtool.la
109 libcmd_certtool_la_CFLAGS =
110 libcmd_certtool_la_SOURCES = certtool-gaa.c certtool.gaa certtool-gaa.h \
111 certtool-cfg.h certtool-cfg.c
112 libcmd_certtool_la_LIBADD = ../gl/libgnu.la $(LTLIBREADLINE)
113 libcmd_certtool_la_LIBADD += ../lib/libgnutls.la
114 libcmd_certtool_la_LIBADD += ../gl/libgnu.la $(INET_PTON_LIB)
120 p11tool_SOURCES = p11tool.gaa p11tool.c pkcs11.c certtool-common.c p11tool.h p11common.c
121 p11tool_LDADD = ../lib/libgnutls.la
122 p11tool_LDADD += libcmd-p11tool.la ../gl/libgnu.la
123 p11tool_LDADD += $(LTLIBGCRYPT)
126 p11tool_LDADD += -lcfg+
128 p11tool_LDADD += libcfg.la
131 noinst_LTLIBRARIES += libcmd-p11tool.la
132 libcmd_p11tool_la_CFLAGS =
133 libcmd_p11tool_la_SOURCES = p11tool-gaa.c p11tool.gaa p11tool-gaa.h \
134 certtool-cfg.h certtool-cfg.c
135 libcmd_p11tool_la_LIBADD = ../gl/libgnu.la $(LTLIBREADLINE)
136 libcmd_p11tool_la_LIBADD += ../lib/libgnutls.la
137 libcmd_p11tool_la_LIBADD += ../gl/libgnu.la $(INET_PTON_LIB)
139 endif # ENABLE_PKCS11
142 psk-gaa.c: $(srcdir)/psk.gaa
143 -$(GAA) $< -o psk-gaa.c -i psk-gaa.h
144 crypt-gaa.c: $(srcdir)/crypt.gaa
145 -$(GAA) $< -o crypt-gaa.c -i crypt-gaa.h
147 p11tool-gaa.c: $(srcdir)/p11tool.gaa
148 -$(GAA) $< -o p11tool-gaa.c -i p11tool-gaa.h
150 certtool-gaa.c: $(srcdir)/certtool.gaa
151 -$(GAA) $< -o certtool-gaa.c -i certtool-gaa.h
152 cli-gaa.c: $(srcdir)/cli.gaa
153 -$(GAA) $< -o cli-gaa.c -i cli-gaa.h
154 tls_test-gaa.c: $(srcdir)/tls_test.gaa
155 -$(GAA) $< -o tls_test-gaa.c -i tls_test-gaa.h
156 serv-gaa.c: $(srcdir)/serv.gaa
157 -$(GAA) $< -o serv-gaa.c -i serv-gaa.h