xref: /freebsd/lib/libsm/Makefile (revision 850dab17735a22f6d201725d9afdf91f8fb08aae)
1850dab17SGregory Neil Shapiro# $FreeBSD$
2850dab17SGregory Neil Shapiro
3850dab17SGregory Neil ShapiroMAINTAINER=	gshapiro@FreeBSD.org
4850dab17SGregory Neil Shapiro
5850dab17SGregory Neil ShapiroSENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
6850dab17SGregory Neil Shapiro.PATH:	${SENDMAIL_DIR}/libsm
7850dab17SGregory Neil Shapiro
8850dab17SGregory Neil ShapiroCFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
9850dab17SGregory Neil ShapiroCFLAGS+=-DNETINET6 -DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
10850dab17SGregory Neil Shapiro
11850dab17SGregory Neil Shapiro# User customizations to the sendmail build environment
12850dab17SGregory Neil ShapiroCFLAGS+=${SENDMAIL_CFLAGS}
13850dab17SGregory Neil Shapiro
14850dab17SGregory Neil ShapiroLIB=	sm
15850dab17SGregory Neil Shapiro
16850dab17SGregory Neil ShapiroSRCS+=	sm_os.h
17850dab17SGregory Neil ShapiroSRCS+=	assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \
18850dab17SGregory Neil Shapiro	strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \
19850dab17SGregory Neil Shapiro	fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \
20850dab17SGregory Neil Shapiro	fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \
21850dab17SGregory Neil Shapiro	fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \
22850dab17SGregory Neil Shapiro	smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \
23850dab17SGregory Neil Shapiro	vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \
24850dab17SGregory Neil Shapiro	vsprintf.c vsscanf.c wbuf.c wsetup.c string.c stringf.c \
25850dab17SGregory Neil Shapiro	xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c \
26850dab17SGregory Neil Shapiro	signal.c clock.c config.c shm.c mbdb.c strexit.c cf.c ldap.c \
27850dab17SGregory Neil Shapiro	niprop.c mpeix.c
28850dab17SGregory Neil ShapiroCLEANFILES+=sm_os.h
29850dab17SGregory Neil Shapiro
30850dab17SGregory Neil ShapiroINTERNALLIB=		true
31850dab17SGregory Neil ShapiroNOPIC=			true
32850dab17SGregory Neil ShapiroINTERNALSTATICLIB=	true
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