1# Makefile for compat directory
2# Copyright (C) 2010 Free Software Foundation, Inc.
3#
4# This file is part of Libgcrypt.
5#
6# Libgcrypt is free software; you can redistribute it and/or modify
7# it under the terms of the GNU Lesser General Public License as
8# published by the Free Software Foundation; either version 2.1 of
9# the License, or (at your option) any later version.
10#
11# Libgcrypt is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU Lesser General Public License for more details.
15#
16# You should have received a copy of the GNU Lesser General Public
17# License along with this program; if not, see <http://www.gnu.org/licenses/>.
18
19# Process this file with automake to produce Makefile.in
20
21# We use this libcompat to work around problems with LIBOBJ stuff.
22# For example, we need some of the compat files also in tests/ but the
23# suggested way to do this (using the automake option subdir-objects)
24# leads to problems with "make distclean": The distclean target in
25# tests is run before the one src and it removes the deps files of the
26# libobj files which are in src.  Now when it comes to run make in src
27# the icnluded files are gone - bummer.  Instead of try to fix this
28# issue it seems better not to use subdir-objects but build them all
29# into a compat library and always link against that library.  This
30# also avoids the problem that a dependency on LTLIBOBJ is not setup
31# if -- disable-static was used.
32
33# Need to include ../src in addition to top_srcdir because gcrypt.h is
34# a built header.
35AM_CPPFLAGS = -I../src -I$(top_srcdir)/src $(GPG_ERROR_CFLAGS)
36
37noinst_LTLIBRARIES = libcompat.la
38
39# We only need one file so that the library is guaranteed to have at
40# least one member.
41libcompat_la_SOURCES = compat.c libcompat.h
42libcompat_la_DEPENDENCIES = @LTLIBOBJS@
43libcompat_la_LIBADD =       @LTLIBOBJS@
44
45# AC_LIBOBJ files are:
46#    getpid.c
47#    clock.c
48#
49