Makefile.am 2.77 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 = \
 -DSITE_VIRTUAL_PWDDIR=\"@SITE_VIRTUAL_PWDDIR@\"\
 -DLOCALEDIR=\"$(localedir)\"

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

libmailutils_la_SOURCES = \
 address.c\
 amd.c\
 argcv.c\
 assoc.c\
 attachment.c\
 attribute.c\
 auth.c\
 body.c\
 daemon.c\
 date.c\
 debug.c\
 cfg_lexer.c\
 cfg_parser.c\
 envelope.c\
 file_stream.c\
 filter.c\
 filter_iconv.c\
 filter_rfc822.c\
 filter_trans.c\
 folder.c\
 gocs.c\
 header.c\
 iterator.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\
 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\
 socket_stream.c\
 stream.c\
 syslog.c\
 system.c\
 tcp.c\
 ticket.c\
 url.c\
 version.c\
 wicket.c\
 imaxtostr.c  offtostr.c  umaxtostr.c

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@