2fa3ca949801b98cdfd311d16f2a9172b564f8cc
[dragonfly.git] / lib / libmilter / Makefile
1 # $FreeBSD: src/lib/libmilter/Makefile,v 1.1.2.2 2002/07/22 14:21:49 ru Exp $
2 # $DragonFly: src/lib/libmilter/Makefile,v 1.3 2004/01/31 06:56:39 dillon Exp $
3
4 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
5 .PATH:  ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
6
7 CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
8 CFLAGS+=-DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf
9 CFLAGS+=-D_THREAD_SAFE
10
11 # User customizations to the sendmail build environment
12 CFLAGS+=${SENDMAIL_CFLAGS}
13
14 INCSDIR=${INCLUDEDIR}/libmilter
15 INCS=   ${SENDMAIL_DIR}/include/libmilter/mfapi.h \
16         ${SENDMAIL_DIR}/include/libmilter/mfdef.h
17 LIB=    milter
18
19 SRCS+=  sm_os.h
20 SRCS+=  main.c engine.c listener.c handler.c comm.c smfi.c \
21         signal.c sm_gethost.c errstring.c strl.c
22 CLEANFILES+=sm_os.h
23
24 sm_os.h:
25         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
26
27 .include <bsd.lib.mk>