Merge from vendor branch GCC:
[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.11 2006/08/18 03:06:59 gshapiro Exp $
3
4 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.13.8
5 .PATH:  ${SENDMAIL_DIR}/libsm
6
7 CFLAGS+= -I${SENDMAIL_DIR}/sendmail -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         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 memstat.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_dragonfly.h sm_os.h
33
34 .include <bsd.lib.mk>