1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
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 2 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 EXTRA_DIST = README README.srptool
24 AM_CPPFLAGS = -I../includes -I$(top_srcdir)/includes \
25 -I$(top_srcdir)/lgl -I$(top_builddir)/lgl \
26 -I$(top_srcdir)/gl -I$(top_builddir)/gl \
29 bin_PROGRAMS = gnutls-serv gnutls-cli psktool gnutls-cli-debug
31 bin_PROGRAMS += certtool
34 bin_PROGRAMS += srptool
37 gnutls_serv_SOURCES = serv.gaa serv-gaa.h serv-gaa.c list.h serv.c \
38 common.h common.c select.c
39 gnutls_serv_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la \
40 $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) ../gl/libgnu.la
43 srptool_SOURCES = crypt.gaa crypt-gaa.h crypt-gaa.c crypt.c
44 srptool_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la \
45 $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) \
46 ../gl/libgnu.la ../lgl/liblgnu.la
49 psktool_SOURCES = psk.gaa psk-gaa.h psk-gaa.c psk.c
50 psktool_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la \
51 $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) \
52 ../gl/libgnu.la ../lgl/liblgnu.la
54 gnutls_cli_SOURCES = cli.gaa cli-gaa.h cli-gaa.c cli.c common.h \
56 gnutls_cli_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la \
57 $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) ../gl/libgnu.la
59 gnutls_cli_debug_SOURCES = tls_test.gaa tls_test-gaa.h tls_test-gaa.c \
60 tls_test.c tests.h tests.c common.h common.c
61 gnutls_cli_debug_LDADD = ../lib/libgnutls.la \
62 ../libextra/libgnutls-extra.la $(LIBGCRYPT_LIBS) \
63 $(LIBTASN1_LIBS) ../gl/libgnu.la
65 certtool_SOURCES = certtool.gaa certtool-gaa.h certtool-cfg.h \
66 certtool-gaa.c certtool.c prime.c certtool-cfg.c
67 certtool_LDADD = ../lib/libgnutls.la $(LIBGCRYPT_LIBS) \
68 $(LIBTASN1_LIBS) ../gl/libgnu.la @LTLIBREADLINE@
70 certtool_LDADD += -lcfg+
72 certtool_SOURCES += cfg/cfg+.c cfg/cfgfile.c cfg/cmdline.c cfg/parse.c \
73 cfg/props.c cfg/shared.c cfg/platon/str/dynfgets.c \
74 cfg/platon/str/strctype.c cfg/platon/str/strdyn.c \
75 cfg/platon/str/strplus.c
78 noinst_PROGRAMS = errcodes
79 errcodes_SOURCES = errcodes.c
80 errcodes_LDADD = ../lib/libgnutls.la $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS)
84 psk-gaa.c: $(srcdir)/psk.gaa
85 -$(GAA) $< -o psk-gaa.c -i psk-gaa.h
86 crypt-gaa.c: $(srcdir)/crypt.gaa
87 -$(GAA) $< -o crypt-gaa.c -i crypt-gaa.h
88 certtool-gaa.c: $(srcdir)/certtool.gaa
89 -$(GAA) $< -o certtool-gaa.c -i certtool-gaa.h
90 cli-gaa.c: $(srcdir)/cli.gaa
91 -$(GAA) $< -o cli-gaa.c -i cli-gaa.h
92 tls_test-gaa.c: $(srcdir)/tls_test.gaa
93 -$(GAA) $< -o tls_test-gaa.c -i tls_test-gaa.h
94 serv-gaa.c: $(srcdir)/serv.gaa
95 -$(GAA) $< -o serv-gaa.c -i serv-gaa.h