The test now works.
[gnutls.git] / src / Makefile.am
blobddf73c904e04c0fb3e5f8f5272a188cba0858057
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 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 EXTRA_DIST = README README.srptool
22 SUBDIRS = cfg
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 \
27         -I$(srcdir)/cfg
29 bin_PROGRAMS = gnutls-serv gnutls-cli psktool gnutls-cli-debug
30 if ENABLE_PKI
31 bin_PROGRAMS += certtool
32 endif
33 if ENABLE_SRP
34 bin_PROGRAMS += srptool
35 endif
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 \
40         $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) ../gl/libgnu.la
42 if ENABLE_SRP
43 srptool_SOURCES = crypt.gaa crypt-gaa.h crypt-gaa.c crypt.c
44 srptool_LDADD = ../lib/libgnutls.la \
45         $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS)                              \
46         ../gl/libgnu.la ../lgl/liblgnu.la
47 endif
49 psktool_SOURCES = psk.gaa psk-gaa.h psk-gaa.c psk.c
50 psktool_LDADD = ../lib/libgnutls.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 \
55         common.c select.c
56 gnutls_cli_LDADD = ../lib/libgnutls.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         $(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@
69 if HAVE_LIBCFG
70 certtool_LDADD += -lcfg+
71 else
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
76 endif
78 noinst_PROGRAMS = errcodes
79 errcodes_SOURCES = errcodes.c
80 errcodes_LDADD = ../lib/libgnutls.la $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) \
81         ../gl/libgnu.la ../lgl/liblgnu.la
85 psk-gaa.c: $(srcdir)/psk.gaa
86         -$(GAA) $< -o psk-gaa.c -i psk-gaa.h
87 crypt-gaa.c: $(srcdir)/crypt.gaa
88         -$(GAA) $< -o crypt-gaa.c -i crypt-gaa.h
89 certtool-gaa.c: $(srcdir)/certtool.gaa
90         -$(GAA) $< -o certtool-gaa.c -i certtool-gaa.h
91 cli-gaa.c: $(srcdir)/cli.gaa
92         -$(GAA) $< -o cli-gaa.c -i cli-gaa.h
93 tls_test-gaa.c: $(srcdir)/tls_test.gaa
94         -$(GAA) $< -o tls_test-gaa.c -i tls_test-gaa.h
95 serv-gaa.c: $(srcdir)/serv.gaa
96         -$(GAA) $< -o serv-gaa.c -i serv-gaa.h