~ubuntu-branches/ubuntu/intrepid/gnutls26/intrepid-proposed

« back to all changes in this revision

Viewing changes to lib/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2008-05-01 13:09:49 UTC
  • Revision ID: james.westby@ubuntu.com-20080501130949-qsbsi06stso6a0ij
Tags: upstream-2.2.3~rc
ImportĀ upstreamĀ versionĀ 2.2.3~rc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
 
3
#
 
4
# Author: Nikos Mavrogiannopoulos
 
5
#
 
6
# This file is part of GNUTLS.
 
7
#
 
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.
 
12
#
 
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.
 
17
#
 
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,
 
21
# MA 02110-1301, USA
 
22
 
 
23
SUBDIRS = x509
 
24
if ENABLE_MINITASN1
 
25
SUBDIRS += minitasn1
 
26
endif
 
27
 
 
28
localedir = $(datadir)/locale
 
29
 
 
30
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"                              \
 
31
        -I$(top_srcdir)/lgl -I$(top_builddir)/lgl                       \
 
32
        -I$(top_srcdir)/includes -I../includes                          \
 
33
        -I$(srcdir)/x509                                                \
 
34
        -I$(top_srcdir)/libextra -I$(top_srcdir)/libextra/openpgp/      \
 
35
        -I$(top_srcdir)/libextra/opencdk                                \
 
36
        $(LIBOPENCDK_CFLAGS) $(LIBGCRYPT_CFLAGS)
 
37
 
 
38
if ENABLE_MINITASN1
 
39
AM_CPPFLAGS += -I$(srcdir)/minitasn1
 
40
else
 
41
AM_CPPFLAGS += $(LIBTASN1_CFLAGS)
 
42
endif
 
43
 
 
44
bin_SCRIPTS = libgnutls-config
 
45
 
 
46
m4datadir = $(datadir)/aclocal
 
47
dist_m4data_DATA = libgnutls.m4
 
48
 
 
49
# Pkg-config script.
 
50
pkgconfigdir = $(libdir)/pkgconfig
 
51
pkgconfig_DATA = gnutls.pc
 
52
DISTCLEANFILES = $(pkgconfig_DATA)
 
53
 
 
54
EXTRA_DIST = gnutls-api.texi
 
55
lib_LTLIBRARIES = libgnutls.la
 
56
 
 
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
 
59
 
 
60
PSK_COBJECTS = auth_psk.c auth_psk_passwd.c gnutls_psk.c auth_dhe_psk.c
 
61
 
 
62
OPRFI_COBJECTS = ext_oprfi.c
 
63
 
 
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    \
 
79
        gnutls_supplemental.c
 
80
 
 
81
if ENABLE_OPRFI
 
82
COBJECTS += $(OPRFI_COBJECTS)
 
83
endif
 
84
 
 
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
 
101
 
 
102
# Separate so we can create the documentation
 
103
 
 
104
libgnutls_la_SOURCES = $(HFILES) $(COBJECTS) $(SRP_COBJECTS)    \
 
105
        $(PSK_COBJECTS) gnutls.asn pkix.asn libgnutls.vers
 
106
 
 
107
libgnutls_la_LDFLAGS = -no-undefined \
 
108
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
109
 
 
110
libgnutls_la_LIBADD = ../lgl/liblgnu.la x509/libgnutls_x509.la \
 
111
        @LTLIBZ@ $(LIBGCRYPT_LIBS) @LTLIBINTL@
 
112
 
 
113
if HAVE_LD_VERSION_SCRIPT
 
114
libgnutls_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutls.vers
 
115
endif
 
116
 
 
117
if ENABLE_MINITASN1
 
118
libgnutls_la_LIBADD += minitasn1/libminitasn1.la
 
119
else
 
120
libgnutls_la_LDFLAGS += $(LIBTASN1_LIBS) 
 
121
endif
 
122
 
 
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)
 
128
endif
 
129
 
 
130
# C++ library
 
131
 
 
132
if ENABLE_CXX
 
133
CPP_OBJECTS = gnutlsxx.cpp
 
134
 
 
135
AM_CXXFLAGS = -I$(top_srcdir)/includes/
 
136
 
 
137
lib_LTLIBRARIES += libgnutlsxx.la
 
138
 
 
139
libgnutlsxx_la_SOURCES = $(CPP_OBJECTS) libgnutlsxx.vers
 
140
 
 
141
libgnutlsxx_la_LDFLAGS = -no-undefined \
 
142
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
143
 
 
144
libgnutlsxx_la_LIBADD = libgnutls.la
 
145
 
 
146
if HAVE_LD_VERSION_SCRIPT
 
147
libgnutlsxx_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutlsxx.vers
 
148
endif
 
149
endif
 
150
 
 
151
pkix_asn1_tab.c: pkix.asn
 
152
        -asn1Parser pkix.asn pkix_asn1_tab.c
 
153
 
 
154
gnutls_asn1_tab.c: gnutls.asn
 
155
        -asn1Parser gnutls.asn gnutls_asn1_tab.c
 
156
 
 
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 && \
 
162
                echo "ok"; \
 
163
        done
 
164
 
 
165
dist-hook: gnutls-api.texi