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 Mavroyanopoulos
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 COBJECTS = gnutls_record.c gnutls_compress.c debug.c gnutls_cipher.c \
63 gnutls_buffers.c gnutls_handshake.c gnutls_num.c \
64 gnutls_errors.c gnutls_algorithms.c gnutls_dh.c gnutls_kx.c \
65 gnutls_priority.c gnutls_hash_int.c gnutls_cipher_int.c \
66 gnutls_compress_int.c gnutls_session.c gnutls_db.c x509_b64.c \
67 auth_anon.c gnutls_extensions.c gnutls_auth.c \
68 gnutls_v2_compat.c gnutls_datum.c auth_rsa.c \
69 gnutls_session_pack.c gnutls_mpi.c gnutls_pk.c gnutls_cert.c \
70 gnutls_global.c gnutls_constate.c gnutls_anon_cred.c \
71 pkix_asn1_tab.c gnutls_asn1_tab.c gnutls_mem.c auth_cert.c \
72 gnutls_ui.c gnutls_sig.c auth_dhe.c gnutls_dh_primes.c \
73 ext_max_record.c gnutls_alert.c gnutls_str.c gnutls_state.c \
74 gnutls_x509.c ext_cert_type.c gnutls_rsa_export.c \
75 auth_rsa_export.c ext_server_name.c auth_dh_common.c \
76 gnutls_helper.c ext_inner_application.c gnutls_extra_hooks.c \
80 COBJECTS += ext_authz.c
83 HFILES = debug.h gnutls_compress.h defines.h gnutls_cipher.h \
84 gnutls_buffers.h gnutls_errors.h gnutls_int.h \
85 gnutls_handshake.h gnutls_num.h gnutls_algorithms.h \
86 gnutls_dh.h gnutls_kx.h gnutls_hash_int.h gnutls_cipher_int.h \
87 gnutls_db.h gnutls_compress_int.h gnutls_session.h \
88 gnutls_auth.h auth_anon.h gnutls_extensions.h gnutls_buffer.h \
89 gnutls_auth_int.h x509_b64.h gnutls_v2_compat.h gnutls_datum.h \
90 auth_cert.h gnutls_mpi.h gnutls_pk.h gnutls_record.h \
91 gnutls_cert.h gnutls_constate.h gnutls_global.h gnutls_sig.h \
92 gnutls_mem.h io_debug.h ext_max_record.h gnutls_session_pack.h \
93 gnutls_str.h gnutls_state.h gnutls_x509.h ext_cert_type.h \
94 gnutls_rsa_export.h ext_server_name.h auth_dh_common.h \
95 ext_srp.h gnutls_srp.h auth_srp.h auth_srp_passwd.h \
96 gnutls_helper.h auth_psk.h auth_psk_passwd.h \
97 ext_inner_application.h gnutls_extra_hooks.h \
98 gnutls_supplemental.h ext_authz.h
100 # Separate so we can create the documentation
102 libgnutls_la_SOURCES = $(HFILES) $(COBJECTS) $(SRP_COBJECTS) \
103 $(PSK_COBJECTS) gnutls.asn pkix.asn libgnutls.vers
105 libgnutls_la_LDFLAGS = -no-undefined \
106 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
108 libgnutls_la_LIBADD = ../lgl/liblgnu.la x509/libgnutls_x509.la \
109 @LTLIBZ@ $(LIBGCRYPT_LIBS) @LTLIBINTL@
111 if HAVE_LD_VERSION_SCRIPT
112 libgnutls_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutls.vers
116 libgnutls_la_LIBADD += minitasn1/libminitasn1.la
118 libgnutls_la_LDFLAGS += $(LIBTASN1_LIBS)
121 if HAVE_LD_OUTPUT_DEF
122 libgnutls_la_LDFLAGS += -Wl,--output-def,libgnutls-$(SOVERSION).def
123 defexecdir = $(bindir)
124 defexec_DATA = libgnutls-$(SOVERSION).def
125 DISTCLEANFILES += $(defexec_DATA)
131 CPP_OBJECTS = gnutlsxx.cpp
133 AM_CXXFLAGS = -I$(top_srcdir)/includes/
135 lib_LTLIBRARIES += libgnutlsxx.la
137 libgnutlsxx_la_SOURCES = $(CPP_OBJECTS) libgnutlsxx.vers
139 libgnutlsxx_la_LDFLAGS = -no-undefined \
140 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
142 libgnutlsxx_la_LIBADD = libgnutls.la
144 if HAVE_LD_VERSION_SCRIPT
145 libgnutlsxx_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutlsxx.vers
149 pkix_asn1_tab.c: pkix.asn
150 -asn1Parser pkix.asn pkix_asn1_tab.c
152 gnutls_asn1_tab.c: gnutls.asn
153 -asn1Parser gnutls.asn gnutls_asn1_tab.c
155 gnutls-api.texi: $(COBJECTS) $(SRP_COBJECTS) $(PSK_COBJECTS)
156 @echo "" > gnutls-api.texi
157 @for i in $(COBJECTS) $(SRP_COBJECTS) $(PSK_COBJECTS); do \
158 echo -n "Creating documentation for file $$i... " && \
159 $(top_srcdir)/doc/scripts/gdoc -texinfo $$i >> gnutls-api.texi && \
163 dist-hook: gnutls-api.texi