xref: /freebsd/contrib/sendmail/libsmutil/Makefile.m4 (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1dnl $Id: Makefile.m4,v 8.18 2006-06-28 21:02:39 ca Exp $
2include(confBUILDTOOLSDIR`/M4/switch.m4')
3
4define(`confREQUIRE_SM_OS_H', `true')
5# sendmail dir
6SMSRCDIR=	ifdef(`confSMSRCDIR', `confSMSRCDIR', `${SRCDIR}/sendmail')
7PREPENDDEF(`confENVDEF', `confMAPDEF')
8PREPENDDEF(`confINCDIRS', `-I${SMSRCDIR} ')
9
10bldPRODUCT_START(`library', `libsmutil')
11define(`bldSOURCES', `debug.c err.c lockfile.c safefile.c snprintf.c cf.c ')
12APPENDDEF(`confENVDEF', `-DNOT_SENDMAIL')
13bldPRODUCT_END
14
15srcdir=${SRCDIR}/libsmutil
16define(`confCHECK_LIBS',`libsmutil.a ../libsm/libsm.a')dnl
17include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/check.m4')
18smcheck(`t-lockfile', `compile')
19smcheck(`t-lockfile-0.sh', `run')
20
21bldFINISH
22