2007-05-19 04:25:59 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2015-06-15 15:34:20 +00:00
|
|
|
SHLIBDIR= /lib
|
2009-02-24 16:14:15 +00:00
|
|
|
|
2014-04-25 19:25:26 +00:00
|
|
|
MK_PROFILE= no
|
2009-02-21 15:04:31 +00:00
|
|
|
MK_SSP= no
|
|
|
|
|
2014-04-25 19:25:26 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2007-05-19 04:25:59 +00:00
|
|
|
GCCDIR= ${.CURDIR}/../../../contrib/gcc
|
|
|
|
GCCLIB= ${.CURDIR}/../../../contrib/gcclibs
|
|
|
|
SRCDIR= ${GCCLIB}/libssp
|
|
|
|
|
|
|
|
.PATH: ${SRCDIR} ${SRCDIR}/ssp
|
|
|
|
|
|
|
|
LIB= ssp
|
|
|
|
SHLIB_MAJOR= 0
|
2014-12-23 10:43:35 +00:00
|
|
|
LD_FATAL_WARNINGS= no
|
2007-05-19 04:25:59 +00:00
|
|
|
|
|
|
|
SRCS= ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
|
|
|
|
memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
|
|
|
|
strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
|
|
|
|
vsnprintf-chk.c vsprintf-chk.c
|
|
|
|
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H
|
|
|
|
CFLAGS+= -I${.CURDIR} -I${SRCDIR} -I${GCCLIB}/include
|
|
|
|
|
|
|
|
VERSION_MAP= ${SRCDIR}/ssp.map
|
|
|
|
|
|
|
|
|
|
|
|
INCS= ssp.h string.h stdio.h unistd.h
|
|
|
|
INCSDIR=${INCLUDEDIR}/ssp
|
|
|
|
|
2007-05-22 10:40:58 +00:00
|
|
|
CLEANFILES= ssp.h
|
2007-05-19 04:25:59 +00:00
|
|
|
ssp.h: ssp.h.in
|
|
|
|
sed -e 's/@ssp_have_usable_vsnprintf@/define/' ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
SUBDIR+= libssp_nonshared
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|