1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
4 # Author: Nikos Mavrogiannopoulos
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 3 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 \
29 AM_CPPFLAGS += -I$(top_srcdir)/lib/minitasn1
31 AM_CPPFLAGS += $(LIBTASN1_CFLAGS)
36 bin_SCRIPTS = libgnutls-extra-config
38 m4datadir = $(datadir)/aclocal
39 dist_m4data_DATA = libgnutls-extra.m4
42 pkgconfigdir = $(libdir)/pkgconfig
43 pkgconfig_DATA = gnutls-extra.pc
44 DISTCLEANFILES = $(pkgconfig_DATA)
46 EXTRA_DIST = gnutls-extra-api.texi ia-api.texi
48 defexecdir = $(bindir)
51 lib_LTLIBRARIES = libgnutls-extra.la
53 libgnutls_extra_la_SOURCES = gnutls_extra.c
55 libgnutls_openssl_la_LDFLAGS = -no-undefined
60 lib_LTLIBRARIES += libgnutls-openssl.la
62 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h \
65 libgnutls_openssl_la_LIBADD = ../lgl/liblgnu.la ../lib/libgnutls.la
67 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
70 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
72 libgnutls_openssl_la_LDFLAGS += $(LIBTASN1_LIBS)
76 libgnutls_openssl_la_LDFLAGS += \
77 -Wl,--output-def,libgnutls-openssl-$(SOVERSION).def
78 defexec_DATA += libgnutls-openssl-$(SOVERSION).def
84 libgnutls_extra_la_LIBADD =
85 libgnutls_extra_la_LDFLAGS = -no-undefined
89 libgnutls_extra_la_SOURCES += gnutls_ia.c
94 libgnutls_extra_la_LDFLAGS += \
95 -Wl,--output-def,libgnutls-extra-$(SOVERSION).def
96 defexec_DATA += libgnutls-extra-$(SOVERSION).def
99 DISTCLEANFILES += $(defexec_DATA)
101 libgnutls_extra_la_LDFLAGS += \
102 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
105 libgnutls_extra_la_SOURCES += libgnutls-extra.vers
107 libgnutls_extra_la_LIBADD += ../lgl/liblgnu.la ../lib/libgnutls.la
109 if HAVE_LD_VERSION_SCRIPT
110 libgnutls_extra_la_LDFLAGS += \
111 -Wl,--version-script=$(srcdir)/libgnutls-extra.vers
114 gnutls-extra-api.texi: gnutls_extra.c
117 echo -n "Creating documentation for file $$i... " && \
118 $(top_srcdir)/doc/scripts/gdoc -texinfo $$i >> $@ && \
122 ia-api.texi: gnutls_ia.c
125 echo -n "Creating documentation for file $$i... " && \
126 $(top_srcdir)/doc/scripts/gdoc -texinfo $$i >> $@ && \
130 dist-hook: gnutls-extra-api.texi ia-api.texi