summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/fips/sha/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/fips/sha/Makefile')
-rw-r--r--src/lib/libssl/src/fips/sha/Makefile158
1 files changed, 158 insertions, 0 deletions
diff --git a/src/lib/libssl/src/fips/sha/Makefile b/src/lib/libssl/src/fips/sha/Makefile
new file mode 100644
index 0000000000..a661640bc6
--- /dev/null
+++ b/src/lib/libssl/src/fips/sha/Makefile
@@ -0,0 +1,158 @@
1#
2# OpenSSL/fips/sha/Makefile
3#
4
5DIR= sha
6TOP= ../..
7CC= cc
8INCLUDES=
9CFLAG=-g
10INSTALL_PREFIX=
11OPENSSLDIR= /usr/local/ssl
12INSTALLTOP=/usr/local/ssl
13MAKEDEPPROG= makedepend
14MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15MAKEFILE= Makefile
16AR= ar r
17EXE_EXT=
18
19ASFLAGS= $(INCLUDES) $(ASFLAG)
20AFLAGS= $(ASFLAGS)
21
22CFLAGS= $(INCLUDES) $(CFLAG)
23
24GENERAL=Makefile
25TEST= fips_shatest.c
26APPS=
27EXE= fips_standalone_sha1$(EXE_EXT)
28
29LIB=$(TOP)/libcrypto.a
30LIBSRC=fips_sha1_selftest.c
31LIBOBJ=fips_sha1_selftest.o
32
33SRC= $(LIBSRC) fips_standalone_sha1.c
34
35EXHEADER=
36HEADER=
37
38ALL= $(GENERAL) $(SRC) $(HEADER)
39
40top:
41 (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
42
43all: ../fips_standalone_sha1$(EXE_EXT) lib
44
45lib: $(LIBOBJ)
46 @echo $(LIBOBJ) > lib
47
48../fips_standalone_sha1$(EXE_EXT): fips_standalone_sha1.o
49 FIPS_SHA_ASM=""; for i in $(SHA1_ASM_OBJ) sha1dgst.o ; do FIPS_SHA_ASM="$$FIPS_SHA_ASM ../../crypto/sha/$$i" ; done; \
50 $(CC) -o $@ $(CFLAGS) fips_standalone_sha1.o $$FIPS_SHA_ASM
51
52files:
53 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
54
55links:
56 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
57 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
58 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
59
60install:
61 @headerlist="$(EXHEADER)"; for i in $$headerlist; \
62 do \
63 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
64 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
65 done
66
67tags:
68 ctags $(SRC)
69
70tests:
71
72Q=../testvectors/sha/req
73A=../testvectors/sha/rsp
74
75VECTORS = SHA1LongMsg \
76 SHA1Monte \
77 SHA1ShortMsg \
78 SHA224LongMsg \
79 SHA224Monte \
80 SHA224ShortMsg \
81 SHA256LongMsg \
82 SHA256Monte \
83 SHA256ShortMsg \
84 SHA384LongMsg \
85 SHA384Monte \
86 SHA384ShortMsg \
87 SHA512LongMsg \
88 SHA512Monte \
89 SHA512ShortMsg
90
91fips_test:
92 -rm -rf $(A)
93 mkdir $(A)
94 for file in $(VECTORS); do \
95 if [ -f $(Q)/$$file.req ]; then \
96 $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_shatest $(Q)/$$file.req $(A)/$$file.rsp; \
97 fi; \
98 done
99
100lint:
101 lint -DLINT $(INCLUDES) $(SRC)>fluff
102
103depend:
104 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
105
106dclean:
107 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
108 mv -f Makefile.new $(MAKEFILE)
109
110clean:
111 rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE)
112
113# DO NOT DELETE THIS LINE -- make depend depends on it.
114
115fips_sha1_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
116fips_sha1_selftest.o: ../../include/openssl/crypto.h
117fips_sha1_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
118fips_sha1_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
119fips_sha1_selftest.o: ../../include/openssl/lhash.h
120fips_sha1_selftest.o: ../../include/openssl/obj_mac.h
121fips_sha1_selftest.o: ../../include/openssl/objects.h
122fips_sha1_selftest.o: ../../include/openssl/opensslconf.h
123fips_sha1_selftest.o: ../../include/openssl/opensslv.h
124fips_sha1_selftest.o: ../../include/openssl/ossl_typ.h
125fips_sha1_selftest.o: ../../include/openssl/safestack.h
126fips_sha1_selftest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
127fips_sha1_selftest.o: ../../include/openssl/symhacks.h fips_sha1_selftest.c
128fips_shatest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
129fips_shatest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
130fips_shatest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
131fips_shatest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
132fips_shatest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
133fips_shatest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
134fips_shatest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
135fips_shatest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
136fips_shatest.o: ../../include/openssl/opensslconf.h
137fips_shatest.o: ../../include/openssl/opensslv.h
138fips_shatest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
139fips_shatest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
140fips_shatest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
141fips_shatest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
142fips_shatest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_shatest.c
143fips_standalone_sha1.o: ../../include/openssl/asn1.h
144fips_standalone_sha1.o: ../../include/openssl/bio.h
145fips_standalone_sha1.o: ../../include/openssl/crypto.h
146fips_standalone_sha1.o: ../../include/openssl/e_os2.h
147fips_standalone_sha1.o: ../../include/openssl/evp.h
148fips_standalone_sha1.o: ../../include/openssl/fips.h
149fips_standalone_sha1.o: ../../include/openssl/hmac.h
150fips_standalone_sha1.o: ../../include/openssl/obj_mac.h
151fips_standalone_sha1.o: ../../include/openssl/objects.h
152fips_standalone_sha1.o: ../../include/openssl/opensslconf.h
153fips_standalone_sha1.o: ../../include/openssl/opensslv.h
154fips_standalone_sha1.o: ../../include/openssl/ossl_typ.h
155fips_standalone_sha1.o: ../../include/openssl/safestack.h
156fips_standalone_sha1.o: ../../include/openssl/sha.h
157fips_standalone_sha1.o: ../../include/openssl/stack.h
158fips_standalone_sha1.o: ../../include/openssl/symhacks.h fips_standalone_sha1.c