forked from dbmail/dbmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
135 lines (107 loc) · 3.13 KB
/
Makefile.am
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
# Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.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.
SUBDIRS = modules
if SIEVE
SIEVEPROGS = dbmail-sievecmd dbmail-timsieved
endif
if USE_DM_GETOPT
DM_GETOPT = dm_getopt.c
endif
sbin_PROGRAMS = dbmail-deliver \
dbmail-pop3d \
dbmail-imapd \
dbmail-util \
dbmail-users \
dbmail-export \
dbmail-httpd \
dbmail-lmtpd $(SIEVEPROGS)
COMMON = dbmail-user.c \
dbmail-message.c \
dbmail-mailbox.c \
dm_mailboxstate.c \
dm_cram.c \
dm_capa.c \
dm_config.c \
dm_debug.c \
dm_list.c \
dm_db.c \
dm_sievescript.c \
dm_acl.c \
dm_misc.c \
dm_pidfile.c \
dm_digest.c \
dm_match.c \
dm_iconv.c \
dm_dsn.c \
dm_sset.c \
dm_string.c \
$(top_srcdir)/src/mpool/mpool.c \
dm_mempool.c $(DM_GETOPT)
SERVER = server.c \
clientsession.c \
clientbase.c \
dm_tls.c \
dm_http.c \
dm_request.c \
dm_cidr.c
IMAPD = dm_quota.c \
imap4.c \
imapcommands.c \
dbmail-imapsession.c
AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' -DLIBDIR='"$(libdir)"' -DLOCALSTATEDIR='"$(localstatedir)"'
AM_CFLAGS = @SIEVEINC@ @LDAPINC@
INCLUDES = -I$(top_srcdir)
AM_LDFLAGS = -export-dynamic @CRYPTLIB@
if SHARED
MODULES = authmodule.c sortmodule.c
STATIC_MODULES =
else
MODULES =
STATIC_MODULES = @SORTLTLIB@ @AUTHLTLIB@
endif
dbmail_deliver_SOURCES = main.c
dbmail_deliver_LDADD = $(STATIC_MODULES) libdbmail.la
dbmail_pop3d_SOURCES = pop3.c pop3d.c
dbmail_pop3d_LDADD = $(STATIC_MODULES) libdbmail.la
dbmail_imapd_SOURCES = $(IMAPD) imapd.c
dbmail_imapd_LDADD = $(STATIC_MODULES) libdbmail.la
dbmail_util_SOURCES = maintenance.c
dbmail_util_LDADD = $(STATIC_MODULES) libdbmail.la
dbmail_users_SOURCES = user.c
dbmail_users_LDADD = $(STATIC_MODULES) libdbmail.la
dbmail_export_SOURCES = $(IMAPD) export.c
dbmail_export_LDADD = $(STATIC_MODULES) libdbmail.la
dbmail_lmtpd_SOURCES = lmtp.c lmtpd.c
dbmail_lmtpd_LDADD = $(STATIC_MODULES) libdbmail.la
dbmail_httpd_SOURCES = dm_http.c httpd.c
dbmail_httpd_LDADD = $(STATIC_MODULES) libdbmail.la
if SIEVE
dbmail_sievecmd_SOURCES = sievecmd.c
dbmail_sievecmd_LDADD = $(STATIC_MODULES) libdbmail.la
dbmail_timsieved_SOURCES = timsieve.c timsieved.c
dbmail_timsieved_LDADD = $(STATIC_MODULES) libdbmail.la
endif
if SHARED
pkglib_LTLIBRARIES = libdbmail.la
else
noinst_LTLIBRARIES = libdbmail.la
endif
libdbmail_la_SOURCES = $(COMMON) $(SERVER) $(MODULES)
libdbmail_la_LIBADD = $(STATIC_MODULES)
libdbmail_la_LDFLAGS = $(AM_LDFLAGS) @SOCKETLIB@
libdbmail_la_CFLAGS = $(AM_CFLAGS)