]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - lib/libc/tests/ssp/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / lib / libc / tests / ssp / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 TESTSDIR=       ${TESTSBASE}/lib/libc/ssp
6
7 NO_WERROR=
8 WARNS?= 2
9
10 CFLAGS.h_raw+=  -fstack-protector-all -Wstack-protector
11 .if ${COMPILER_TYPE} == "clang"
12 CFLAGS.h_raw+=  -fsanitize=bounds
13 .elif ${COMPILER_TYPE} == "gcc"
14 CFLAGS.h_raw+=  --param ssp-buffer-size=1
15 DPADD+=         ${LIBSSP}
16 LDADD+=         -lssp
17 .endif
18
19 NETBSD_ATF_TESTS_SH=    ssp_test
20
21 BINDIR=         ${TESTSDIR}
22
23 PROGS=          h_fgets
24 PROGS+=         h_gets
25 PROGS+=         h_getcwd
26 PROGS+=         h_memcpy
27 PROGS+=         h_memmove
28 PROGS+=         h_memset
29 PROGS+=         h_raw
30 PROGS+=         h_read
31 PROGS+=         h_readlink
32 PROGS+=         h_snprintf
33 PROGS+=         h_sprintf
34 PROGS+=         h_stpcpy
35 PROGS+=         h_stpncpy
36 PROGS+=         h_strcat
37 PROGS+=         h_strcpy
38 PROGS+=         h_strncat
39 PROGS+=         h_strncpy
40 PROGS+=         h_vsnprintf
41 PROGS+=         h_vsprintf
42
43 .include "../Makefile.netbsd-tests"
44
45 .include <bsd.test.mk>