Makefile (9199c09a159c4e3e98c212d4eec1edc5252d9e33) Makefile (850dab17735a22f6d201725d9afdf91f8fb08aae)
1# $FreeBSD$
2
1# $FreeBSD$
2
3.include <bsd.own.mk>
3MAINTAINER= gshapiro@FreeBSD.org
4
5SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
6.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
7
8CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
4
5SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
6.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
7
8CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
9CFLAGS+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf
9CFLAGS+=-DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf
10CFLAGS+=-D_THREAD_SAFE
10CFLAGS+=-D_THREAD_SAFE
11CFLAGS+=-DSM_CONF_POLL
12
11
13.if ${MK_INET6_SUPPORT} != "no"
14CFLAGS+=-DNETINET6
15.endif
16
17# User customizations to the sendmail build environment
18CFLAGS+=${SENDMAIL_CFLAGS}
19
12# User customizations to the sendmail build environment
13CFLAGS+=${SENDMAIL_CFLAGS}
14
20INCSDIR=${INCLUDEDIR}/libmilter
15INCDIR= /usr/include/libmilter
21INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \
22 ${SENDMAIL_DIR}/include/libmilter/mfdef.h
23LIB= milter
24
25SRCS+= sm_os.h
16INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \
17 ${SENDMAIL_DIR}/include/libmilter/mfdef.h
18LIB= milter
19
20SRCS+= sm_os.h
26SRCS+= 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
21SRCS+= main.c engine.c listener.c handler.c comm.c smfi.c \
22 signal.c sm_gethost.c errstring.c strl.c
28CLEANFILES+=sm_os.h
29
23CLEANFILES+=sm_os.h
24
30WARNS?= 0
31
32sm_os.h:
33 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
34
35.include <bsd.lib.mk>
25sm_os.h:
26 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
27
28.include <bsd.lib.mk>