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
# Author: Nikos Mavrogiannopoulos
6
# This file is part of GNUTLS.
8
# The GNUTLS library is free software; you can redistribute it and/or
9
# modify it under the terms of the GNU Lesser General Public License
10
# as published by the Free Software Foundation; either version 2.1 of
11
# the License, or (at your option) any later version.
13
# The GNUTLS library is distributed in the hope that it will be
14
#useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15
#of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
#Lesser General Public License for more details.
18
# You should have received a copy of the GNU Lesser General Public
19
# License along with the GNUTLS library; if not, write to the Free
20
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
28
localedir = $(datadir)/locale
30
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" \
31
-I$(top_srcdir)/lgl -I$(top_builddir)/lgl \
32
-I$(top_srcdir)/includes -I../includes \
34
-I$(top_srcdir)/libextra -I$(top_srcdir)/libextra/openpgp/ \
35
-I$(top_srcdir)/libextra/opencdk \
36
$(LIBOPENCDK_CFLAGS) $(LIBGCRYPT_CFLAGS)
39
AM_CPPFLAGS += -I$(srcdir)/minitasn1
41
AM_CPPFLAGS += $(LIBTASN1_CFLAGS)
44
bin_SCRIPTS = libgnutls-config
46
m4datadir = $(datadir)/aclocal
47
dist_m4data_DATA = libgnutls.m4
50
pkgconfigdir = $(libdir)/pkgconfig
51
pkgconfig_DATA = gnutls.pc
52
DISTCLEANFILES = $(pkgconfig_DATA)
54
EXTRA_DIST = gnutls-api.texi
55
lib_LTLIBRARIES = libgnutls.la
57
SRP_COBJECTS = ext_srp.c gnutls_srp.c auth_srp.c auth_srp_passwd.c \
58
auth_srp_sb64.c auth_srp_rsa.c
60
PSK_COBJECTS = auth_psk.c auth_psk_passwd.c gnutls_psk.c auth_dhe_psk.c
62
OPRFI_COBJECTS = ext_oprfi.c
64
COBJECTS = gnutls_record.c gnutls_compress.c debug.c gnutls_cipher.c \
65
gnutls_buffers.c gnutls_handshake.c gnutls_num.c \
66
gnutls_errors.c gnutls_algorithms.c gnutls_dh.c gnutls_kx.c \
67
gnutls_priority.c gnutls_hash_int.c gnutls_cipher_int.c \
68
gnutls_compress_int.c gnutls_session.c gnutls_db.c x509_b64.c \
69
auth_anon.c gnutls_extensions.c gnutls_auth.c \
70
gnutls_v2_compat.c gnutls_datum.c auth_rsa.c \
71
gnutls_session_pack.c gnutls_mpi.c gnutls_pk.c gnutls_cert.c \
72
gnutls_global.c gnutls_constate.c gnutls_anon_cred.c \
73
pkix_asn1_tab.c gnutls_asn1_tab.c gnutls_mem.c auth_cert.c \
74
gnutls_ui.c gnutls_sig.c auth_dhe.c gnutls_dh_primes.c \
75
ext_max_record.c gnutls_alert.c gnutls_str.c gnutls_state.c \
76
gnutls_x509.c ext_cert_type.c gnutls_rsa_export.c \
77
auth_rsa_export.c ext_server_name.c auth_dh_common.c \
78
gnutls_helper.c ext_inner_application.c gnutls_extra_hooks.c \
82
COBJECTS += $(OPRFI_COBJECTS)
85
HFILES = debug.h gnutls_compress.h defines.h gnutls_cipher.h \
86
gnutls_buffers.h gnutls_errors.h gnutls_int.h \
87
gnutls_handshake.h gnutls_num.h gnutls_algorithms.h \
88
gnutls_dh.h gnutls_kx.h gnutls_hash_int.h gnutls_cipher_int.h \
89
gnutls_db.h gnutls_compress_int.h gnutls_session.h \
90
gnutls_auth.h auth_anon.h gnutls_extensions.h gnutls_buffer.h \
91
gnutls_auth_int.h x509_b64.h gnutls_v2_compat.h gnutls_datum.h \
92
auth_cert.h gnutls_mpi.h gnutls_pk.h gnutls_record.h \
93
gnutls_cert.h gnutls_constate.h gnutls_global.h gnutls_sig.h \
94
gnutls_mem.h io_debug.h ext_max_record.h gnutls_session_pack.h \
95
gnutls_str.h gnutls_state.h gnutls_x509.h ext_cert_type.h \
96
gnutls_rsa_export.h ext_server_name.h auth_dh_common.h \
97
ext_srp.h gnutls_srp.h auth_srp.h auth_srp_passwd.h \
98
gnutls_helper.h auth_psk.h auth_psk_passwd.h \
99
ext_inner_application.h gnutls_extra_hooks.h \
100
gnutls_supplemental.h ext_oprfi.h
102
# Separate so we can create the documentation
104
libgnutls_la_SOURCES = $(HFILES) $(COBJECTS) $(SRP_COBJECTS) \
105
$(PSK_COBJECTS) gnutls.asn pkix.asn libgnutls.vers
107
libgnutls_la_LDFLAGS = -no-undefined \
108
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
110
libgnutls_la_LIBADD = ../lgl/liblgnu.la x509/libgnutls_x509.la \
111
@LTLIBZ@ $(LIBGCRYPT_LIBS) @LTLIBINTL@
113
if HAVE_LD_VERSION_SCRIPT
114
libgnutls_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutls.vers
118
libgnutls_la_LIBADD += minitasn1/libminitasn1.la
120
libgnutls_la_LDFLAGS += $(LIBTASN1_LIBS)
123
if HAVE_LD_OUTPUT_DEF
124
libgnutls_la_LDFLAGS += -Wl,--output-def,libgnutls-$(SOVERSION).def
125
defexecdir = $(bindir)
126
defexec_DATA = libgnutls-$(SOVERSION).def
127
DISTCLEANFILES += $(defexec_DATA)
133
CPP_OBJECTS = gnutlsxx.cpp
135
AM_CXXFLAGS = -I$(top_srcdir)/includes/
137
lib_LTLIBRARIES += libgnutlsxx.la
139
libgnutlsxx_la_SOURCES = $(CPP_OBJECTS) libgnutlsxx.vers
141
libgnutlsxx_la_LDFLAGS = -no-undefined \
142
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
144
libgnutlsxx_la_LIBADD = libgnutls.la
146
if HAVE_LD_VERSION_SCRIPT
147
libgnutlsxx_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutlsxx.vers
151
pkix_asn1_tab.c: pkix.asn
152
-asn1Parser pkix.asn pkix_asn1_tab.c
154
gnutls_asn1_tab.c: gnutls.asn
155
-asn1Parser gnutls.asn gnutls_asn1_tab.c
157
gnutls-api.texi: $(COBJECTS) $(SRP_COBJECTS) $(PSK_COBJECTS) $(OPRFI_COBJECTS)
158
@echo "" > gnutls-api.texi
159
@for i in $(COBJECTS) $(SRP_COBJECTS) $(PSK_COBJECTS) $(OPRFI_COBJECTS); do \
160
echo -n "Creating documentation for file $$i... " && \
161
$(top_srcdir)/doc/scripts/gdoc -texinfo $$i >> gnutls-api.texi && \
165
dist-hook: gnutls-api.texi