Makefile.am 2.95 KB
## Process this file with GNU Automake to create Makefile.in

##   Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007 
##   Free Software Foundation, Inc.
##
##   GNU Mailutils 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 3, 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. 51 Franklin Street, Fifth Floor, Boston, MA
##   02110-1301 USA

INCLUDES = @MU_COMMON_INCLUDES@ -I${top_srcdir}/libproto/include 

YLWRAP = $(SHELL) $(top_srcdir)/scripts/gylwrap
AM_YFLAGS=-vt

SUBDIRS = testsuite 

lib_LTLIBRARIES = libmailutils.la

localedir = $(datadir)/locale
AM_CPPFLAGS = \
 -DSYSCONFDIR=\"$(sysconfdir)\"\
 -DSITE_VIRTUAL_PWDDIR=\"@SITE_VIRTUAL_PWDDIR@\"\
 -DLOCALEDIR=\"$(localedir)\"

EXTRA_DIST = errors muerrno.cin parsedate.y fgetpwent.c cfg_parser.y cfg_parser.h inttostr.c inttostr.h 

libmailutils_la_SOURCES = \
 acl.c\
 address.c\
 amd.c\
 argcv.c\
 assoc.c\
 attachment.c\
 attribute.c\
 auth.c\
 body.c\
 daemon.c\
 date.c\
 dbgstderr.c\
 dbgsyslog.c\
 debug.c\
 cfg_driver.c\
 cfg_format.c\
 cfg_lexer.c\
 cfg_parser.c\
 diag.c\
 envelope.c\
 fgetpwent.c\
 file_stream.c\
 filter.c\
 filter_iconv.c\
 filter_rfc822.c\
 filter_trans.c\
 folder.c\
 gdebug.c\
 gocs.c\
 header.c\
 iterator.c\
 kwd.c\
 list.c\
 locale.c\
 locker.c\
 mailbox.c\
 mailcap.c\
 mailer.c\
 mapfile_stream.c\
 mbx_default.c\
 md5.c\
 message.c\
 memory_stream.c\
 message_stream.c\
 mime.c\
 monitor.c\
 msrv.c\
 mu_auth.c\
 mu_umaxtostr.h\
 mu_umaxtostr.c\
 munre.c\
 mutil.c\
 muerror.c\
 muerrno.c\
 nls.c\
 observer.c\
 parse822.c\
 parsedate.c\
 property.c\
 registrar.c\
 refcount.c\
 rfc2047.c\
 sha1.c\
 server.c\
 socket_stream.c\
 stream.c\
 syslog.c\
 system.c\
 ticket.c\
 tcp.c\
 tcpsrv.c\
 url.c\
 vartab.c\
 version.c\
 wicket.c\
 imaxtostr.c  offtostr.c  umaxtostr.c intprops.h

BUILT_SOURCES = parsedate.c muerrno.c cfg_parser.c cfg_parser.h
MOSTLYCLEANFILES=

parsedate.c: $(srcdir)/parsedate.y
	$(YLWRAP) "$(YACC) $(AM_YFLAGS)" $< \
	          y.tab.c parsedate.c y.output parsedate.y.output \
                  -- -yy pd_yy

cfg_parser.c cfg_parser.h: $(srcdir)/cfg_parser.y
	$(YLWRAP) "$(YACC) $(AM_YFLAGS) -d" $< \
	          y.tab.c cfg_parser.c y.tab.h cfg_parser.h \
                  y.output cfg_parser.y.output \
                  -- -yy mu_cfg_yy

muerrno.c: errors muerrno.cin
	$(AWK) -f $(top_srcdir)/scripts/generr.awk $^ > $@

libmailutils_la_LIBADD = @MU_COMMON_LIBRARIES@
libmailutils_la_LDFLAGS = -version-info @VI_CURRENT@:@VI_REVISION@:@VI_AGE@