1afb57df6SAlexander Kabaev# $FreeBSD$ 2afb57df6SAlexander Kabaev 318b2ee82SBaptiste DaroussinSHLIBDIR?= /lib 4107e14e3SRuslan Ermilov 598407b8bSWarner LoshMK_PROFILE= no 6d9ca85fcSRuslan ErmilovMK_SSP= no 7d9ca85fcSRuslan Ermilov 898407b8bSWarner Losh.include <bsd.own.mk> 998407b8bSWarner Losh 10*ffec3151SWarner LoshGCCDIR= ${SRCTOP}/contrib/gcc 11*ffec3151SWarner LoshGCCLIB= ${SRCTOP}/contrib/gcclibs 12afb57df6SAlexander KabaevSRCDIR= ${GCCLIB}/libssp 13afb57df6SAlexander Kabaev 14afb57df6SAlexander Kabaev.PATH: ${SRCDIR} ${SRCDIR}/ssp 15afb57df6SAlexander Kabaev 16afb57df6SAlexander KabaevLIB= ssp 17afb57df6SAlexander KabaevSHLIB_MAJOR= 0 1870d099afSBaptiste DaroussinLD_FATAL_WARNINGS= no 19afb57df6SAlexander Kabaev 20afb57df6SAlexander KabaevSRCS= ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \ 21afb57df6SAlexander Kabaev memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \ 22afb57df6SAlexander Kabaev strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \ 23afb57df6SAlexander Kabaev vsnprintf-chk.c vsprintf-chk.c 24afb57df6SAlexander Kabaev 25afb57df6SAlexander KabaevCFLAGS+= -DHAVE_CONFIG_H 26afb57df6SAlexander KabaevCFLAGS+= -I${.CURDIR} -I${SRCDIR} -I${GCCLIB}/include 27afb57df6SAlexander Kabaev 28afb57df6SAlexander KabaevVERSION_MAP= ${SRCDIR}/ssp.map 29afb57df6SAlexander Kabaev 30afb57df6SAlexander Kabaev 31afb57df6SAlexander KabaevINCS= ssp.h string.h stdio.h unistd.h 32afb57df6SAlexander KabaevINCSDIR=${INCLUDEDIR}/ssp 33afb57df6SAlexander Kabaev 340effeaaeSRuslan ErmilovCLEANFILES= ssp.h 35afb57df6SAlexander Kabaevssp.h: ssp.h.in 36afb57df6SAlexander Kabaev sed -e 's/@ssp_have_usable_vsnprintf@/define/' ${.ALLSRC} > ${.TARGET} 37afb57df6SAlexander Kabaev 38afb57df6SAlexander KabaevSUBDIR+= libssp_nonshared 39afb57df6SAlexander Kabaev 40afb57df6SAlexander Kabaev.include <bsd.lib.mk> 41