summaryrefslogtreecommitdiff
path: root/lib/Makefile.am
blob: 62dca38393ef1542cce68dd93cc5700421927f56 (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
include_HEADERS = gnutls.h 
bin_SCRIPTS = libgnutls-config

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

EXTRA_DIST = debug.h gnutls_compress.h defines.h pkcs1.asn pkix.asn \
	gnutls_cipher.h gnutls_buffers.h gnutls_errors.h gnutls_int.h \
	gnutls_handshake.h gnutls_num.h gnutls_algorithms.h gnutls_dh.h \
	gnutls_kx.h gnutls_hash_int.h gnutls_cipher_int.h gnutls_db.h \
	gnutls_compress_int.h gnutls_session.h gnutls_priority.h gnutls_auth.h \
	auth_anon.h auth_dhe_dss.h gnutls_extensions.h ext_srp.h \
	gnutls_auth_int.h crypt_bcrypt.h gnutls_random.h crypt_srpsha1.h \
	x509_b64.h gnutls_srp.h auth_srp.h auth_srp_passwd.h gnutls_v2_compat.h \
	crypt.h libgnutls-config.in libgnutls.m4 gnutls.h.in.in gnutls_errors_int.h \
	x509_asn1.h x509_der.h gnutls_datum.h auth_x509.h gnutls_gcry.h \
	gnutls_pk.h gnutls_record.h gnutls_cert.h \
	gnutls_privkey.h gnutls_constate.h gnutls_global.h x509_verify.h \
	gnutls_sig.h gnutls_mem.h x509_extensions.h gnutls_ui.h \
	gnutls-api.tex io_debug.h ext_max_record.h gnutls_session_pack.h \
	gnutls_alert.h

lib_LTLIBRARIES = libgnutls.la


COBJECTS = gnutls_record.c gnutls_compress.c debug.c \
	gnutls_cipher.c gnutls_buffers.c gnutls_handshake.c gnutls_num.c \
	gnutls_errors.c gnutls_algorithms.c gnutls_dh.c gnutls_kx.c \
	gnutls_priority.c gnutls_hash_int.c gnutls_cipher_int.c \
	gnutls_compress_int.c gnutls_session.c gnutls_db.c x509_b64.c \
	auth_anon.c auth_dhe_dss.c gnutls_extensions.c ext_srp.c gnutls_auth.c \
	crypt_bcrypt.c crypt.c gnutls_random.c crypt_srpsha1.c gnutls_srp.c \
	auth_srp.c auth_srp_passwd.c gnutls_v2_compat.c auth_srp_sb64.c \
	gnutls_datum.c auth_rsa.c gnutls_session_pack.c \
	gnutls_gcry.c gnutls_pk.c gnutls_cert.c x509_verify.c\
	gnutls_global.c gnutls_privkey.c gnutls_constate.c gnutls_anon_cred.c \
	x509_sig_check.c pkix_asn1_tab.c pkcs1_asn1_tab.c gnutls_mem.c \
	x509_extensions.c auth_x509.c gnutls_ui.c gnutls_sig.c auth_dhe_rsa.c \
	gnutls_dh_primes.c ext_max_record.c gnutls_alert.c

# Separate so we can create the documentation
COBJECTS2 = x509_ASN.y x509_asn1.c x509_der.c

libgnutls_la_SOURCES = $(COBJECTS) $(COBJECTS2) 

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

pkix_asn1_tab.c: pkix.asn
	-../src/asn1c pkix.asn pkix_asn1_tab.c

pkcs1_asn1_tab.c: pkcs1.asn
	-../src/asn1c pkcs1.asn pkcs1_asn1_tab.c

gnutls-api.tex: $(COBJECTS)
	@echo "\\newpage" > gnutls-api.tex
	@echo "\\section{Function Reference}" >> gnutls-api.tex
	@for i in $(COBJECTS); \
	do echo -n "Creating documentation for file $$i... " && ../doc/scripts/gdoc -tex $$i >> gnutls-api.tex \
	&& echo "ok"; \
	done

asn1-api.tex: $(COBJECTS2)
	@echo "\\newpage" > asn1-api.tex
	@echo "\\section{Function Reference}" >> asn1-api.tex
	@for i in $(COBJECTS2); \
	do echo -n "Creating documentation for file $$i... " && ../doc/scripts/gdoc -tex $$i >> asn1-api.tex \
	&& echo "ok"; \
	done

all-local: gnutls-api.tex asn1-api.tex