# This file is part of Mailfromd. # Copyright (C) 2005-2018 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 calloutd bin_PROGRAMS = mfdbtool SUBDIRS = builtin noinst_LIBRARIES = libcallout.a libcallout_a_SOURCES = \ callout.c\ callout.h\ savsrv.c\ srvcfg.c mailfromd_SOURCES = \ engine.c\ exclist.c\ gram.y\ lex.l\ main.c\ optab.c\ optab.h\ pp.c\ pragma.c\ prog.c\ prog.h\ spf.c\ stack.c\ symbols.c mailfromd_LDADD = \ ./libcallout.a\ builtin/libbuiltin.a\ ../lib/libmfdb.a\ ../lib/libmf.a\ $(MAILUTILS_LIBS)\ $(MILTER)\ $(GEOIP_LIBS)\ $(DSPAM_LIBS) noinst_HEADERS = \ bitmask.h\ callout-dbgmod.h\ mailfromd.h\ spf.h\ drivers.c\ mfd-dbgmod.h\ srvcfg.h calloutd_SOURCES = \ calloutd.c calloutd_LDADD = \ ./libcallout.a\ ../lib/libmfdb.a\ ../lib/libmf.a\ $(MAILUTILS_LIBS)\ $(MILTER) mfdbtool_SOURCES = \ mfdbtool.c mfdbtool_LDADD = \ ../lib/libmfdb.a\ ../lib/libmf.a\ $(MAILUTILS_LIBS) EXTRA_DIST = \ dbgmod.awk\ drv.awk\ gram.h\ node-tab.c\ node-type.h\ opcode.awk\ opcodes\ optab.opc\ optab.oph BUILT_SOURCES=\ callout-dbgmod.h\ mfd-dbgmod.h\ node-tab.c\ node-type.h\ optab.c\ optab.h incdir=$(pkgdatadir)/$(VERSION)/include AM_CPPFLAGS=\ -I$(top_srcdir)\ $(MAILUTILS_INCLUDES)\ $(MU_COMMON_INCLUDES)\ -I$(top_srcdir)/lib\ -I$(top_srcdir)/src/builtin\ $(MILTER_INCLUDES)\ $(DSPAM_CFLAGS)\ -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)\" node-type.h: drivers.c $(AM_V_GEN) $(AWK) -v MODE=types -f $(top_srcdir)/src/drv.awk drivers.c > node-type.h node-tab.c: drivers.c $(AM_V_GEN) $(AWK) -f $(top_srcdir)/src/drv.awk drivers.c > node-tab.c lex.c: gram.h SUFFIXES = .opc .oph .opc.c: $(AM_V_GEN) $(AWK) -f $(top_srcdir)/src/opcode.awk \ $(top_srcdir)/src/opcodes $< > $@ .oph.h: $(AM_V_GEN) $(AWK) -f $(top_srcdir)/src/opcode.awk \ $(top_srcdir)/src/opcodes $< > $@ optab.c optab.h: opcodes mfd-dbgmod.h: Makefile.am $(AM_V_GEN) sed -n 's/.*debug *(MF_SOURCE_\([^,]*\),.*/\1/p' \ $(mailfromd_SOURCES) | sort | uniq | \ awk -f $(top_srcdir)/src/dbgmod.awk -v offset=mfd_debug_handle > mfd-dbgmod.h callout-dbgmod.h: Makefile.am $(AM_V_GEN) sed -n 's/.*debug *(MF_SOURCE_\([^,]*\),.*/\1/p' \ $(libcallout_a_SOURCES) | sort | uniq | awk -f \ $(top_srcdir)/src/dbgmod.awk -v offset=callout_debug_handle > callout-dbgmod.h M4=m4 AM_YFLAGS=-dtv AM_LFLAGS=-dvp check-am: $(MAKE) -C $(top_builddir)/mflib lint