freebsd-dev/gnu/lib/libssp/Makefile
Warner Losh ffec315183 Convert gnu to using SRCTOP
Prefer SRCTOP over CURDIR/../../contrib, etc. However, retain the "up
one level" instances of ../ because they are really relative to this
part of the tree and not a means to find the root of the tree. As
such, it's better to leave them since that further the goal of being
able to move directories if watned to in the future.

Differential Revision:	https://reviews.freebsd.org/D9932
Sponsored by:		Netflix
Silence	On:		arch@ (twice)
2017-03-12 18:59:16 +00:00

41 lines
801 B
Makefile

# $FreeBSD$
SHLIBDIR?= /lib
MK_PROFILE= no
MK_SSP= no
.include <bsd.own.mk>
GCCDIR= ${SRCTOP}/contrib/gcc
GCCLIB= ${SRCTOP}/contrib/gcclibs
SRCDIR= ${GCCLIB}/libssp
.PATH: ${SRCDIR} ${SRCDIR}/ssp
LIB= ssp
SHLIB_MAJOR= 0
LD_FATAL_WARNINGS= no
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
CLEANFILES= ssp.h
ssp.h: ssp.h.in
sed -e 's/@ssp_have_usable_vsnprintf@/define/' ${.ALLSRC} > ${.TARGET}
SUBDIR+= libssp_nonshared
.include <bsd.lib.mk>