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