diff options
author | Damien Miller <djm@mindrot.org> | 2014-05-15 15:17:15 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-05-15 15:17:15 +1000 |
commit | def1de086707b0e6b046fe7e115c60aca0227a99 (patch) | |
tree | 16a736c080243e1e80fd1ea850ca0e88d657c2cc /regress/unittests/Makefile.inc | |
parent | 167685756fde8bc213a8df2c8e1848e312db0f46 (diff) |
- (djm) [regress/unittests/Makefile]
[regress/unittests/Makefile.inc]
[regress/unittests/sshbuf/Makefile]
[regress/unittests/sshbuf/test_sshbuf.c]
[regress/unittests/sshbuf/test_sshbuf_fixed.c]
[regress/unittests/sshbuf/test_sshbuf_fuzz.c]
[regress/unittests/sshbuf/test_sshbuf_getput_basic.c]
[regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
[regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
[regress/unittests/sshbuf/test_sshbuf_misc.c]
[regress/unittests/sshbuf/tests.c]
[regress/unittests/test_helper/Makefile]
[regress/unittests/test_helper/fuzz.c]
[regress/unittests/test_helper/test_helper.c]
[regress/unittests/test_helper/test_helper.h]
Import new unit tests from OpenBSD; not yet hooked up to build.
Diffstat (limited to 'regress/unittests/Makefile.inc')
-rw-r--r-- | regress/unittests/Makefile.inc | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/regress/unittests/Makefile.inc b/regress/unittests/Makefile.inc new file mode 100644 index 000000000..4c3363749 --- /dev/null +++ b/regress/unittests/Makefile.inc | |||
@@ -0,0 +1,59 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.1 2014/04/30 05:32:00 djm Exp $ | ||
2 | |||
3 | .include <bsd.own.mk> | ||
4 | .include <bsd.obj.mk> | ||
5 | |||
6 | # enable warnings | ||
7 | WARNINGS=Yes | ||
8 | |||
9 | DEBUG=-g | ||
10 | CFLAGS+= -fstack-protector-all | ||
11 | CDIAGFLAGS= -Wall | ||
12 | CDIAGFLAGS+= -Wextra | ||
13 | CDIAGFLAGS+= -Werror | ||
14 | CDIAGFLAGS+= -Wchar-subscripts | ||
15 | CDIAGFLAGS+= -Wcomment | ||
16 | CDIAGFLAGS+= -Wformat | ||
17 | CDIAGFLAGS+= -Wformat-security | ||
18 | CDIAGFLAGS+= -Wimplicit | ||
19 | CDIAGFLAGS+= -Winline | ||
20 | CDIAGFLAGS+= -Wmissing-declarations | ||
21 | CDIAGFLAGS+= -Wmissing-prototypes | ||
22 | CDIAGFLAGS+= -Wparentheses | ||
23 | CDIAGFLAGS+= -Wpointer-arith | ||
24 | CDIAGFLAGS+= -Wpointer-sign | ||
25 | CDIAGFLAGS+= -Wreturn-type | ||
26 | CDIAGFLAGS+= -Wshadow | ||
27 | CDIAGFLAGS+= -Wsign-compare | ||
28 | CDIAGFLAGS+= -Wstrict-aliasing | ||
29 | CDIAGFLAGS+= -Wstrict-prototypes | ||
30 | CDIAGFLAGS+= -Wswitch | ||
31 | CDIAGFLAGS+= -Wtrigraphs | ||
32 | CDIAGFLAGS+= -Wuninitialized | ||
33 | CDIAGFLAGS+= -Wunused | ||
34 | .if ${COMPILER_VERSION} == "gcc4" | ||
35 | CDIAGFLAGS+= -Wold-style-definition | ||
36 | .endif | ||
37 | |||
38 | SSHREL=../../../../../usr.bin/ssh | ||
39 | |||
40 | CFLAGS+=-I${.CURDIR}/../test_helper -I${.CURDIR}/${SSHREL} | ||
41 | |||
42 | .if exists(${.CURDIR}/../test_helper/${__objdir}) | ||
43 | LDADD+=-L${.CURDIR}/../test_helper/${__objdir} -ltest_helper | ||
44 | DPADD+=${.CURDIR}/../test_helper/${__objdir}/libtest_helper.a | ||
45 | .else | ||
46 | LDADD+=-L${.CURDIR}/../test_helper -ltest_helper | ||
47 | DPADD+=${.CURDIR}/../test_helper/libtest_helper.a | ||
48 | .endif | ||
49 | |||
50 | .if exists(${.CURDIR}/${SSHREL}/lib/${__objdir}) | ||
51 | LDADD+=-L${.CURDIR}/${SSHREL}/lib/${__objdir} -lssh | ||
52 | DPADD+=${.CURDIR}/${SSHREL}/lib/${__objdir}/libssh.a | ||
53 | .else | ||
54 | LDADD+=-L${.CURDIR}/${SSHREL}/lib -lssh | ||
55 | DPADD+=${.CURDIR}/${SSHREL}/lib/libssh.a | ||
56 | .endif | ||
57 | |||
58 | LDADD+= -lcrypto | ||
59 | DPADD+= ${LIBCRYPTO} | ||