1249729Sgshapirodnl $Id: Makefile.m4,v 8.92 2013/04/16 20:19:54 ca Exp $ 264562Sgshapiroinclude(confBUILDTOOLSDIR`/M4/switch.m4') 364562Sgshapiro 490792Sgshapirodnl only required for compilation of EXTRAS 5168515Sgshapirodefine(`confREQUIRE_SM_OS_H', `true') 664562Sgshapirodefine(`confMT', `true') 764562Sgshapiro 864562Sgshapiro# sendmail dir 9168515SgshapiroSMSRCDIR=ifdef(`confSMSRCDIR', `confSMSRCDIR', `${SRCDIR}/sendmail') 1064562SgshapiroPREPENDDEF(`confINCDIRS', `-I${SMSRCDIR} ') 1164562Sgshapiro 1264562SgshapirobldPRODUCT_START(`library', `libmilter') 1371345Sgshapirodefine(`bldINSTALLABLE', `true') 1490792Sgshapirodefine(`LIBMILTER_EXTRAS', `errstring.c strl.c') 1590792SgshapiroAPPENDDEF(`confENVDEF', `-DNOT_SENDMAIL -Dsm_snprintf=snprintf') 16168515Sgshapirodefine(`bldSOURCES', `main.c engine.c listener.c worker.c handler.c comm.c smfi.c signal.c sm_gethost.c monitor.c LIBMILTER_EXTRAS ') 1790792Sgshapirodefine(`confBEFORE', `LIBMILTER_EXTRAS') 1871345SgshapirobldPUSH_INSTALL_TARGET(`install-mfapi') 1964562SgshapirobldPRODUCT_END 2064562Sgshapiro 2190792SgshapiroPUSHDIVERT(3) 2290792Sgshapiroerrstring.c: 2390792Sgshapiro ${LN} ${LNOPTS} ${SRCDIR}/libsm/errstring.c . 2490792Sgshapiro 2590792Sgshapirostrl.c: 2690792Sgshapiro ${LN} ${LNOPTS} ${SRCDIR}/libsm/strl.c . 2790792SgshapiroPOPDIVERT 2890792Sgshapiro 2990792Sgshapiro 3071345Sgshapirodivert(bldTARGETS_SECTION) 3190792Sgshapiro# Install the API header files 3273188SgshapiroMFAPI= ${SRCDIR}/inc`'lude/libmilter/mfapi.h 3390792SgshapiroMFDEF= ${SRCDIR}/inc`'lude/libmilter/mfdef.h 3471345Sgshapiroinstall-mfapi: ${MFAPI} 3594334Sgshapiro if [ ! -d ${DESTDIR}${INCLUDEDIR}/libmilter ]; then mkdir -p ${DESTDIR}${INCLUDEDIR}/libmilter; else :; fi 3694334Sgshapiro ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFAPI} ${DESTDIR}${INCLUDEDIR}/libmilter/mfapi.h 3794334Sgshapiro ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFDEF} ${DESTDIR}${INCLUDEDIR}/libmilter/mfdef.h 3871345Sgshapirodivert(0) 3971345Sgshapiro 4064562SgshapirobldFINISH 41