Drop AC_CANONICAL_TARGET, unused.
[gnutls.git] / libextra / Makefile.am
blob4d0704fcd151b58a669b046678671d12fb2b770d
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
21 # 02110-1301, USA.
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 \
26         $(LIBGCRYPT_CFLAGS)
28 if ENABLE_MINITASN1
29 AM_CPPFLAGS += -I$(top_srcdir)/lib/minitasn1
30 else
31 AM_CPPFLAGS += $(LIBTASN1_CFLAGS)
32 endif
34 SUBDIRS = 
36 bin_SCRIPTS = libgnutls-extra-config
38 m4datadir = $(datadir)/aclocal
39 dist_m4data_DATA = libgnutls-extra.m4
41 # Pkg-config script.
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)
49 defexec_DATA = 
51 lib_LTLIBRARIES = libgnutls-extra.la
53 libgnutls_extra_la_SOURCES = gnutls_extra.c
55 libgnutls_openssl_la_LDFLAGS = -no-undefined
57 # OpenSSL
59 if ENABLE_OPENSSL
60 lib_LTLIBRARIES += libgnutls-openssl.la
62 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h        \
63         openssl_compat.c
65 libgnutls_openssl_la_LIBADD = ../lgl/liblgnu.la ../lib/libgnutls.la 
67 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
69 if ENABLE_MINITASN1
70 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
71 else
72 libgnutls_openssl_la_LDFLAGS += $(LIBTASN1_LIBS) 
73 endif
75 if HAVE_LD_OUTPUT_DEF
76 libgnutls_openssl_la_LDFLAGS += \
77         -Wl,--output-def,libgnutls-openssl-$(SOVERSION).def
78 defexec_DATA += libgnutls-openssl-$(SOVERSION).def
79 endif
80 endif
82 # OpenPGP
84 libgnutls_extra_la_LIBADD =
85 libgnutls_extra_la_LDFLAGS = -no-undefined
87 # TLS/IA
89 libgnutls_extra_la_SOURCES += gnutls_ia.c
91 # Rest
93 if HAVE_LD_OUTPUT_DEF
94 libgnutls_extra_la_LDFLAGS += \
95         -Wl,--output-def,libgnutls-extra-$(SOVERSION).def
96 defexec_DATA += libgnutls-extra-$(SOVERSION).def
97 endif
99 DISTCLEANFILES += $(defexec_DATA)
101 libgnutls_extra_la_LDFLAGS += \
102         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
103         $(LZO_LIBS)
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
112 endif
114 gnutls-extra-api.texi: gnutls_extra.c
115         @echo "" > $@
116         @for i in $<; do \
117                 echo -n "Creating documentation for file $$i... " && \
118                 $(top_srcdir)/doc/scripts/gdoc -texinfo $$i >> $@ && \
119                 echo "ok"; \
120         done
122 ia-api.texi: gnutls_ia.c
123         @echo "" > $@
124         @for i in $<; do \
125                 echo -n "Creating documentation for file $$i... " && \
126                 $(top_srcdir)/doc/scripts/gdoc -texinfo $$i >> $@ && \
127                 echo "ok"; \
128         done
130 dist-hook: gnutls-extra-api.texi ia-api.texi