]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Separate headers as well. Clean up -I's.
authorSimon Josefsson <simon@josefsson.org>
Thu, 30 Oct 2008 18:55:31 +0000 (19:55 +0100)
committerSimon Josefsson <simon@josefsson.org>
Thu, 30 Oct 2008 18:55:31 +0000 (19:55 +0100)
33 files changed:
Makefile.am
configure.in
doc/Makefile.am
doc/examples/Makefile.am
doc/reference/Makefile.am
guile/src/Makefile.am
includes/Makefile.am [deleted file]
lib/Makefile.am
lib/configure.ac
lib/includes/Makefile.am [new file with mode: 0644]
lib/includes/gnutls/compat.h [moved from includes/gnutls/compat.h with 100% similarity]
lib/includes/gnutls/crypto.h [moved from includes/gnutls/crypto.h with 100% similarity]
lib/includes/gnutls/gnutls.h.in [moved from includes/gnutls/gnutls.h.in with 100% similarity]
lib/includes/gnutls/gnutlsxx.h [moved from includes/gnutls/gnutlsxx.h with 100% similarity]
lib/includes/gnutls/openpgp.h [moved from includes/gnutls/openpgp.h with 100% similarity]
lib/includes/gnutls/pkcs12.h [moved from includes/gnutls/pkcs12.h with 100% similarity]
lib/includes/gnutls/x509.h [moved from includes/gnutls/x509.h with 100% similarity]
lib/opencdk/Makefile.am
lib/openpgp/Makefile.am
lib/x509/Makefile.am
libextra/Makefile.am
libextra/configure.ac
libextra/includes/Makefile.am [new file with mode: 0644]
libextra/includes/gnutls/extra.h [moved from includes/gnutls/extra.h with 100% similarity]
libextra/includes/gnutls/openssl.h [moved from includes/gnutls/openssl.h with 100% similarity]
src/Makefile.am
tests/Makefile.am
tests/hostname-check.README [moved from tests/hostname-check/README with 100% similarity]
tests/hostname-check.c [moved from tests/hostname-check/hostname-check.c with 100% similarity]
tests/hostname-check/Makefile.am [deleted file]
tests/openpgp-keyring.c [moved from tests/openpgp/keyring.c with 100% similarity]
tests/openpgp/Makefile.am [deleted file]
tests/pkcs12-decode/Makefile.am

index 69f0c0dae3803f9aa260a27c0efd03f63d318d88..e89a0dd4d76650b12c0bc6464c51f1dcadcfd08d 100644 (file)
@@ -22,7 +22,7 @@
 
 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
 
-SUBDIRS = gl includes lib libextra src doc tests
+SUBDIRS = gl lib libextra src doc tests
 
 if HAVE_GUILE
 SUBDIRS += guile
index f590a472a716d93c7d9c5dff4c5759eba07d779c..b93c40c5ef574cb2309e9057ee8defebc31772a4 100644 (file)
@@ -29,12 +29,6 @@ AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([1.10 dist-bzip2 -Wall -Werror -Wno-override])
 AM_CONFIG_HEADER(config.h)
 
