2
# OpenSSL/fips/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)
27
EXE= fips_standalone_sha1$(EXE_EXT)
29
LIB=$(TOP)/libcrypto.a
30
LIBSRC=fips_sha1_selftest.c
31
LIBOBJ=fips_sha1_selftest.o
33
SRC= $(LIBSRC) fips_standalone_sha1.c
38
ALL= $(GENERAL) $(SRC) $(HEADER)
41
(cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
43
all: ../fips_standalone_sha1$(EXE_EXT) lib
48
../fips_standalone_sha1$(EXE_EXT): fips_standalone_sha1.o
49
if [ -z "$(HOSTCC)" ] ; then \
50
FIPS_SHA_ASM=""; for i in $(SHA1_ASM_OBJ) sha1dgst.o ; do FIPS_SHA_ASM="$$FIPS_SHA_ASM ../../crypto/sha/$$i" ; done; \
51
$(CC) -o $@ $(CFLAGS) fips_standalone_sha1.o $$FIPS_SHA_ASM ; \
53
$(HOSTCC) $(HOSTCFLAGS) -o $ $@ -I../../include -I../../crypto fips_standalone_sha1.c ../../crypto/sha/sha1dgst.c ; \
57
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
60
@$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
61
@$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(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/asn1.h ../../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/evp.h ../../include/openssl/fips.h
123
fips_sha1_selftest.o: ../../include/openssl/lhash.h
124
fips_sha1_selftest.o: ../../include/openssl/obj_mac.h
125
fips_sha1_selftest.o: ../../include/openssl/objects.h
126
fips_sha1_selftest.o: ../../include/openssl/opensslconf.h
127
fips_sha1_selftest.o: ../../include/openssl/opensslv.h
128
fips_sha1_selftest.o: ../../include/openssl/ossl_typ.h
129
fips_sha1_selftest.o: ../../include/openssl/safestack.h
130
fips_sha1_selftest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
131
fips_sha1_selftest.o: ../../include/openssl/symhacks.h fips_sha1_selftest.c
132
fips_shatest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
133
fips_shatest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
134
fips_shatest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
135
fips_shatest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
136
fips_shatest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
137
fips_shatest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
138
fips_shatest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
139
fips_shatest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
140
fips_shatest.o: ../../include/openssl/opensslconf.h
141
fips_shatest.o: ../../include/openssl/opensslv.h
142
fips_shatest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
143
fips_shatest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
144
fips_shatest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
145
fips_shatest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
146
fips_shatest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_shatest.c
147
fips_standalone_sha1.o: ../../include/openssl/asn1.h
148
fips_standalone_sha1.o: ../../include/openssl/bio.h
149
fips_standalone_sha1.o: ../../include/openssl/crypto.h
150
fips_standalone_sha1.o: ../../include/openssl/e_os2.h
151
fips_standalone_sha1.o: ../../include/openssl/evp.h
152
fips_standalone_sha1.o: ../../include/openssl/fips.h
153
fips_standalone_sha1.o: ../../include/openssl/hmac.h
154
fips_standalone_sha1.o: ../../include/openssl/obj_mac.h
155
fips_standalone_sha1.o: ../../include/openssl/objects.h
156
fips_standalone_sha1.o: ../../include/openssl/opensslconf.h
157
fips_standalone_sha1.o: ../../include/openssl/opensslv.h
158
fips_standalone_sha1.o: ../../include/openssl/ossl_typ.h
159
fips_standalone_sha1.o: ../../include/openssl/safestack.h
160
fips_standalone_sha1.o: ../../include/openssl/sha.h
161
fips_standalone_sha1.o: ../../include/openssl/stack.h
162
fips_standalone_sha1.o: ../../include/openssl/symhacks.h fips_standalone_sha1.c