blob: 973015f9a1edd67c4ca779fb1a7ee8822ee25b70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# $Id: Makefile.am 1920 2005-11-26 08:32:15Z aaron $
# Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
#
# This program 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 2 of the License, or (at your option) any later
# version.
#
# This program 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 program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
INCLUDES = -I$(top_srcdir)
AM_CFLAGS = @MYSQLINC@ @PGSQLINC@ @SQLITEINC@ @LDAPINC@ @SIEVEINC@
#AM_LDFLAGS = -Wl,--export-dynamic
if SHARED
AM_LDFLAGS = -module
else
AM_LDFLAGS =
endif
noinst_LTLIBRARIES = libsort_null.la
if MYSQL
libmysql_la_SOURCES = dbmysql.c
libmysql_la_LIBADD = @MYSQLLIB@
dbmail_mysql_la = libmysql.la
endif
if PGSQL
libpgsql_la_SOURCES = dbpgsql.c
libpgsql_la_LIBADD = @PGSQLLIB@
dbmail_pgsql_la = libpgsql.la
endif
if SQLITE
libsqlite_la_SOURCES = dbsqlite.c
libsqlite_la_LIBADD = @SQLITELIB@
dbmail_sqlite_la = libsqlite.la
endif
# This one is always built.
libsort_null_la_SOURCES = sortnull.c
if SIEVE
libsort_sieve_la_SOURCES = sortsieve.c
libsort_sieve_la_LIBADD = @SIEVELIB@
dbmail_sieve_la = libsort_sieve.la
endif
# This one is always built.
libauth_sql_la_SOURCES = authsql.c
libauth_sql_la_LIBADD = -lcrypt
if LDAP
libauth_ldap_la_SOURCES = authldap.c
libauth_ldap_la_LIBADD = -lcrypt @LDAPLIB@
dbmail_ldap_la = libauth_ldap.la
endif
pkglib_LTLIBRARIES = $(dbmail_mysql_la) \
$(dbmail_pgsql_la) \
$(dbmail_sqlite_la) \
$(dbmail_sieve_la) \
$(dbmail_ldap_la) \
libauth_sql.la
|