forked from dbmail/dbmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
183 lines (139 loc) · 4.63 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
# Copyright (c) 2004-2006 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 man
if SIEVE
SIEVEPROGS = dbmail-sievecmd dbmail-timsieved
endif
if USE_DM_GETOPT
DM_GETOPT = dm_getopt.c
endif
sbin_PROGRAMS = dbmail-smtp \
dbmail-pop3d \
dbmail-imapd \
dbmail-util \
dbmail-users \
dbmail-export \
dbmail-lmtpd $(SIEVEPROGS)
COMMON = dbmail-user.c \
dbmail-message.c \
dbmail-mailbox.c \
config.c \
debug.c \
list.c \
db.c \
acl.c \
misc.c \
pidfile.c \
dm_md5.c \
dm_match.c \
dm_base64.c $(DM_GETOPT)
SERVER = server.c \
serverchild.c \
serverparent.c \
pool.c \
dm_cidr.c
DELIVER = pipe.c \
dsn.c \
sort.c
MODULES = dbmodule.c \
authmodule.c \
sortmodule.c
# CFLAGS
#AM_CFLAGS = -fomit-frame-pointer
INCLUDES = -I$(top_srcdir)
dbmail_smtp_SOURCES = main.c
dbmail_smtp_LDADD = libdbmail.la
dbmail_pop3d_SOURCES = pop3.c pop3d.c
dbmail_pop3d_LDADD = libdbmail.la
dbmail_imapd_SOURCES = quota.c imap4.c dm_imaputil.c imapcommands.c memblock.c imapd.c dbmail-imapsession.c
dbmail_imapd_LDADD = libdbmail.la
dbmail_util_SOURCES = maintenance.c
dbmail_util_LDADD = libdbmail.la
dbmail_users_SOURCES = user.c
dbmail_users_LDADD = libdbmail.la
dbmail_export_SOURCES = export.c
dbmail_export_LDADD = libdbmail.la
dbmail_lmtpd_SOURCES = lmtp.c lmtpd.c
dbmail_lmtpd_LDADD = libdbmail.la
if SIEVE
dbmail_sievecmd_SOURCES = sievecmd.c
dbmail_sievecmd_LDADD = libdbmail.la
dbmail_timsieved_SOURCES = timsieve.c timsieved.c
dbmail_timsieved_LDADD = libdbmail.la
endif
lib_LTLIBRARIES = libdbmail.la
if SHARED
AM_LDFLAGS = -Wl,--export-dynamic -lcrypt
libdbmail_la_SOURCES = $(COMMON) $(SERVER) $(DELIVER) $(MODULES)
else
libdbmail_la_SOURCES = $(COMMON) $(SERVER) $(DELIVER)
libdbmail_la_LIBADD = @MYSQLLTLIB@ @PGSQLLTLIB@ @SQLITELTLIB@ @SORTLTLIB@ @AUTHLTLIB@
endif
libdbmail_la_LDFLAGS = $(AM_LDFLAGS)
libdbmail_la_CFLAGS = $(AM_CFLAGS)
if WITHCHECK
TESTS=check_dbmail_common \
check_dbmail_server \
check_dbmail_deliver \
check_dbmail_imapd \
check_dbmail_message \
check_dbmail_mailbox \
check_dbmail_auth \
check_dbmail_misc \
check_dbmail_user \
check_dbmail_util \
check_dbmail_dsn \
check_dbmail_db
noinst_PROGRAMS=$(TESTS)
check_dbmail_user_SOURCES=check_dbmail_user.c
check_dbmail_user_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_user_INCLUDES=@CHECK_CFLAGS@
check_dbmail_auth_SOURCES=check_dbmail_auth.c
check_dbmail_auth_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_auth_INCLUDES=@CHECK_CFLAGS@
check_dbmail_misc_SOURCES=check_dbmail_misc.c
check_dbmail_misc_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_misc_INCLUDES=@CHECK_CFLAGS@
check_dbmail_util_SOURCES=check_dbmail_util.c
check_dbmail_util_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_util_INCLUDES=@CHECK_CFLAGS@
check_dbmail_dsn_SOURCES=check_dbmail_dsn.c
check_dbmail_dsn_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_dsn_INCLUDES=@CHECK_CFLAGS@
check_dbmail_db_SOURCES=check_dbmail_db.c
check_dbmail_db_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_db_INCLUDES=@CHECK_CFLAGS@
check_dbmail_common_SOURCES=check_dbmail_common.c
check_dbmail_common_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_common_INCLUDES=@CHECK_CFLAGS@
check_dbmail_server_SOURCES=check_dbmail_server.c
check_dbmail_server_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_server_INCLUDES=@CHECK_CFLAGS@
check_dbmail_deliver_SOURCES=check_dbmail_deliver.c
check_dbmail_deliver_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_deliver_INCLUDES=@CHECK_CFLAGS@
check_dbmail_message_SOURCES=check_dbmail_message.c
check_dbmail_message_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_message_INCLUDES=@CHECK_CFLAGS@
check_dbmail_mailbox_SOURCES=check_dbmail_mailbox.c
check_dbmail_mailbox_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_mailbox_INCLUDES=@CHECK_CFLAGS@
check_dbmail_imapd_SOURCES=quota.c imap4.c dm_imaputil.c imapcommands.c memblock.c acl.c dbmail-imapsession.c check_dbmail_imapd.c
check_dbmail_imapd_LDADD=libdbmail.la @CHECK_LIBS@
check_dbmail_imapd_INCLUDES=@CHECK_CFLAGS@
endif