]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gnu/lib/libssp/Makefile
add -n option to suppress clearing the build tree and add -DNO_CLEAN
[FreeBSD/FreeBSD.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 WITHOUT_SSP=
14
15 SRCS=   ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
16         memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
17         strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
18         vsnprintf-chk.c vsprintf-chk.c
19
20 CFLAGS+= -DHAVE_CONFIG_H
21 CFLAGS+= -I${.CURDIR}  -I${SRCDIR}  -I${GCCLIB}/include
22
23 VERSION_MAP= ${SRCDIR}/ssp.map
24
25
26 INCS=   ssp.h string.h stdio.h unistd.h
27 INCSDIR=${INCLUDEDIR}/ssp
28
29 CLEANFILES= ssp.h
30 ssp.h: ssp.h.in
31         sed -e 's/@ssp_have_usable_vsnprintf@/define/' ${.ALLSRC} > ${.TARGET}
32
33 SUBDIR+= libssp_nonshared
34
35 .include <bsd.lib.mk>