1 # $FreeBSD: src/lib/libsm/Makefile,v 1.1.2.2 2002/07/19 18:46:26 ru Exp $
2 # $DragonFly: src/lib/libsm/Makefile,v 1.6 2004/07/23 18:15:08 drhodus Exp $
4 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
5 .PATH: ${SENDMAIL_DIR}/libsm
7 CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
8 CFLAGS+=-DNETINET6 -DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
10 #Define __FreeBSD__ as is needed when building with gcc3.
11 CFLAGS+= -D__FreeBSD__
13 # User customizations to the sendmail build environment
14 CFLAGS+=${SENDMAIL_CFLAGS}
19 SRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \
20 strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \
21 fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \
22 fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \
23 fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \
24 smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \
25 vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \
26 vsprintf.c vsscanf.c wbuf.c wsetup.c string.c stringf.c \
27 xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c \
28 signal.c clock.c config.c shm.c mbdb.c strexit.c cf.c ldap.c \
35 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h