]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - crypto/openssh/regress/unittests/Makefile.inc
Upgrade to OpenSSH 7.7p1.
[FreeBSD/FreeBSD.git] / crypto / openssh / regress / unittests / Makefile.inc
1 #       $OpenBSD: Makefile.inc,v 1.12 2017/12/21 00:41:22 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+=    -Wreturn-type
25 CDIAGFLAGS+=    -Wshadow
26 CDIAGFLAGS+=    -Wsign-compare
27 CDIAGFLAGS+=    -Wstrict-aliasing
28 CDIAGFLAGS+=    -Wstrict-prototypes
29 CDIAGFLAGS+=    -Wswitch
30 CDIAGFLAGS+=    -Wtrigraphs
31 CDIAGFLAGS+=    -Wuninitialized
32 CDIAGFLAGS+=    -Wunused
33 CDIAGFLAGS+=    -Wno-unused-parameter
34 .if ${COMPILER_VERSION:L} != "gcc3"
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 .PATH: ${.CURDIR}/${SSHREL}
51
52 LDADD+= -lcrypto
53 DPADD+= ${LIBCRYPTO}