# 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_io.m4\ bi_mail.m4\ bi_poll.m4\ bi_sa.m4\ bi_string.m4\ bi_system.m4\ bi_other.m4\ bi_vars.m4 mailfromd_SOURCES = \ cache.c\ dnscache.c\ db.c\ dns.c\ engine.c\ gram.y\ lex.l\ main.c\ mu_dbm.c\ prog.c\ prog.h\ symtab.c\ rate.c\ $(M4_FILES:.m4=.c) noinst_HEADERS = mailfrom.h mu_dbm.h builtin.h EXTRA_DIST = gram.h snarf.m4 init.m4 $(M4_FILES) builtin.h builtin.def BUILT_SOURCES=$(M4_FILES:.m4=.c) builtin.h AM_CPPFLAGS=-DSYSCONFDIR=\"$(sysconfdir)\"\ -DDATAROOTDIR=\"$(datarootdir)\"\ -DDEFAULT_STATE_DIR=\"$(DEFAULT_STATE_DIR)\"\ -DDEFAULT_SOCKET=\"$(DEFAULT_SOCKET)\" INCLUDES = $(MAILUTILS_INCLUDES) $(MU_COMMON_INCLUDES) -I$(top_srcdir)/lib -I../lib $(MILTER_INCLUDES) LDADD = ../lib/libgnu.a $(MAILUTILS_LIBS) $(MILTER) builtin.h: $(M4_FILES) SUFFIXES = .m4 .c .def.h M4=m4 .m4.c: $(M4) -s $(top_srcdir)/src/snarf.m4 $< > $@-t sed '1d' $@-t > $@ rm $@-t .def.h: $(M4) $(top_srcdir)/src/init.m4 $(M4_FILES) $< > $@ AM_YFLAGS=-dtv AM_LFLAGS=-dvp install-data-local: -test -d $(DESTDIR)$(DEFAULT_STATE_DIR) || \ $(mkinstalldirs) -o $(DEFAULT_USER) $(DESTDIR)$(DEFAULT_STATE_DIR)