summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: bf98692cf4c81dfd1989a5d747560609bc16e1e1 (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
# $Id$
#
# This file is part of libnewmail.
#
# libnewmail 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.
#
# libnewmail 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 libnewmail; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

lib_LTLIBRARIES = libnewmail.la
pkglib_LTLIBRARIES = libunix.la libmaildir.la libpop3.la libimap.la
pkginclude_HEADERS=newmail.h module.h config.h util.h

bin_PROGRAMS = nmail nmail-async nm-spoolhack
noinst_PROGRAMS = easy

libnewmail_la_SOURCES = config.c util.c newmail.c newmail.h util.h config.h module.h
libnewmail_la_LDFLAGS = -version-info 0:0:0 -export-dynamic
libnewmail_la_INCLUDES = $(INCLTDL)
libnewmail_la_CFLAGS = -DNM_LIBRARY_PATH="\"$(pkglibdir)\""
libnewmail_la_LIBADD = $(LIBLTDL)

libunix_la_SOURCES = unix.c newmail.h config.h util.h module.h
libunix_la_LDFLAGS = -module

libmaildir_la_SOURCES = maildir.c newmail.h config.h util.h module.h
libmaildir_la_LDFLAGS = -module

libpop3_la_SOURCES = pop3.c sockwrap.c md5.c md5.h sockwrap.h newmail.h config.h util.h module.h
libpop3_la_LDFLAGS = -module 
libpop3_la_CFLAGS = $(LIBGNUTLS_CFLAGS)
libpop3_la_LIBADD = $(LIBGNUTLS_LIBS)

libimap_la_SOURCES = imap.c sockwrap.c md5.c md5.h sockwrap.h newmail.h config.h util.h module.h
libimap_la_LDFLAGS = -module
libimap_la_CFLAGS = $(LIBGNUTLS_CFLAGS)
libimap_la_LIBADD = $(LIBGNUTLS_LIBS)

nmail_SOURCES = nmail.c newmail.h
nmail_LDADD = libnewmail.la

nmail_async_SOURCES = nmail-async.c newmail.h
nmail_async_LDADD = libnewmail.la

nm_spoolhack_SOURCES = nm-spoolhack.c newmail.h
nm_spoolhack_LDADD = libnewmail.la

easy_SOURCES = easy.c newmail.h
easy_LDADD = libnewmail.la