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