2 # OpenSSL/fips-1.0/sha/Makefile
11 OPENSSLDIR= /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKEDEPPROG= makedepend
14 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
19 ASFLAGS= $(INCLUDES) $(ASFLAG)
22 CFLAGS= $(INCLUDES) $(CFLAG)
26 TESTDATA= SHAmix.req SHAmix.fax
28 EXE= fips_standalone_sha1$(EXE_EXT)
30 LIB=$(TOP)/libcrypto.a
31 LIBSRC=fips_sha1dgst.c fips_sha1_selftest.c asm/fips-sx86-elf.s \
32 fips_sha256.c fips_sha512.c
33 LIBOBJ=fips_sha1dgst.o fips_sha1_selftest.o $(FIPS_SHA1_ASM_OBJ) \
34 fips_sha256.o fips_sha512.o
36 SRC= $(LIBSRC) fips_standalone_sha1.c
39 HEADER= $(EXHEADER) fips_sha_locl.h fips_md32_common.h
41 ALL= $(GENERAL) $(SRC) $(HEADER)
44 (cd $(TOP); $(MAKE) DIRS=fips-1.0 SDIRS=$(DIR) sub_all)
46 all: fips_standalone_sha1$(EXE_EXT) lib
51 fips_standalone_sha1$(EXE_EXT): fips_standalone_sha1.o fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
52 $(CC) -o fips_standalone_sha1$(EXE_EXT) $(CFLAGS) \
53 fips_standalone_sha1.o fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
56 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
59 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
60 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
61 cp $(TESTDATA) $(TOP)/test
62 @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
65 @headerlist="$(EXHEADER)"; for i in $$headerlist; \
67 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
68 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
76 Q=../testvectors/sha/req
77 A=../testvectors/sha/rsp
79 VECTORS = SHA1LongMsg \
98 for file in $(VECTORS); do \
99 if [ -f $(Q)/$$file.req ]; then \
100 $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_shatest $(Q)/$$file.req $(A)/$$file.rsp; \
105 lint -DLINT $(INCLUDES) $(SRC)>fluff
108 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
111 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
112 mv -f Makefile.new $(MAKEFILE)
115 rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE)
117 # DO NOT DELETE THIS LINE -- make depend depends on it.
119 fips_sha1_selftest.o: ../../include/openssl/bio.h
120 fips_sha1_selftest.o: ../../include/openssl/crypto.h
121 fips_sha1_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
122 fips_sha1_selftest.o: ../../include/openssl/fips.h
123 fips_sha1_selftest.o: ../../include/openssl/fips_sha.h
124 fips_sha1_selftest.o: ../../include/openssl/lhash.h
125 fips_sha1_selftest.o: ../../include/openssl/opensslconf.h
126 fips_sha1_selftest.o: ../../include/openssl/opensslv.h
127 fips_sha1_selftest.o: ../../include/openssl/ossl_typ.h
128 fips_sha1_selftest.o: ../../include/openssl/safestack.h
129 fips_sha1_selftest.o: ../../include/openssl/stack.h
130 fips_sha1_selftest.o: ../../include/openssl/symhacks.h fips_sha1_selftest.c
131 fips_sha1dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
132 fips_sha1dgst.o: ../../include/openssl/fips.h ../../include/openssl/fips_sha.h
133 fips_sha1dgst.o: ../../include/openssl/opensslconf.h
134 fips_sha1dgst.o: ../../include/openssl/opensslv.h
135 fips_sha1dgst.o: ../../include/openssl/ossl_typ.h
136 fips_sha1dgst.o: ../../include/openssl/safestack.h
137 fips_sha1dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
138 fips_sha1dgst.o: fips_md32_common.h fips_sha1dgst.c fips_sha_locl.h
139 fips_sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
140 fips_sha256.o: ../../include/openssl/fips.h ../../include/openssl/fips_sha.h
141 fips_sha256.o: ../../include/openssl/opensslconf.h
142 fips_sha256.o: ../../include/openssl/opensslv.h
143 fips_sha256.o: ../../include/openssl/ossl_typ.h
144 fips_sha256.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
145 fips_sha256.o: ../../include/openssl/symhacks.h fips_md32_common.h
146 fips_sha256.o: fips_sha256.c
147 fips_sha512.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
148 fips_sha512.o: ../../include/openssl/fips.h ../../include/openssl/fips_sha.h
149 fips_sha512.o: ../../include/openssl/opensslconf.h
150 fips_sha512.o: ../../include/openssl/opensslv.h
151 fips_sha512.o: ../../include/openssl/ossl_typ.h
152 fips_sha512.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
153 fips_sha512.o: ../../include/openssl/symhacks.h fips_sha512.c
154 fips_shatest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
155 fips_shatest.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h
156 fips_shatest.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
157 fips_shatest.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
158 fips_shatest.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
159 fips_shatest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
160 fips_shatest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
161 fips_shatest.o: ../../include/openssl/objects.h
162 fips_shatest.o: ../../include/openssl/opensslconf.h
163 fips_shatest.o: ../../include/openssl/opensslv.h
164 fips_shatest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
165 fips_shatest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
166 fips_shatest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
167 fips_shatest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
168 fips_shatest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_shatest.c
169 fips_standalone_sha1.o: ../../include/openssl/asn1.h
170 fips_standalone_sha1.o: ../../include/openssl/bio.h
171 fips_standalone_sha1.o: ../../include/openssl/crypto.h
172 fips_standalone_sha1.o: ../../include/openssl/e_os2.h
173 fips_standalone_sha1.o: ../../include/openssl/evp.h
174 fips_standalone_sha1.o: ../../include/openssl/fips.h
175 fips_standalone_sha1.o: ../../include/openssl/fips_sha.h
176 fips_standalone_sha1.o: ../../include/openssl/hmac.h
177 fips_standalone_sha1.o: ../../include/openssl/obj_mac.h
178 fips_standalone_sha1.o: ../../include/openssl/objects.h
179 fips_standalone_sha1.o: ../../include/openssl/opensslconf.h
180 fips_standalone_sha1.o: ../../include/openssl/opensslv.h
181 fips_standalone_sha1.o: ../../include/openssl/ossl_typ.h
182 fips_standalone_sha1.o: ../../include/openssl/safestack.h
183 fips_standalone_sha1.o: ../../include/openssl/stack.h
184 fips_standalone_sha1.o: ../../include/openssl/symhacks.h fips_standalone_sha1.c