diff options
Diffstat (limited to 'regress/misc/sk-dummy/Makefile')
-rw-r--r-- | regress/misc/sk-dummy/Makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/regress/misc/sk-dummy/Makefile b/regress/misc/sk-dummy/Makefile new file mode 100644 index 000000000..29e313c82 --- /dev/null +++ b/regress/misc/sk-dummy/Makefile | |||
@@ -0,0 +1,66 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2019/11/29 00:13:29 djm Exp $ | ||
2 | |||
3 | .include <bsd.own.mk> | ||
4 | .include <bsd.obj.mk> | ||
5 | |||
6 | PROG= sk-dummy.so | ||
7 | NOMAN= | ||
8 | |||
9 | SSHREL=../../../../../usr.bin/ssh | ||
10 | .PATH: ${.CURDIR}/${SSHREL} | ||
11 | |||
12 | SRCS=sk-dummy.c | ||
13 | # From usr.bin/ssh | ||
14 | SRCS+=ed25519.c hash.c ge25519.c fe25519.c sc25519.c verify.c | ||
15 | OPENSSL?= yes | ||
16 | |||
17 | CFLAGS+= -fPIC | ||
18 | |||
19 | .if (${OPENSSL:L} == "yes") | ||
20 | CFLAGS+= -DWITH_OPENSSL | ||
21 | .endif | ||
22 | |||
23 | # enable warnings | ||
24 | WARNINGS=Yes | ||
25 | |||
26 | DEBUG=-g | ||
27 | CFLAGS+= -fstack-protector-all | ||
28 | CDIAGFLAGS= -Wall | ||
29 | CDIAGFLAGS+= -Wextra | ||
30 | CDIAGFLAGS+= -Werror | ||
31 | CDIAGFLAGS+= -Wchar-subscripts | ||
32 | CDIAGFLAGS+= -Wcomment | ||
33 | CDIAGFLAGS+= -Wformat | ||
34 | CDIAGFLAGS+= -Wformat-security | ||
35 | CDIAGFLAGS+= -Wimplicit | ||
36 | CDIAGFLAGS+= -Winline | ||
37 | CDIAGFLAGS+= -Wmissing-declarations | ||
38 | CDIAGFLAGS+= -Wmissing-prototypes | ||
39 | CDIAGFLAGS+= -Wparentheses | ||
40 | CDIAGFLAGS+= -Wpointer-arith | ||
41 | CDIAGFLAGS+= -Wreturn-type | ||
42 | CDIAGFLAGS+= -Wshadow | ||
43 | CDIAGFLAGS+= -Wsign-compare | ||
44 | CDIAGFLAGS+= -Wstrict-aliasing | ||
45 | CDIAGFLAGS+= -Wstrict-prototypes | ||
46 | CDIAGFLAGS+= -Wswitch | ||
47 | CDIAGFLAGS+= -Wtrigraphs | ||
48 | CDIAGFLAGS+= -Wuninitialized | ||
49 | CDIAGFLAGS+= -Wunused | ||
50 | CDIAGFLAGS+= -Wno-unused-parameter | ||
51 | .if ${COMPILER_VERSION:L} != "gcc3" | ||
52 | CDIAGFLAGS+= -Wold-style-definition | ||
53 | .endif | ||
54 | |||
55 | CFLAGS+=-I${.CURDIR}/${SSHREL} | ||
56 | |||
57 | .if (${OPENSSL:L} == "yes") | ||
58 | LDADD+= -lcrypto | ||
59 | DPADD+= ${LIBCRYPTO} | ||
60 | .endif | ||
61 | |||
62 | $(PROG): $(OBJS) | ||
63 | $(CC) $(LDFLAGS) -shared -o $@ $(OBJS) $(LDADD) | ||
64 | |||
65 | .include <bsd.prog.mk> | ||
66 | |||