1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
4 # Author: Nikos Mavroyanopoulos
6 # This file is part of GNUTLS-EXTRA.
8 # GNUTLS-EXTRA is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of the
11 # License, or (at your option) any later version.
13 # GNUTLS-EXTRA is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNUTLS-EXTRA; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 AM_CPPFLAGS = -I$(top_srcdir)/lgl -I$(top_builddir)/lgl \
24 -I$(top_srcdir)/lib -I../includes -I$(top_srcdir)/includes \
25 -I$(top_srcdir)/lib/minitasn1 -I$(srcdir)/openpgp \
29 AM_CPPFLAGS += -I$(top_srcdir)/lib/minitasn1
31 AM_CPPFLAGS += $(LIBTASN1_CFLAGS)
37 if ENABLE_INCLUDED_OPENCDK
39 AM_CPPFLAGS += -I$(srcdir)/opencdk
44 bin_SCRIPTS = libgnutls-extra-config
46 m4datadir = $(datadir)/aclocal
47 dist_m4data_DATA = libgnutls-extra.m4
50 pkgconfigdir = $(libdir)/pkgconfig
51 pkgconfig_DATA = gnutls-extra.pc
52 DISTCLEANFILES = $(pkgconfig_DATA)
54 EXTRA_DIST = gnutls-extra-api.texi ia-api.texi
56 defexecdir = $(bindir)
59 lib_LTLIBRARIES = libgnutls-extra.la
61 libgnutls_extra_la_SOURCES = gnutls_extra.c
63 libgnutls_openssl_la_LDFLAGS = -no-undefined
68 lib_LTLIBRARIES += libgnutls-openssl.la
70 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h \
73 libgnutls_openssl_la_LIBADD = ../lgl/liblgnu.la ../lib/libgnutls.la
75 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
78 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
80 libgnutls_openssl_la_LDFLAGS += $(LIBTASN1_LIBS)
84 libgnutls_openssl_la_LDFLAGS += \
85 -Wl,--output-def,libgnutls-openssl-$(SOVERSION).def
86 defexec_DATA += libgnutls-openssl-$(SOVERSION).def
92 libgnutls_extra_la_LIBADD =
93 libgnutls_extra_la_LDFLAGS = -no-undefined
95 libgnutls_extra_la_SOURCES += gnutls_openpgp.c
96 libgnutls_extra_la_LIBADD += openpgp/libgnutls_openpgp.la
97 if ENABLE_INCLUDED_OPENCDK
98 libgnutls_extra_la_LIBADD += opencdk/libminiopencdk.la
100 libgnutls_extra_la_LDFLAGS += $(LTLIBOPENCDK)
106 libgnutls_extra_la_SOURCES += gnutls_ia.c
110 if HAVE_LD_OUTPUT_DEF
111 libgnutls_extra_la_LDFLAGS += \
112 -Wl,--output-def,libgnutls-extra-$(SOVERSION).def
113 defexec_DATA += libgnutls-extra-$(SOVERSION).def
116 DISTCLEANFILES += $(defexec_DATA)
118 libgnutls_extra_la_LDFLAGS += \
119 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
122 libgnutls_extra_la_SOURCES += gnutls_extra.h libgnutls-extra.vers
124 libgnutls_extra_la_LIBADD += ../lgl/liblgnu.la ../lib/libgnutls.la
126 if HAVE_LD_VERSION_SCRIPT
127 libgnutls_extra_la_LDFLAGS += \
128 -Wl,--version-script=$(srcdir)/libgnutls-extra.vers
133 if ENABLE_INCLUDED_LZO
135 libgnutls_extra_la_LIBADD += minilzo/libminilzo.la
138 gnutls-extra-api.texi: gnutls_extra.c
141 echo -n "Creating documentation for file $$i... " && \
142 $(top_srcdir)/doc/scripts/gdoc -texinfo $$i >> $@ && \
146 ia-api.texi: gnutls_ia.c
149 echo -n "Creating documentation for file $$i... " && \
150 $(top_srcdir)/doc/scripts/gdoc -texinfo $$i >> $@ && \
154 dist-hook: gnutls-extra-api.texi ia-api.texi