Merge from vendor branch GDB:
[dragonfly.git] / lib / libsm / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/lib/libsm/Makefile,v 1.1.2.2 2002/07/19 18:46:26 ru Exp $
3181538d 2# $DragonFly: src/lib/libsm/Makefile,v 1.8 2005/07/25 00:24:31 gshapiro Exp $
984263bc 3
3181538d 4SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.13.4
984263bc
MD
5.PATH: ${SENDMAIL_DIR}/libsm
6
3181538d 7CFLAGS+= -I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I.
984263bc
MD
8CFLAGS+=-DNETINET6 -DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
9
10# User customizations to the sendmail build environment
11CFLAGS+=${SENDMAIL_CFLAGS}
12
13LIB= sm
14
15SRCS+= sm_os.h
16SRCS+= 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 \
3181538d 23 wbuf.c wsetup.c string.c stringf.c \
984263bc
MD
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
27CLEANFILES+=sm_os.h
28
29INTERNALLIB= true
30
31sm_os.h:
3181538d 32 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
984263bc
MD
33
34.include <bsd.lib.mk>