-# Compute numeric versions, used in includes/gnutls/gnutls.h.in.
-AC_SUBST(MAJOR_VERSION, `echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`)
-AC_SUBST(MINOR_VERSION, `echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`)
-AC_SUBST(PATCH_VERSION, `echo $PACKAGE_VERSION | sed 's/.*\..*\.\(.*\)/\1/g'`)
-AC_SUBST(NUMBER_VERSION, `printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`)
-
 opt_developer_mode=no
 AC_MSG_CHECKING([whether to enable compiler warnings])
 AC_ARG_ENABLE(developer-mode,
@@ -313,7 +307,6 @@ AC_CONFIG_FILES([Makefile \
        tests/pkcs12-decode/Makefile tests/pathlen/Makefile \
        tests/key-id/Makefile tests/sha2/Makefile \
        tests/hostname-check/Makefile \
-       includes/Makefile includes/gnutls/gnutls.h \
        tests/openpgp/Makefile tests/openpgp-certs/Makefile \
        src/Makefile \
        src/cfg/Makefile src/cfg/platon/Makefile src/cfg/platon/str/Makefile \
index 5c093c846b2a51437de8ab825a27e05b5c2b9c6b..68a09124c162b3bc8bd01c42d154d4754b3b7467 100644 (file)
@@ -144,8 +144,9 @@ if HAVE_GUILE
 GUILE_FOR_BUILD = $(GUILE) -L $(top_srcdir)/guile/modules
 
 SNARF_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)                     \
-                -I$(top_srcdir)/includes -I$(top_builddir)/includes    \
-                -I$(top_srcdir)/guile/src -I$(top_builddir)/guile/src
+        -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes    \
+        -I$(top_srcdir)/libextra/includes                              \
+         -I$(top_srcdir)/guile/src -I$(top_builddir)/guile/src
 
 core.c.texi: $(top_srcdir)/guile/src/core.c
        $(MAKE) -C ../guile/src built-sources &&                        \
index df39364b031eca09fdfcf7093ffec870f780dff2..a841b81b2f83df7102a53ae53067e26f95eb96d6 100644 (file)
 # along with this file; if not, write to the Free Software Foundation,
 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
-AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_builddir)/includes \
-               -I$(top_srcdir)/lgl -I$(top_builddir)/lgl \
-               -I$(top_srcdir)/gl -I$(top_builddir)/gl
+AM_CPPFLAGS = \
+       -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes     \
+       -I$(top_srcdir)/libextra/includes                               \
+       -I$(top_srcdir)/gl -I$(top_builddir)/gl
+
 AM_LDFLAGS = -no-install
 LDADD = libexamples.la \
        ../../lib/libgnutls.la  \
index 171d5aac7bfe9305b7bfe883516138b41c688d4e..acd8cec0306ec483dc95bae075f5fdc30eb9006e 100644 (file)
@@ -18,7 +18,7 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
 # gtk-doc will search all .c & .h files beneath here for inline comments
 # documenting the functions and macros.
 # e.g. DOC_SOURCE_DIR=../../../gtk
-DOC_SOURCE_DIR=../../lib --source-dir=../../libextra --source-dir=../../includes
+DOC_SOURCE_DIR=../../lib --source-dir=../../libextra
 
 # Extra options to pass to gtkdoc-scangobj. Not normally needed.
 SCANGOBJ_OPTIONS=
@@ -45,12 +45,13 @@ FIXXREF_OPTIONS=
 # Used for dependencies. The docs will be rebuilt if any of these change.
 # e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
 # e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
-HFILE_GLOB=$(top_srcdir)/includes/gnutls/*.h $(top_builddir)/includes/gnutls/*.h
+HFILE_GLOB=$(top_srcdir)/lib/includes/gnutls/*.h $(top_builddir)/lib/includes/gnutls/*.h $(top_srcdir)/libextra/includes/gnutls/*.h
 CFILE_GLOB=$(top_srcdir)/lib/*.c \
        $(top_srcdir)/lib/x509/*.c \
        $(top_srcdir)/lib/openpgp/*.c \
        $(top_srcdir)/libextra/*.c \
-       $(top_srcdir)/lib/minitasn1/*.c
+       $(top_srcdir)/lib/minitasn1/*.c \
+       $(top_srcdir)/libextra/*.c
 
 # Header files to ignore when scanning.
 # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
index 0c6799c3fdf972d88609636fc4a56b3e8be095c6..622ecaa333cc64d0d1539830a6bfabafccb2cac0 100644 (file)
@@ -58,8 +58,11 @@ libguile_gnutls_extra_v_1_la_LIBADD =                \
   $(builddir)/libguile-gnutls-v-1.la           \
   $(GNULIB_LIBS) $(GUILE_LDFLAGS)
 
-AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_builddir)/includes      \
-              -I$(top_builddir) -I$(builddir)
+AM_CPPFLAGS = \
+       -I$(top_srcdir)/lib/includes \
+       -I$(top_builddir)/lib/includes  \
+       -I$(top_srcdir)/libextra/includes \
+       -I$(builddir)
 
 if HAVE_GCC
 
diff --git a/includes/Makefile.am b/includes/Makefile.am
deleted file mode 100644 (file)
index a9ef64a..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-## Process this file with automake to produce Makefile.in
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
-#
-# Author: Nikos Mavroyanopoulos
-#
-# This file is part of GNUTLS.
-#
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This file is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this file; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-nobase_include_HEADERS = gnutls/extra.h gnutls/x509.h gnutls/pkcs12.h  \
-       gnutls/compat.h gnutls/openpgp.h gnutls/crypto.h
-
-if ENABLE_OPENSSL
-nobase_include_HEADERS += gnutls/openssl.h
-endif
-
-if ENABLE_CXX
-nobase_include_HEADERS += gnutls/gnutlsxx.h
-endif
-
-nobase_nodist_include_HEADERS = gnutls/gnutls.h
index 050b154a9aaed5e48559668ecd42c043787ef8c5..1134b640a6f39323398d3fe7553ac2b8f7f8eae1 100644 (file)
 
 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
 
-SUBDIRS = gl po x509
+SUBDIRS = gl includes po x509
 if ENABLE_MINITASN1
 SUBDIRS += minitasn1
 endif
 
 localedir = $(datadir)/locale
 
-AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"                             \
-       -I$(srcdir)/gl -I$(builddir)/gl                                 \
-       -I$(srcdir)/../includes -I$(builddir)../includes                \
+AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"     \
+       -I$(srcdir)/gl                          \
+       -I$(builddir)/gl                        \
+       -I$(srcdir)/includes                    \
+       -I$(builddir)/includes                  \
        -I$(srcdir)/x509
 
 if ENABLE_OPENPGP
index 1ca90f3ff9f1e966e8d95d1c908c8451cbd1a21a..e7c469ea48c0b2480f168ebee5bebbd7e97ab197 100644 (file)
@@ -29,6 +29,12 @@ AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-override])
 AM_CONFIG_HEADER(config.h)
 
+# Compute numeric versions, used in includes/gnutls/gnutls.h.in.
+AC_SUBST(MAJOR_VERSION, `echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`)
+AC_SUBST(MINOR_VERSION, `echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`)
+AC_SUBST(PATCH_VERSION, `echo $PACKAGE_VERSION | sed 's/.*\..*\.\(.*\)/\1/g'`)
+AC_SUBST(NUMBER_VERSION, `printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`)
+
 AC_PROG_CC
 lgl_EARLY
 
@@ -71,6 +77,8 @@ AC_SUBST(LIBGNUTLS_CFLAGS)
 
 AC_CONFIG_FILES([ \
   Makefile \
+  includes/Makefile
+  includes/gnutls/gnutls.h \
   minitasn1/Makefile \
   x509/Makefile \
   openpgp/Makefile \
diff --git a/lib/includes/Makefile.am b/lib/includes/Makefile.am
new file mode 100644 (file)
index 0000000..8f0e4e9
--- /dev/null
@@ -0,0 +1,30 @@
+## Process this file with automake to produce Makefile.in
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
+#
+# Author: Nikos Mavrogiannopoulos
+#
+# This file is part of GNUTLS.
+#
+# The GNUTLS library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public License
+# as published by the Free Software Foundation; either version 2.1 of
+# the License, or (at your option) any later version.
+#
+# The GNUTLS library is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with the GNUTLS library; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+# MA 02110-1301, USA
+
+nobase_include_HEADERS = gnutls/x509.h gnutls/pkcs12.h gnutls/compat.h \
+       gnutls/openpgp.h gnutls/crypto.h
+
+if ENABLE_CXX
+nobase_include_HEADERS += gnutls/gnutlsxx.h
+endif
+
+nobase_nodist_include_HEADERS = gnutls/gnutls.h
index aed03f6e0abea35b62fe6f19f21944845582f9d8..ed5361b78de162370635955e5cbcb910b9c02ff8 100644 (file)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA
 
-AM_CPPFLAGS = -I$(top_srcdir)/lib \
-       -I$(top_srcdir)/includes -I$(top_builddir)/includes \
-       -I$(top_srcdir)/lgl -I$(top_builddir)/lgl
+AM_CPPFLAGS = \
+       -I$(srcdir)/../gl \
+       -I$(builddir)/../gl \
+       -I$(srcdir)/../includes \
+       -I$(builddir)/../includes \
+       -I$(srcdir)/..
 
 if ENABLE_MINITASN1
 AM_CPPFLAGS += -I$(top_srcdir)/lib/minitasn1
index 951186103e737b1928017000a0901c8a085dd98b..93c166512303895a3feec8662d953effe9392549 100644 (file)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA
 
-AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../gl -I$(builddir)/../gl     \
-       -I$(top_srcdir)/includes -I$(top_builddir)/includes \
+AM_CPPFLAGS = \
+       -I$(srcdir)/../gl               \
+       -I$(builddir)/../gl             \
+       -I$(srcdir)/../includes         \
+       -I$(builddir)/../includes       \
+       -I$(srcdir)/..                  \
        -I$(srcdir)/../opencdk
 
 if ENABLE_MINITASN1
index 1bc9bd9bd003ba5166d3a36b3be267b694dc23bc..24a9b024e13d2f84911f07b7631dd3ce9aebd9ef 100644 (file)
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 # USA
 
-AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../gl -I$(builddir)/../gl     \
-       -I$(top_srcdir)/includes -I$(top_builddir)/includes             \
+AM_CPPFLAGS = \
+       -I$(srcdir)/../gl               \
+       -I$(builddir)/../gl             \
+       -I$(srcdir)/../includes         \
+       -I$(builddir)/../includes       \
+       -I$(srcdir)/..                  \
        $(LIBOPENCDK_CFLAGS)
 
 if ENABLE_MINITASN1
index d8441b48600817e48e8026800ab5271f20e73cd2..a0c742144b427b1a3a2270656039caa2b307363f 100644 (file)
 
 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I ../lib/m4
 
-AM_CPPFLAGS = -I$(srcdir)/gl                                           \
-       -I$(srcdir)/../lib/gl -I$(builddir)/../lib/gl                   \
-       -I$(srcdir)/../lib                                              \
-       -I$(builddir)/../includes -I$(srcdir)/../includes
+AM_CPPFLAGS = \
+       -I$(srcdir)/../lib/gl           \
+       -I$(builddir)/../lib/gl         \
+       -I$(srcdir)/gl                  \
+       -I$(builddir)/../lib/includes   \
+       -I$(srcdir)/../lib/includes     \
+       -I$(srcdir)/includes            \
+       -I$(srcdir)/../lib
 
 if ENABLE_MINITASN1
 AM_CPPFLAGS += -I$(top_srcdir)/lib/minitasn1
 endif
 
-SUBDIRS = gl
+SUBDIRS = gl includes
 
 # Pkg-config script.
 pkgconfigdir = $(libdir)/pkgconfig
index 4c5a55e0fd4d675efc11a9c0482b42b07b349255..ee2950d465b150ae3462ea00d8d485e547077ebd 100644 (file)
@@ -77,6 +77,7 @@ AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS)
 
 AC_CONFIG_FILES([ \
   Makefile \
+  includes/Makefile
   gl/Makefile \
   gnutls-extra.pc \
 ])
diff --git a/libextra/includes/Makefile.am b/libextra/includes/Makefile.am
new file mode 100644 (file)
index 0000000..71b43c4
--- /dev/null
@@ -0,0 +1,27 @@
+## Process this file with automake to produce Makefile.in
+# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
+#
+# Author: Nikos Mavrogiannopoulos
+#
+# This file is part of GNUTLS-EXTRA.
+#
+# GNUTLS-EXTRA is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUTLS-EXTRA is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUTLS-EXTRA; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+nobase_include_HEADERS = gnutls/extra.h
+
+if ENABLE_OPENSSL
+nobase_include_HEADERS += gnutls/openssl.h
+endif
index bcc3cb939fa322aa6d7bf23c1e197224b68da134..2d8ee6415c00dff6229b7b173a6724db50cd55c3 100644 (file)
@@ -21,9 +21,12 @@ EXTRA_DIST = README README.srptool
 
 SUBDIRS = cfg
 
-AM_CPPFLAGS = -I$(builddir)../includes -I$(srcdir)/..includes \
-       -I$(srcdir)/../lib/gl -I$(builddir)/../lib/gl \
-       -I$(srcdir)/../gl -I$(builddir)/../gl \
+AM_CPPFLAGS = \
+       -I$(srcdir)/../gl                       \
+       -I$(builddir)/../gl                     \
+       -I$(builddir)../lib/includes            \
+       -I$(srcdir)/../lib/includes             \
+       -I$(srcdir)/../libextra/includes        \
        -I$(srcdir)/cfg
 
 bin_PROGRAMS = gnutls-serv gnutls-cli psktool gnutls-cli-debug
index 8008d9fb7f64f05e64dbe08fb96d39cf66a82a74..ad5ffda9b0f77845fb9dd468adc9f6f8c7e2779c 100644 (file)
@@ -26,11 +26,11 @@ if ENABLE_OPENPGP
 SUBDIRS += openpgp openpgp-certs
 endif
 
-EXTRA_DIST = libgcrypt.supp
+EXTRA_DIST = libgcrypt.supp hostname-check.README
 
 AM_CPPFLAGS = -I$(top_srcdir)/lgl -I$(top_builddir)/lgl                        \
        -I$(top_srcdir)/gl -I$(top_builddir)/gl                         \
-       -I$(top_srcdir)/includes -I$(top_builddir)/includes             \
+       -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes     \
        -I$(top_srcdir)/lib                                             \
        -I$(top_srcdir)/doc/examples
 AM_LDFLAGS = -no-install
@@ -47,7 +47,7 @@ libutils_la_SOURCES = utils.h utils.c
 
 ctests = simple openssl gc set_pkcs12_cred certder mpi                 \
        certificate_set_x509_crl dn parse_ca moredn crypto_rng mini     \
-       finished
+       finished hostname-check openpgp-keyring
 openssl_LDADD = $(LDADD) ../libextra/libgnutls-openssl.la
 
 if ENABLE_OPENPGP
diff --git a/tests/hostname-check/Makefile.am b/tests/hostname-check/Makefile.am
deleted file mode 100644 (file)
index 34fdd5a..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-## Process this file with automake to produce Makefile.in
-# Copyright (C) 2007 Free Software Foundation
-#
-# Author: Simon Josefsson
-#
-# This file is part of GNUTLS.
-#
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This file is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this file; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-AM_CPPFLAGS = -I$(top_srcdir)/lgl -I$(top_builddir)/lgl                        \
-       -I$(top_srcdir)/gl -I$(top_builddir)/gl                         \
-       -I$(top_srcdir)/includes -I$(top_builddir)/includes             \
-       -I$(top_srcdir)/tests
-AM_LDFLAGS = -no-install
-LDADD = ../../lib/libgnutls.la ../libutils.la
-
-ctests = hostname-check
-
-check_PROGRAMS = $(ctests)
-
-TESTS = $(ctests)
-
-TESTS_ENVIRONMENT = $(VALGRIND)
diff --git a/tests/openpgp/Makefile.am b/tests/openpgp/Makefile.am
deleted file mode 100644 (file)
index 859648f..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-## Process this file with automake to produce Makefile.in
-# Copyright (C) 2007 Free Software Foundation
-#
-# Author: Ludovic Courtès.
-#
-# This file is part of GNUTLS.
-#
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This file is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this file; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-openpgp_sources = keyring.c
-
-if ENABLE_OPENPGP
-TESTS_ENVIRONMENT = $(VALGRIND)
-
-TESTS = keyring
-
-check_PROGRAMS = keyring
-
-AM_CPPFLAGS = -I$(top_srcdir)/includes -I$(top_builddir)/includes      \
-             -I$(top_srcdir)/tests
-LDADD = -L$(top_builddir)/libextra -lgnutls-extra      \
-        -L$(top_builddir)/lib      -lgnutls            \
-       -L$(top_builddir)/tests    -lutils
-
-else
-
-EXTRA_DIST = $(openpgp_sources)
-
-endif
-
index a1343184b72a16acf7f758f260aee1c0f4ca1538..0ce2ac96b7e4d577d22698ff43aa839c1c8c2914 100644 (file)
@@ -28,11 +28,14 @@ TESTS = pkcs12 pkcs12_s2k
 check_PROGRAMS = pkcs12_s2k
 
 AM_CPPFLAGS = \
-       -I$(srcdir)/..                                                  \
-       -I$(top_srcdir)/gl -I$(top_builddir)/gl                         \
-       -I$(top_srcdir)/includes -I$(top_builddir)/includes             \
-       -I$(top_srcdir)/lib                                             \
+       -I$(top_srcdir)/gl              \
+       -I$(top_builddir)/gl            \
+       -I$(top_srcdir)/lib/includes    \
+       -I$(top_builddir)/lib/includes  \
+       -I$(srcdir)/..                  \
+       -I$(top_srcdir)/lib             \
        -I$(top_srcdir)/doc/examples
+
 AM_LDFLAGS = -no-install
 LDADD = ../../lib/libgnutls.la ../../gl/libgnu.la ../libutils.la