Remove.
[gnutls.git] / lib / Makefile.am
blob5e4ce56c627539e46f348091e6cf5e27a2fff73f
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
3 # 2009, 2010 Free Software Foundation, Inc.
5 # Author: Nikos Mavrogiannopoulos
7 # This file is part of GNUTLS.
9 # The GNUTLS library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public License
11 # as published by the Free Software Foundation; either version 2.1 of
12 # the License, or (at your option) any later version.
14 # The GNUTLS library is distributed in the hope that it will be
15 # useful, but WITHOUT ANY WARRANTY; without even the implied warranty
16 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with the GNUTLS library; if not, write to the Free
21 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22 # MA 02110-1301, USA
24 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
26 SUBDIRS = gl po includes x509
27 if ENABLE_MINITASN1
28 SUBDIRS += minitasn1
29 endif
31 localedir = $(datadir)/locale
33 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS)
34 AM_CPPFLAGS = \
35         -DLOCALEDIR=\"$(localedir)\"            \
36         -I$(srcdir)/gl                          \
37         -I$(builddir)/gl                        \
38         -I$(srcdir)/includes                    \
39         -I$(builddir)/includes                  \
40         -I$(srcdir)/x509
42 if ENABLE_OPENPGP
43 SUBDIRS += opencdk
44 SUBDIRS += openpgp
45 AM_CPPFLAGS += -I$(srcdir)/opencdk
46 endif
48 if ENABLE_MINITASN1
49 AM_CPPFLAGS += -I$(srcdir)/minitasn1
50 endif
52 # Pkg-config script.
53 pkgconfigdir = $(libdir)/pkgconfig
54 pkgconfig_DATA = gnutls.pc
55 DISTCLEANFILES = $(pkgconfig_DATA)
57 lib_LTLIBRARIES = libgnutls.la
59 SRP_COBJECTS = ext_srp.c gnutls_srp.c auth_srp.c auth_srp_passwd.c      \
60         auth_srp_sb64.c auth_srp_rsa.c
62 PSK_COBJECTS = auth_psk.c auth_psk_passwd.c gnutls_psk.c        \
63         auth_dhe_psk.c gnutls_psk_netconf.c
65 OPRFI_COBJECTS = ext_oprfi.c
67 SESSION_TICKET_COBJECTS = ext_session_ticket.c
69 COBJECTS = gnutls_record.c gnutls_compress.c debug.c gnutls_cipher.c    \
70         gnutls_buffers.c gnutls_handshake.c gnutls_num.c                \
71         gnutls_errors.c gnutls_algorithms.c gnutls_dh.c gnutls_kx.c     \
72         gnutls_priority.c gnutls_hash_int.c gnutls_cipher_int.c         \
73         gnutls_session.c gnutls_db.c x509_b64.c auth_anon.c             \
74         gnutls_extensions.c gnutls_auth.c gnutls_v2_compat.c            \
75         gnutls_datum.c auth_rsa.c gnutls_session_pack.c gnutls_mpi.c    \
76         gnutls_pk.c gnutls_cert.c gnutls_global.c gnutls_constate.c     \
77         gnutls_anon_cred.c pkix_asn1_tab.c gnutls_asn1_tab.c            \
78         gnutls_mem.c auth_cert.c gnutls_ui.c gnutls_sig.c auth_dhe.c    \
79         gnutls_dh_primes.c ext_max_record.c gnutls_alert.c              \
80         gnutls_str.c gnutls_state.c gnutls_x509.c ext_cert_type.c       \
81         gnutls_rsa_export.c auth_rsa_export.c ext_server_name.c         \
82         auth_dh_common.c gnutls_helper.c gnutls_supplemental.c          \
83         crypto.c random.c pk-libgcrypt.c mpi-libgcrypt.c cryptodev.c    \
84         rnd-libgcrypt.c cipher-libgcrypt.c mac-libgcrypt.c ext_signature.c \
85         crypto-api.c ext_safe_renegotiation.c
87 if ENABLE_OPRFI
88 COBJECTS += $(OPRFI_COBJECTS)
89 endif
91 HFILES = debug.h gnutls_compress.h gnutls_cipher.h gnutls_buffers.h     \
92         gnutls_errors.h gnutls_int.h gnutls_handshake.h gnutls_num.h    \
93         gnutls_algorithms.h gnutls_dh.h gnutls_kx.h gnutls_hash_int.h   \
94         gnutls_cipher_int.h gnutls_db.h gnutls_auth.h auth_anon.h       \
95         gnutls_extensions.h x509_b64.h gnutls_v2_compat.h               \
96         gnutls_datum.h auth_cert.h gnutls_mpi.h gnutls_pk.h             \
97         gnutls_record.h gnutls_cert.h gnutls_constate.h                 \
98         gnutls_global.h gnutls_sig.h gnutls_mem.h                       \
99         ext_max_record.h gnutls_session_pack.h gnutls_str.h             \
100         gnutls_state.h gnutls_x509.h ext_cert_type.h                    \
101         gnutls_rsa_export.h ext_server_name.h auth_dh_common.h          \
102         ext_srp.h gnutls_srp.h auth_srp.h auth_srp_passwd.h             \
103         gnutls_helper.h auth_psk.h auth_psk_passwd.h                    \
104         gnutls_supplemental.h ext_oprfi.h crypto.h random.h             \
105         ext_session_ticket.h ext_signature.h gnutls_cryptodev.h         \
106         ext_safe_renegotiation.h
108 # Separate so we can create the documentation
110 libgnutls_la_SOURCES = $(HFILES) $(COBJECTS) $(SRP_COBJECTS)    \
111         $(PSK_COBJECTS) $(SESSION_TICKET_COBJECTS) \
112         gnutls.asn pkix.asn libgnutls.map
114 libgnutls_la_LDFLAGS = -no-undefined \
115         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
117 libgnutls_la_LIBADD = gl/liblgnu.la x509/libgnutls_x509.la \
118         $(LTLIBZ) $(LTLIBGCRYPT) $(LTLIBINTL) $(LIBSOCKET)
120 if ENABLE_OPENPGP
121 libgnutls_la_LIBADD += openpgp/libgnutls_openpgp.la
122 libgnutls_la_LIBADD += opencdk/libminiopencdk.la
123 endif
125 if HAVE_LD_VERSION_SCRIPT
126 libgnutls_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutls.map
127 else
128 libgnutls_la_LDFLAGS += -export-symbols-regex '^(gnutls|_gnutls).*'
129 endif
131 if ENABLE_MINITASN1
132 libgnutls_la_LIBADD += minitasn1/libminitasn1.la
133 else
134 libgnutls_la_LDFLAGS += $(LTLIBTASN1)
135 endif
137 if HAVE_LD_OUTPUT_DEF
138 libgnutls_la_LDFLAGS += -Wl,--output-def,libgnutls-$(DLL_VERSION).def
139 defexecdir = $(bindir)
140 defexec_DATA = libgnutls-$(DLL_VERSION).def
141 DISTCLEANFILES += $(defexec_DATA)
142 endif
144 # C++ library
146 if ENABLE_CXX
147 libgnutlsxx_la_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_builddir)/includes
149 AM_CXXFLAGS = -I$(top_srcdir)/includes/
151 lib_LTLIBRARIES += libgnutlsxx.la
153 libgnutlsxx_la_SOURCES = gnutlsxx.cpp libgnutlsxx.map
155 libgnutlsxx_la_LDFLAGS = -no-undefined \
156         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
158 libgnutlsxx_la_LIBADD = libgnutls.la
160 if HAVE_LD_VERSION_SCRIPT
161 libgnutlsxx_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libgnutlsxx.map
162 endif
163 endif
165 pkix_asn1_tab.c: pkix.asn
166         -asn1Parser pkix.asn pkix_asn1_tab.c
168 gnutls_asn1_tab.c: gnutls.asn
169         -asn1Parser gnutls.asn gnutls_asn1_tab.c