]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/libmilter/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / libmilter / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
6 .PATH:  ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
7
8 CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
9 CFLAGS+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf
10 CFLAGS+=-D_THREAD_SAFE
11 CFLAGS+=-DSM_CONF_POLL
12
13 .if ${MK_INET6_SUPPORT} != "no"
14 CFLAGS+=-DNETINET6
15 .endif
16
17 # User customizations to the sendmail build environment
18 CFLAGS+=${SENDMAIL_CFLAGS}
19
20 INCSDIR=${INCLUDEDIR}/libmilter
21 INCS=   ${SENDMAIL_DIR}/include/libmilter/mfapi.h \
22         ${SENDMAIL_DIR}/include/libmilter/mfdef.h
23 LIB=    milter
24
25 SRCS+=  sm_os.h
26 SRCS+=  main.c engine.c listener.c handler.c comm.c monitor.c smfi.c \
27         signal.c sm_gethost.c errstring.c strl.c worker.c
28 CLEANFILES+=sm_os.h
29
30 WARNS?= 0
31
32 sm_os.h:
33         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
34
35 .include <bsd.lib.mk>