# This file is part of mailfromd. # Copyright (C) 2005, 2006, 2007 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 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, see . sbin_PROGRAMS = mailfromd bin_PROGRAMS = mtasim incdir=$(pkgdatadir)/$(VERSION)/include inc_DATA = status.mfh M4_FILES=\ bi_db.m4\ bi_dns.m4\ bi_gettext.m4\ bi_io.m4\ bi_ipaddr.m4\ bi_mail.m4\ bi_poll.m4\ bi_sa.m4\ bi_spf.m4\ bi_sprintf.m4\ bi_string.m4\ bi_system.m4\ bi_other.m4\ bi_vars.m4 mailfromd_SOURCES = \ debug.c\ cache.c\ dnscache.c\ db.c\ dns.c\ dnsbase.c\ engine.c\ gram.y\ lex.l\ main.c\ mf-status.c\ mu_dbm.c\ optab.c\ optab.h\ pp.c\ prog.c\ prog.h\ spf.c\ stack.c\ symtab.c\ rate.c\ $(M4_FILES:.m4=.c) noinst_LIBRARIES=libmf.a SYSLOG_ASYNC_O=syslog_async.o libmf_a_SOURCES=\ version.c libmf_a_LIBADD=$(LIBOBJS) $(BUILD_SYSLOG_ASYNC) mailfromd_LDADD = ./libmf.a $(LDADD) mtasim_SOURCES = mtasim.c openat-die.c mtasim_LDADD = ./libmf.a $(LDADD) $(READLINE_LIBS) noinst_HEADERS = mailfromd.h mu_dbm.h builtin.h dns.h spf.h drivers.c debug.h \ syslog_async.h EXTRA_DIST = \ $(M4_FILES)\ builtin.def\ builtin.h\ daemon.c\ debug.cin\ debug.hin\ debugdef.m4\ drv.awk\ gram.h\ init.m4\ mf-status.mfi\ mfstat.awk\ node-tab.c\ node-type.h\ opcode.awk\ opcodes\ optab.opc\ optab.oph\ snarf.m4\ status.mfh\ status.mfi\ syslog_async.c BUILT_SOURCES=\ $(M4_FILES:.m4=.c)\ builtin.h\ debug.c\ debug.h\ mf-status.c\ node-tab.c\ node-type.h\ optab.c\ optab.h AM_CPPFLAGS=-DSYSCONFDIR=\"$(sysconfdir)\"\ -DDEFAULT_STATE_DIR=\"$(DEFAULT_STATE_DIR)\"\ -DDEFAULT_SOCKET=\"$(DEFAULT_SOCKET)\"\ -DDEFAULT_VERSION_INCLUDE_DIR=\"$(incdir)\"\ -DDEFAULT_INCLUDE_DIR=\"$(pkgdatadir)/include\"\ -DDEFAULT_PREPROCESSOR="\"$(DEFAULT_PREPROCESSOR)\""\ -DLOCALEDIR=\"$(localedir)\" INCLUDES = $(MAILUTILS_INCLUDES) $(MU_COMMON_INCLUDES) -I$(top_srcdir)/lib -I../lib $(MILTER_INCLUDES) LDADD = ../lib/libgnu.a $(MAILUTILS_LIBS) $(MILTER) builtin.h: Makefile.am node-type.h: drivers.c $(AWK) -v MODE=types -f $(top_srcdir)/src/drv.awk drivers.c > node-type.h node-tab.c: drivers.c $(AWK) -f $(top_srcdir)/src/drv.awk drivers.c > node-tab.c SUFFIXES = .m4 .c .def .h .mfi .mfh .opc .oph .cin .hin .mfi.c: $(AWK) -f $(top_srcdir)/src/mfstat.awk \ $(top_srcdir)/src/mailfromd.h $< > $@ .mfi.mfh: $(AWK) -f $(top_srcdir)/src/mfstat.awk \ $(top_srcdir)/src/mailfromd.h $< > $@ M4=m4 .m4.c: $(M4) --prefix -s -DSOURCE="$<" $(top_srcdir)/src/snarf.m4 $< > $@-t sed '1{/#line/d;}' $@-t > $@ rm $@-t .def.h: $(M4) --prefix $(top_srcdir)/src/init.m4 $(M4_FILES) $< > $@ .opc.c: $(AWK) -f $(top_srcdir)/src/opcode.awk \ $(top_srcdir)/src/opcodes $< > $@ .oph.h: $(AWK) -f $(top_srcdir)/src/opcode.awk \ $(top_srcdir)/src/opcodes $< > $@ optab.c optab.h: opcodes .cin.c: SRCLIST=`echo $(mailfromd_SOURCES) | tr -s ' ' ','`; \ $(M4) -s -DSRCLIST="$$SRCLIST" $(top_srcdir)/src/debugdef.m4 $< > $@ .hin.h: SRCLIST=`echo $(mailfromd_SOURCES) | tr -s ' ' ','`; \ $(M4) -DSRCLIST="$$SRCLIST" $(top_srcdir)/src/debugdef.m4 $< > $@ debug.c: Makefile.in debugdef.m4 debug.cin debug.h: Makefile.in debugdef.m4 debug.hin AM_YFLAGS=-dtv AM_LFLAGS=-dvp install-data-local: -test -d $(DESTDIR)$(DEFAULT_STATE_DIR) || \ $(mkinstalldirs) -o $(DEFAULT_USER) $(DESTDIR)$(DEFAULT_STATE_DIR)