Added libassuan.
[libpwmd.git] / assuan / Makefile.am
blob9d6457882d3138d57c25adb60481001ff0a41880
1 # Assuan Makefile
2 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4 # This file is part of Assuan.
6 # Assuan is free software; you can redistribute it and/or modify it
7 # 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.
11 # Assuan is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # Lesser General Public License for more details.
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 ## Process this file with automake to produce Makefile.in
20 EXTRA_DIST = mkerrors
21 BUILT_SOURCES = assuan-errors.c
22 MOSTLYCLEANFILES = assuan-errors.c
24 if HAVE_PTH
25 libassuan_pth = libassuan-pth.a
26 else
27 libassuan_pth = 
28 endif
30 common_sources = \
31         assuan-defs.h \
32         assuan-util.c \
33         assuan-errors.c \
34         assuan-buffer.c \
35         assuan-handler.c \
36         assuan-inquire.c \
37         assuan-connect.c \
38         assuan-client.c \
39         assuan-pipe-connect.c \
40         assuan-socket-connect.c \
41         assuan-pipe-server.c \
42         assuan-uds.c \
43         assuan-logging.c \
44         assuan-listen.c \
45         assuan-socket.c
47 noinst_LIBRARIES = libassuan.a $(libassuan_pth)
48 libassuan_a_SOURCES = $(common_sources) assuan-io.c
49 libassuan_a_CFLAGS = $(AM_CFLAGS)
50 libassuan_a_LIBADD = @LIBOBJS@
52 if HAVE_PTH
53 libassuan_pth_a_SOURCES = $(common_sources) assuan-io-pth.c
54 libassuan_pth_a_CFLAGS = $(AM_CFLAGS) $(PTH_CFLAGS)
55 libassuan_pth_a_LIBADD = @LIBOBJS@
56 endif
58 assuan-errors.c : assuan.h mkerrors
59         $(srcdir)/mkerrors < $(srcdir)/assuan.h > assuan-errors.c