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
43 gnutls_serv_SOURCES = list.h serv.c common.h common.c certtool-common.h
44 gnutls_serv_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la
45 gnutls_serv_LDADD += libcmd-serv.la ../gl/libgnu.la
46 gnutls_serv_LDADD += $(LTLIBGCRYPT) $(LIBSOCKET) $(GETADDRINFO_LIB)
47 noinst_LTLIBRARIES += libcmd-serv.la
48 libcmd_serv_la_CFLAGS =
49 libcmd_serv_la_SOURCES = serv.gaa serv-gaa.h serv-gaa.c
52 srptool_SOURCES = crypt.c
53 srptool_LDADD = ../lib/libgnutls.la libcmd-srp.la ../gl/libgnu.la
54 noinst_LTLIBRARIES += libcmd-srp.la
55 libcmd_srp_la_CFLAGS =
56 libcmd_srp_la_SOURCES = crypt.gaa crypt-gaa.h crypt-gaa.c
59 psktool_SOURCES = psk.c
60 psktool_LDADD = ../lib/libgnutls.la libcmd-psk.la ../gl/libgnu.la
61 noinst_LTLIBRARIES += libcmd-psk.la
62 libcmd_psk_la_CFLAGS =
63 libcmd_psk_la_SOURCES = psk.gaa psk-gaa.h psk-gaa.c
65 benchmark_SOURCES = benchmark.c
66 benchmark_LDADD = ../lib/libgnutls.la ../gl/libgnu.la -lrt
68 gnutls_cli_SOURCES = cli.c common.h common.c
69 gnutls_cli_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la
70 gnutls_cli_LDADD += libcmd-cli.la ../gl/libgnu.la
71 gnutls_cli_LDADD += $(LTLIBGCRYPT) $(LIBSOCKET) $(GETADDRINFO_LIB)
72 noinst_LTLIBRARIES += libcmd-cli.la
73 libcmd_cli_la_CFLAGS =
74 libcmd_cli_la_SOURCES = cli.gaa cli-gaa.h cli-gaa.c
76 gnutls_cli_debug_SOURCES = tls_test.c tests.h tests.c common.h common.c
77 gnutls_cli_debug_LDADD = ../lib/libgnutls.la libcmd-cli-debug.la
78 gnutls_cli_debug_LDADD += ../gl/libgnu.la $(LIBSOCKET) $(GETADDRINFO_LIB)
79 noinst_LTLIBRARIES += libcmd-cli-debug.la
80 libcmd_cli_debug_la_CFLAGS =
81 libcmd_cli_debug_la_SOURCES = tls_test.gaa tls_test-gaa.h tls_test-gaa.c
83 certtool_SOURCES = certtool.c prime.c
84 certtool_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la
85 certtool_LDADD += libcmd-certtool.la ../gl/libgnu.la
86 certtool_LDADD += $(LTLIBGCRYPT)
88 certtool_LDADD += -lcfg+
90 noinst_LTLIBRARIES += libcfg.la
92 libcfg_la_SOURCES = cfg/cfg+.c cfg/cfgfile.c cfg/cmdline.c cfg/parse.c \
93 cfg/props.c cfg/shared.c cfg/platon/str/dynfgets.c \
94 cfg/platon/str/strctype.c cfg/platon/str/strdyn.c \
95 cfg/platon/str/strplus.c
96 certtool_LDADD += libcfg.la
98 noinst_LTLIBRARIES += libcmd-certtool.la
99 libcmd_certtool_la_CFLAGS =
100 libcmd_certtool_la_SOURCES = certtool.gaa certtool-gaa.h \
101 certtool-gaa.c certtool-cfg.h certtool-cfg.c
102 libcmd_certtool_la_LIBADD = ../gl/libgnu.la $(LTLIBREADLINE)
103 libcmd_certtool_la_LIBADD += ../lib/libgnutls.la ../libextra/libgnutls-extra.la
104 libcmd_certtool_la_LIBADD += ../gl/libgnu.la $(INET_PTON_LIB)
106 psk-gaa.c: $(srcdir)/psk.gaa
107 -$(GAA) $< -o psk-gaa.c -i psk-gaa.h
108 crypt-gaa.c: $(srcdir)/crypt.gaa
109 -$(GAA) $< -o crypt-gaa.c -i crypt-gaa.h
110 certtool-gaa.c: $(srcdir)/certtool.gaa
111 -$(GAA) $< -o certtool-gaa.c -i certtool-gaa.h
112 cli-gaa.c: $(srcdir)/cli.gaa
113 -$(GAA) $< -o cli-gaa.c -i cli-gaa.h
114 tls_test-gaa.c: $(srcdir)/tls_test.gaa
115 -$(GAA) $< -o tls_test-gaa.c -i tls_test-gaa.h
116 serv-gaa.c: $(srcdir)/serv.gaa
117 -$(GAA) $< -o serv-gaa.c -i serv-gaa.h