summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libssp/Makefile
blob: 641874c17289737df8bbe5e834e780823270bf32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $FreeBSD$

SHLIBDIR?=	/lib

.include <bsd.own.mk>
MK_SSP=		no

GCCDIR=	${.CURDIR}/../../../contrib/gcc
GCCLIB=	${.CURDIR}/../../../contrib/gcclibs
SRCDIR=	${GCCLIB}/libssp

.PATH: ${SRCDIR} ${SRCDIR}/ssp

LIB=		ssp
SHLIB_MAJOR=	0
NO_PROFILE=

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>
OpenPOWER on IntegriCloud