]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - gnu/lib/libssp/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / gnu / lib / libssp / Makefile
1 # $FreeBSD$
2
3 SHLIBDIR?=      /lib
4
5 .include <bsd.own.mk>
6 MK_SSP=         no
7
8 GCCDIR= ${.CURDIR}/../../../contrib/gcc
9 GCCLIB= ${.CURDIR}/../../../contrib/gcclibs
10 SRCDIR= ${GCCLIB}/libssp
11
12 .PATH: ${SRCDIR} ${SRCDIR}/ssp
13
14 LIB=            ssp
15 SHLIB_MAJOR=    0
16 NO_PROFILE=
17
18 SRCS=   ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
19         memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
20         strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
21         vsnprintf-chk.c vsprintf-chk.c
22
23 CFLAGS+= -DHAVE_CONFIG_H
24 CFLAGS+= -I${.CURDIR}  -I${SRCDIR}  -I${GCCLIB}/include
25
26 VERSION_MAP= ${SRCDIR}/ssp.map
27
28
29 INCS=   ssp.h string.h stdio.h unistd.h
30 INCSDIR=${INCLUDEDIR}/ssp
31
32 CLEANFILES= ssp.h
33 ssp.h: ssp.h.in
34         sed -e 's/@ssp_have_usable_vsnprintf@/define/' ${.ALLSRC} > ${.TARGET}
35
36 SUBDIR+= libssp_nonshared
37
38 .include <bsd.lib.mk>