2014-05-22 03:45:17 +00:00
|
|
|
dnl $Id: Makefile.m4,v 8.96 2013-10-14 16:16:44 ca Exp $
|
2000-08-12 21:55:49 +00:00
|
|
|
include(confBUILDTOOLSDIR`/M4/switch.m4')
|
|
|
|
|
2002-02-17 21:56:45 +00:00
|
|
|
dnl only required for compilation of EXTRAS
|
2007-04-09 01:38:51 +00:00
|
|
|
define(`confREQUIRE_SM_OS_H', `true')
|
2000-08-12 21:55:49 +00:00
|
|
|
define(`confMT', `true')
|
|
|
|
|
|
|
|
# sendmail dir
|
2007-04-09 01:38:51 +00:00
|
|
|
SMSRCDIR=ifdef(`confSMSRCDIR', `confSMSRCDIR', `${SRCDIR}/sendmail')
|
2000-08-12 21:55:49 +00:00
|
|
|
PREPENDDEF(`confINCDIRS', `-I${SMSRCDIR} ')
|
|
|
|
|
|
|
|
bldPRODUCT_START(`library', `libmilter')
|
2001-01-21 22:17:06 +00:00
|
|
|
define(`bldINSTALLABLE', `true')
|
2002-02-17 21:56:45 +00:00
|
|
|
define(`LIBMILTER_EXTRAS', `errstring.c strl.c')
|
|
|
|
APPENDDEF(`confENVDEF', `-DNOT_SENDMAIL -Dsm_snprintf=snprintf')
|
2007-04-09 01:38:51 +00:00
|
|
|
define(`bldSOURCES', `main.c engine.c listener.c worker.c handler.c comm.c smfi.c signal.c sm_gethost.c monitor.c LIBMILTER_EXTRAS ')
|
2002-02-17 21:56:45 +00:00
|
|
|
define(`confBEFORE', `LIBMILTER_EXTRAS')
|
2001-01-21 22:17:06 +00:00
|
|
|
bldPUSH_INSTALL_TARGET(`install-mfapi')
|
2000-08-12 21:55:49 +00:00
|
|
|
bldPRODUCT_END
|
2002-02-17 21:56:45 +00:00
|
|
|
|
|
|
|
PUSHDIVERT(3)
|
|
|
|
errstring.c:
|
|
|
|
${LN} ${LNOPTS} ${SRCDIR}/libsm/errstring.c .
|
|
|
|
|
|
|
|
strl.c:
|
|
|
|
${LN} ${LNOPTS} ${SRCDIR}/libsm/strl.c .
|
|
|
|
POPDIVERT
|
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
|
2001-01-21 22:17:06 +00:00
|
|
|
divert(bldTARGETS_SECTION)
|
2002-02-17 21:56:45 +00:00
|
|
|
# Install the API header files
|
2001-02-28 00:19:57 +00:00
|
|
|
MFAPI= ${SRCDIR}/inc`'lude/libmilter/mfapi.h
|
2002-02-17 21:56:45 +00:00
|
|
|
MFDEF= ${SRCDIR}/inc`'lude/libmilter/mfdef.h
|
2001-01-21 22:17:06 +00:00
|
|
|
install-mfapi: ${MFAPI}
|
2002-04-10 03:05:00 +00:00
|
|
|
if [ ! -d ${DESTDIR}${INCLUDEDIR}/libmilter ]; then mkdir -p ${DESTDIR}${INCLUDEDIR}/libmilter; else :; fi
|
|
|
|
${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFAPI} ${DESTDIR}${INCLUDEDIR}/libmilter/mfapi.h
|
|
|
|
${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFDEF} ${DESTDIR}${INCLUDEDIR}/libmilter/mfdef.h
|
2001-01-21 22:17:06 +00:00
|
|
|
divert(0)
|
|
|
|
|
2000-08-12 21:55:49 +00:00
|
|
|
bldFINISH
|