summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: ebe8745a0d5650c80de6737a167ddb0edc177c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
EXTRA_DIST = README README.srptool gnutls-http-serv

SUBDIRS = srp x509 openpgp cfg

INCLUDES = -I$(top_srcdir)/lib -I../includes -I$(top_srcdir)/includes \
	$(LIBOPENCDK_CFLAGS) -I$(top_srcdir)/gl -I$(srcdir)/cfg

bin_PROGRAMS = gnutls-serv gnutls-cli srptool gnutls-cli-debug certtool

gnutls_serv_SOURCES = serv.gaa serv-gaa.h serv-gaa.c list.h serv.c	\
	common.h common.c
gnutls_serv_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la	\
	$(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) $(LIBOPENCDK_LIBS)		\
	$(SERV_LIBS)

srptool_SOURCES = crypt.gaa crypt-gaa.h crypt-gaa.c crypt.c
srptool_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la	\
	$(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) $(LIBOPENCDK_LIBS)		\
	../gl/libgnu.la

gnutls_cli_SOURCES = cli.gaa cli-gaa.h cli-gaa.c cli.c common.h	\
	common.c
gnutls_cli_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la	\
	$(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) $(LIBOPENCDK_LIBS)		\
	$(SERV_LIBS)

gnutls_cli_debug_SOURCES = tls_test.gaa tls_test-gaa.h tls_test-gaa.c	\
	tls_test.c tests.h tests.c common.h common.c
gnutls_cli_debug_LDADD = ../lib/libgnutls.la			\
	../libextra/libgnutls-extra.la $(LIBGCRYPT_LIBS)	\
	$(LIBTASN1_LIBS) $(LIBOPENCDK_LIBS) $(SERV_LIBS)

certtool_SOURCES = certtool.gaa certtool-gaa.h certtool-cfg.h	\
	certtool-gaa.c certtool.c prime.c certtool-cfg.c
certtool_LDADD = ../lib/libgnutls.la $(LIBGCRYPT_LIBS)	\
	$(LIBTASN1_LIBS) ../gl/libgnu.la
if HAVE_LIBCFG
certtool_LDADD += -lcfg+
else
certtool_SOURCES += cfg/cfg+.c cfg/cfgfile.c cfg/cmdline.c cfg/parse.c	\
	cfg/props.c cfg/shared.c cfg/platon/str/dynfgets.c		\
	cfg/platon/str/strctype.c cfg/platon/str/strdyn.c		\
	cfg/platon/str/strplus.c
endif

noinst_PROGRAMS = errcodes
errcodes_SOURCES = errcodes.c
errcodes_LDADD = ../lib/libgnutls.la $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS)



crypt-gaa.c: crypt.gaa
	-gaa crypt.gaa -o crypt-gaa.c -i crypt-gaa.h
certtool-gaa.c: certtool.gaa
	-gaa certtool.gaa -o certtool-gaa.c -i certtool-gaa.h
cli-gaa.c: cli.gaa
	-gaa cli.gaa -o cli-gaa.c -i cli-gaa.h
tls_test-gaa.c: tls_test.gaa
	-gaa tls_test.gaa -o tls_test-gaa.c -i tls_test-gaa.h
serv-gaa.c: serv.gaa
	-gaa serv.gaa -o serv-gaa.c -i serv-gaa.h