102ed27556d3e62fd8c9aa8a25f8d70e03238fb4
[dragonfly.git] / lib / libsm / Makefile
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.5 2004/07/21 16:13:42 drhodus Exp $
3
4 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
5 .PATH:  ${SENDMAIL_DIR}/libsm
6
7 CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
8 CFLAGS+=-DNETINET6 -DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
9
10 # User customizations to the sendmail build environment
11 CFLAGS+=${SENDMAIL_CFLAGS}
12
13 LIB=    sm
14
15 SRCS+=  sm_os.h
16 SRCS+=  assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \
17         strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \
18         fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \
19         fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \
20         fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \
21         smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \
22         vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \
23         vsprintf.c vsscanf.c wbuf.c wsetup.c string.c stringf.c \
24         xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c \
25         signal.c clock.c config.c shm.c mbdb.c strexit.c cf.c ldap.c \
26         niprop.c mpeix.c
27 CLEANFILES+=sm_os.h
28
29 INTERNALLIB=            true
30
31 sm_os.h:
32         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
33
34 .include <bsd.lib.mk>