summaryrefslogtreecommitdiff
path: root/libextra/Makefile.am
blob: 67e7fa9b474a9acc692c250cbc7e4b6c45cc7cc5 (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
63
64
65
66
67
68
69
70
71
72
73
74
INCLUDES = -I../lib -I../includes -I../lib/minitasn1/ $(LIBOPENCDK_CFLAGS) $(LIBGCRYPT_CFLAGS) -Iopencdk/
bin_SCRIPTS = libgnutls-extra-config
DIST_SUBDIRS = openpgp opencdk

m4datadir = $(datadir)/aclocal
m4data_DATA = libgnutls-extra.m4

if HAVE_LD_VERSION_SCRIPT
  libgnutls_extra_version_script_cmd = -Wl,--version-script=$(srcdir)/libgnutls-extra.vers
else
  libgnutls_extra_version_script_cmd =
endif

EXTRA_DIST = ext_srp.h gnutls_srp.h libgnutls-extra.vers \
	auth_srp.h auth_srp_passwd.h openssl_compat.h \
	gnutls-extra-api.tex gnutls_extra.h libgnutls-extra-config.in \
	libgnutls-extra.m4 lzoconf.h minilzo.h


if ENABLE_OPENSSL
lib_LTLIBRARIES = libgnutls-extra.la libgnutls-openssl.la

libgnutls_openssl_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)

libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.c

libgnutls_openssl_la_LIBADD = \
	../lib/libgnutls.la
else
lib_LTLIBRARIES = libgnutls-extra.la
endif

if ENABLE_OPENPGP
PGP_SOURCES = gnutls_openpgp.c
if ENABLE_INCLUDED_OPENCDK
SUBDIRS = openpgp opencdk
PGP_OBJECTS = openpgp/libpgp.la opencdk/libopencdk.la
else
SUBDIRS = openpgp
PGP_OBJECTS = openpgp/libpgp.la
endif
endif

if ENABLE_INCLUDED_LZO
LZO_OBJECTS = minilzo.c
else

LZO_OBJECTS = 
endif


COBJECTS_EXTRA = ext_srp.c \
	gnutls_srp.c auth_srp.c auth_srp_passwd.c auth_srp_sb64.c \
	gnutls_extra.c auth_srp_rsa.c $(PGP_SOURCES)


libgnutls_extra_la_LDFLAGS = $(libgnutls_extra_version_script_cmd) \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	$(LIBOPENCDK_LIBS) $(LZO_LIBS)

libgnutls_extra_la_SOURCES = $(COBJECTS_EXTRA) $(LZO_OBJECTS)

libgnutls_extra_la_LIBADD = $(PGP_OBJECTS) \
	../lib/libgnutls.la


gnutls-extra-api.tex: $(COBJECTS_EXTRA)
	@echo "" > gnutls-extra-api.tex
	@for i in $(COBJECTS_EXTRA); \
	do echo -n "Creating documentation for file $$i... " && ../doc/scripts/gdoc -tex $$i >> gnutls-extra-api.tex \
	&& echo "ok"; \
	done

dist-hook: gnutls-extra-api.tex