# This file is part of mailfrom filter. # Copyright (C) 2005, 2006 Sergey Poznyakoff # # 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, 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 sbin_PROGRAMS = mailfromd M4_FILES=\ bi_db.m4\ bi_dns.m4\ bi_poll.m4\ bi_sa.m4\ bi_string.m4\ bi_other.m4 mailfromd_SOURCES = \ cache.c\ db.c\ dns.c\ engine.c\ gram.y\ lex.l\ main.c\ ml.c\ mu_dbm.c\ prog.c\ prog.h\ symtab.c\ rate.c\ $(M4_FILES:.m4=.c) noinst_HEADERS = mailfrom.h mu_dbm.h EXTRA_DIST = gram.h snarf.m4 $(M4_FILES) BUILT_SOURCES=$(M4_FILES:.m4=.c) AM_CPPFLAGS=\ -DMAILFROMSTATEDIR=\"$(MAILFROMSTATEDIR)\" \ -DDEFAULT_SOCKET=\"$(DEFAULT_SOCKET)\" \ -DDEFAULT_USER=\"$(DEFAULT_USER)\" \ -DDEFAULT_EXPIRE_INTERVAL=$(DEFAULT_EXPIRE_INTERVAL) \ -DDEFAULT_EXPIRE_RATES_INTERVAL=$(DEFAULT_EXPIRE_RATES_INTERVAL) \ -DSYSCONFDIR=\"$(sysconfdir)\" INCLUDES = $(MAILUTILS_INCLUDES) $(MU_COMMON_INCLUDES) -I$(top_srcdir)/lib -I../lib $(MILTER_INCLUDES) LDADD = ../lib/libgnu.a $(MAILUTILS_LIBS) $(MILTER) SUFFIXES = .m4 .c .m4.c: m4 -s $(top_srcdir)/src/snarf.m4 $< > $@-t sed '1d' $@-t > $@ rm $@-t AM_YFLAGS=-dtv AM_LFLAGS=-dvp install-data-local: test -d $(DESTDIR)$(MAILFROMSTATEDIR) || \ $(mkdir_p) $(DESTDIR)$(MAILFROMSTATEDIR)