xref: /freebsd/lib/libsm/Makefile (revision a35d88931c87cfe6bd38f01d7bad22140b3b38f3)
1850dab17SGregory Neil Shapiro# $FreeBSD$
2850dab17SGregory Neil Shapiro
3850dab17SGregory Neil ShapiroSENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
4850dab17SGregory Neil Shapiro.PATH:	${SENDMAIL_DIR}/libsm
5850dab17SGregory Neil Shapiro
6850dab17SGregory Neil ShapiroCFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
70c56527fSGregory Neil ShapiroCFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
80c56527fSGregory Neil Shapiro
90c56527fSGregory Neil Shapiro.if !defined(NOINET6)
100c56527fSGregory Neil ShapiroCFLAGS+=-DNETINET6
110c56527fSGregory Neil Shapiro.endif
12850dab17SGregory Neil Shapiro
13850dab17SGregory Neil Shapiro# User customizations to the sendmail build environment
14850dab17SGregory Neil ShapiroCFLAGS+=${SENDMAIL_CFLAGS}
15850dab17SGregory Neil Shapiro
16850dab17SGregory Neil ShapiroLIB=	sm
17850dab17SGregory Neil Shapiro
18850dab17SGregory Neil ShapiroSRCS+=	sm_os.h
19850dab17SGregory Neil ShapiroSRCS+=	assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \
20850dab17SGregory Neil Shapiro	strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \
21850dab17SGregory Neil Shapiro	fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \
22850dab17SGregory Neil Shapiro	fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \
23850dab17SGregory Neil Shapiro	fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \
24850dab17SGregory Neil Shapiro	smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \
25850dab17SGregory Neil Shapiro	vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \
26f673db9fSGregory Neil Shapiro	vsscanf.c wbuf.c wsetup.c string.c stringf.c \
27850dab17SGregory Neil Shapiro	xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c \
28850dab17SGregory Neil Shapiro	signal.c clock.c config.c shm.c mbdb.c strexit.c cf.c ldap.c \
29850dab17SGregory Neil Shapiro	niprop.c mpeix.c
30850dab17SGregory Neil ShapiroCLEANFILES+=sm_os.h
31850dab17SGregory Neil Shapiro
32a35d8893SRuslan ErmilovINTERNALLIB=
33850dab17SGregory Neil Shapiro
34850dab17SGregory Neil Shapirosm_os.h:
35850dab17SGregory Neil Shapiro	ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
36850dab17SGregory Neil Shapiro
37850dab17SGregory Neil Shapiro.include <bsd.lib.mk>
38