1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2020 Oxide Computer Company
14#
15
16include $(SRC)/Makefile.master
17
18ROOTOPTPKG = $(ROOT)/opt/crypto-tests
19SHAREDIR = $(ROOTOPTPKG)/share
20
21DIGEST_FILES = \
22    README \
23    MD5Msg.rsp \
24    SHA1LongMsg.rsp \
25    SHA1ShortMsg.rsp \
26    SHA224LongMsg.rsp \
27    SHA224ShortMsg.rsp \
28    SHA256LongMsg.rsp \
29    SHA256ShortMsg.rsp \
30    SHA384LongMsg.rsp \
31    SHA384ShortMsg.rsp \
32    SHA512_224LongMsg.rsp \
33    SHA512_224ShortMsg.rsp \
34    SHA512_256LongMsg.rsp \
35    SHA512_256ShortMsg.rsp \
36    SHA512LongMsg.rsp \
37    SHA512ShortMsg.rsp
38
39FILES = $(DIGEST_FILES:%=$(SHAREDIR)/%)
40$(FILES) := FILEMODE = 0444
41
42all clean lint clobber:
43
44install: $(SHAREDIR) $(FILES)
45
46$(SHAREDIR):
47	$(INS.dir)
48
49$(SHAREDIR)/%: %
50	$(INS.file)
51