1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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,
23 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
25 SUBDIRS = gl po includes x509
30 localedir = $(datadir)/locale
32 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS)
34 -DLOCALEDIR=\"$(localedir)\" \
37 -I$(srcdir)/includes \
38 -I$(builddir)/includes \
44 AM_CPPFLAGS += -I$(srcdir)/opencdk
48 AM_CPPFLAGS += -I$(srcdir)/minitasn1
52 pkgconfigdir = $(libdir)/pkgconfig
53 pkgconfig_DATA = gnutls.pc
54 DISTCLEANFILES = $(pkgconfig_DATA)
56 lib_LTLIBRARIES = libgnutls.la
58 SRP_COBJECTS = ext_srp.c gnutls_srp.c auth_srp.c auth_srp_passwd.c \
59 auth_srp_sb64.c auth_srp_rsa.c
61 PSK_COBJECTS = auth_psk.c auth_psk_passwd.c gnutls_psk.c \
62 auth_dhe_psk.c gnutls_psk_netconf.c
64 OPRFI_COBJECTS = ext_oprfi.c
66 SESSION_TICKET_COBJECTS = ext_session_ticket.c
68 COBJECTS = gnutls_record.c gnutls_compress.c debug.c gnutls_cipher.c \
69 gnutls_buffers.c gnutls_handshake.c gnutls_num.c \
70 gnutls_errors.c gnutls_algorithms.c gnutls_dh.c gnutls_kx.c \
71 gnutls_priority.c gnutls_hash_int.c gnutls_cipher_int.c \
72 gnutls_session.c gnutls_db.c x509_b64.c auth_anon.c \
73 gnutls_extensions.c gnutls_auth.c gnutls_v2_compat.c \
74 gnutls_datum.c auth_rsa.c gnutls_session_pack.c gnutls_mpi.c \
75 gnutls_pk.c gnutls_cert.c gnutls_global.c gnutls_constate.c \
76 gnutls_anon_cred.c pkix_asn1_tab.c gnutls_asn1_tab.c \
77 gnutls_mem.c auth_cert.c gnutls_ui.c gnutls_sig.c auth_dhe.c \
78 gnutls_dh_primes.c ext_max_record.c gnutls_alert.c \
79 gnutls_str.c gnutls_state.c gnutls_x509.c ext_cert_type.c \
80 gnutls_rsa_export.c auth_rsa_export.c ext_server_name.c \
81 auth_dh_common.c gnutls_helper.c gnutls_supplemental.c \
82 crypto.c random.c pk-libgcrypt.c mpi-libgcrypt.c \
83 rnd-libgcrypt.c cipher-libgcrypt.c mac-libgcrypt.c ext_signature.c
86 COBJECTS += $(OPRFI_COBJECTS)
89 HFILES = debug.h gnutls_compress.h gnutls_cipher.h gnutls_buffers.h \
90 gnutls_errors.h gnutls_int.h gnutls_handshake.h gnutls_num.h \
91 gnutls_algorithms.h gnutls_dh.h gnutls_kx.h gnutls_hash_int.h \
92 gnutls_cipher_int.h gnutls_db.h gnutls_auth.h auth_anon.h \
93 gnutls_extensions.h x509_b64.h gnutls_v2_compat.h \
94 gnutls_datum.h auth_cert.h gnutls_mpi.h gnutls_pk.h \
95 gnutls_record.h gnutls_cert.h gnutls_constate.h \
96 gnutls_global.h gnutls_sig.h gnutls_mem.h \
97 ext_max_record.h gnutls_session_pack.h gnutls_str.h \
98 gnutls_state.h gnutls_x509.h ext_cert_type.h \
99 gnutls_rsa_export.h ext_server_name.h auth_dh_common.h \
100 ext_srp.h gnutls_srp.h auth_srp.h auth_srp_passwd.h \
101 gnutls_helper.h auth_psk.h auth_psk_passwd.h \
102 gnutls_supplemental.h ext_oprfi.h crypto.h random.h \
103 ext_session_ticket.h ext_signature.h
105 # Separate so we can create the documentation
107 libgnutls_la_SOURCES = $(HFILES) $(COBJECTS) $(SRP_COBJECTS) \
108 $(PSK_COBJECTS) $(SESSION_TICKET_COBJECTS) \
109 gnutls.asn pkix.asn libgnutls.map
111 libgnutls_la_LDFLAGS = -no-undefined \
112 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
114 libgnutls_la_LIBADD = gl/liblgnu.la x509/libgnutls_x509.la \
115 $(LTLIBZ) $(LTLIBGCRYPT) $(LTLIBINTL) $(LIBSOCKET)
118 libgnutls_la_LIBADD += openpgp/libgnutls_openpgp.la
119 libgnutls_la_LIBADD += opencdk/libminiopencdk.la
122 if HAVE_LD_VERSION_SCRIPT
123 libgnutls_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutls.map
125 libgnutls_la_LDFLAGS += -export-symbols-regex '^(gnutls|_gnutls).*'
129 libgnutls_la_LIBADD += minitasn1/libminitasn1.la
131 libgnutls_la_LDFLAGS += $(LTLIBTASN1)
134 if HAVE_LD_OUTPUT_DEF
135 libgnutls_la_LDFLAGS += -Wl,--output-def,libgnutls-$(DLL_VERSION).def
136 defexecdir = $(bindir)
137 defexec_DATA = libgnutls-$(DLL_VERSION).def
138 DISTCLEANFILES += $(defexec_DATA)
144 libgnutlsxx_la_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_builddir)/includes
146 AM_CXXFLAGS = -I$(top_srcdir)/includes/
148 lib_LTLIBRARIES += libgnutlsxx.la
150 libgnutlsxx_la_SOURCES = gnutlsxx.cpp libgnutlsxx.map
152 libgnutlsxx_la_LDFLAGS = -no-undefined \
153 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
155 libgnutlsxx_la_LIBADD = libgnutls.la
157 if HAVE_LD_VERSION_SCRIPT
158 libgnutlsxx_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutlsxx.map
162 pkix_asn1_tab.c: pkix.asn
163 -asn1Parser pkix.asn pkix_asn1_tab.c
165 gnutls_asn1_tab.c: gnutls.asn
166 -asn1Parser gnutls.asn gnutls_asn1_tab.c