diff options
Diffstat (limited to 'src/lib/libssl/src/fips/sha/Makefile')
-rw-r--r-- | src/lib/libssl/src/fips/sha/Makefile | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/src/lib/libssl/src/fips/sha/Makefile b/src/lib/libssl/src/fips/sha/Makefile deleted file mode 100644 index a661640bc6..0000000000 --- a/src/lib/libssl/src/fips/sha/Makefile +++ /dev/null | |||
@@ -1,158 +0,0 @@ | |||
1 | # | ||
2 | # OpenSSL/fips/sha/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= sha | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= | ||
9 | CFLAG=-g | ||
10 | INSTALL_PREFIX= | ||
11 | OPENSSLDIR= /usr/local/ssl | ||
12 | INSTALLTOP=/usr/local/ssl | ||
13 | MAKEDEPPROG= makedepend | ||
14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
15 | MAKEFILE= Makefile | ||
16 | AR= ar r | ||
17 | EXE_EXT= | ||
18 | |||
19 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
20 | AFLAGS= $(ASFLAGS) | ||
21 | |||
22 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
23 | |||
24 | GENERAL=Makefile | ||
25 | TEST= fips_shatest.c | ||
26 | APPS= | ||
27 | EXE= fips_standalone_sha1$(EXE_EXT) | ||
28 | |||
29 | LIB=$(TOP)/libcrypto.a | ||
30 | LIBSRC=fips_sha1_selftest.c | ||
31 | LIBOBJ=fips_sha1_selftest.o | ||
32 | |||
33 | SRC= $(LIBSRC) fips_standalone_sha1.c | ||
34 | |||
35 | EXHEADER= | ||
36 | HEADER= | ||
37 | |||
38 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
39 | |||
40 | top: | ||
41 | (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all) | ||
42 | |||
43 | all: ../fips_standalone_sha1$(EXE_EXT) lib | ||
44 | |||
45 | lib: $(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 | |||
52 | files: | ||
53 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
54 | |||
55 | links: | ||
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 | |||
60 | install: | ||
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 | |||
67 | tags: | ||
68 | ctags $(SRC) | ||
69 | |||
70 | tests: | ||
71 | |||
72 | Q=../testvectors/sha/req | ||
73 | A=../testvectors/sha/rsp | ||
74 | |||
75 | VECTORS = 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 | |||
91 | fips_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 | |||
100 | lint: | ||
101 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
102 | |||
103 | depend: | ||
104 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST) | ||
105 | |||
106 | dclean: | ||
107 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
108 | mv -f Makefile.new $(MAKEFILE) | ||
109 | |||
110 | clean: | ||
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 | |||
115 | fips_sha1_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
116 | fips_sha1_selftest.o: ../../include/openssl/crypto.h | ||
117 | fips_sha1_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
118 | fips_sha1_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h | ||
119 | fips_sha1_selftest.o: ../../include/openssl/lhash.h | ||
120 | fips_sha1_selftest.o: ../../include/openssl/obj_mac.h | ||
121 | fips_sha1_selftest.o: ../../include/openssl/objects.h | ||
122 | fips_sha1_selftest.o: ../../include/openssl/opensslconf.h | ||
123 | fips_sha1_selftest.o: ../../include/openssl/opensslv.h | ||
124 | fips_sha1_selftest.o: ../../include/openssl/ossl_typ.h | ||
125 | fips_sha1_selftest.o: ../../include/openssl/safestack.h | ||
126 | fips_sha1_selftest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
127 | fips_sha1_selftest.o: ../../include/openssl/symhacks.h fips_sha1_selftest.c | ||
128 | fips_shatest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
129 | fips_shatest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
130 | fips_shatest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h | ||
131 | fips_shatest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h | ||
132 | fips_shatest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h | ||
133 | fips_shatest.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
134 | fips_shatest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
135 | fips_shatest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
136 | fips_shatest.o: ../../include/openssl/opensslconf.h | ||
137 | fips_shatest.o: ../../include/openssl/opensslv.h | ||
138 | fips_shatest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h | ||
139 | fips_shatest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
140 | fips_shatest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
141 | fips_shatest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
142 | fips_shatest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_shatest.c | ||
143 | fips_standalone_sha1.o: ../../include/openssl/asn1.h | ||
144 | fips_standalone_sha1.o: ../../include/openssl/bio.h | ||
145 | fips_standalone_sha1.o: ../../include/openssl/crypto.h | ||
146 | fips_standalone_sha1.o: ../../include/openssl/e_os2.h | ||
147 | fips_standalone_sha1.o: ../../include/openssl/evp.h | ||
148 | fips_standalone_sha1.o: ../../include/openssl/fips.h | ||
149 | fips_standalone_sha1.o: ../../include/openssl/hmac.h | ||
150 | fips_standalone_sha1.o: ../../include/openssl/obj_mac.h | ||
151 | fips_standalone_sha1.o: ../../include/openssl/objects.h | ||
152 | fips_standalone_sha1.o: ../../include/openssl/opensslconf.h | ||
153 | fips_standalone_sha1.o: ../../include/openssl/opensslv.h | ||
154 | fips_standalone_sha1.o: ../../include/openssl/ossl_typ.h | ||
155 | fips_standalone_sha1.o: ../../include/openssl/safestack.h | ||
156 | fips_standalone_sha1.o: ../../include/openssl/sha.h | ||
157 | fips_standalone_sha1.o: ../../include/openssl/stack.h | ||
158 | fips_standalone_sha1.o: ../../include/openssl/symhacks.h fips_standalone_sha1.c | ||