]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libmilter/Makefile
This commit was generated by cvs2svn to compensate for changes in r170242,
[FreeBSD/FreeBSD.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
12 .if ${MK_INET6_SUPPORT} != "no"
13 CFLAGS+=-DNETINET6
14 .endif
15
16 # User customizations to the sendmail build environment
17 CFLAGS+=${SENDMAIL_CFLAGS}
18
19 INCSDIR=${INCLUDEDIR}/libmilter
20 INCS=   ${SENDMAIL_DIR}/include/libmilter/mfapi.h \
21         ${SENDMAIL_DIR}/include/libmilter/mfdef.h
22 LIB=    milter
23
24 SRCS+=  sm_os.h
25 SRCS+=  main.c engine.c listener.c handler.c comm.c monitor.c smfi.c \
26         signal.c sm_gethost.c errstring.c strl.c worker.c
27 CLEANFILES+=sm_os.h
28
29 sm_os.h:
30         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
31
32 .include <bsd.lib.mk>