2
# SSLeay/fips/sha1/Makefile
11
OPENSSLDIR= /usr/local/ssl
12
INSTALLTOP=/usr/local/ssl
13
MAKEDEPPROG= makedepend
14
MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
18
CFLAGS= $(INCLUDES) $(CFLAG)
22
TESTDATA= sha1vectors.txt sha1hashes.txt
24
EXE= fips_standalone_sha1
26
LIB=$(TOP)/libcrypto.a
27
LIBSRC=fips_sha1dgst.c fips_sha1_selftest.c asm/sx86-elf.s
28
LIBOBJ=fips_sha1dgst.o fips_sha1_selftest.o $(FIPS_SHA1_ASM_OBJ)
30
SRC= $(LIBSRC) fips_standalone_sha1.c
33
HEADER= $(EXHEADER) fips_sha_locl.h fips_md32_common.h
35
ALL= $(GENERAL) $(SRC) $(HEADER)
38
(cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
40
all: check_standalone check lib
43
TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(LIBSRC) $(HEADER)
45
check_standalone: fips_standalone_sha1
46
TOP=`pwd`/$(TOP) ../fips_check_sha1 standalone.sha1 $(SRC) $(HEADER)
49
$(AR) $(LIB) $(LIBOBJ)
50
$(RANLIB) $(LIB) || echo Never mind.
53
fips_standalone_sha1: fips_standalone_sha1.o fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
54
$(CC) -o fips_standalone_sha1 $(CFLAGS) fips_standalone_sha1.o \
55
fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
58
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
61
@$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
62
@$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
63
@$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TESTDATA)
64
@$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
67
@if test -n "$(EXHEADER)"; then \
68
for i in $(EXHEADER) ; \
70
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
71
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
81
(cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_sha1test sub_target)
83
fips_sha1test: fips_sha1test.o $(TOP)/libcrypto.a
84
$(CC) $(CFLAGS) -o fips_sha1test fips_sha1test.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS)
85
TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_sha1test
87
fips_test: top_fips_sha1test
88
-rm -rf ../testvectors/sha1/rsp
89
mkdir ../testvectors/sha1/rsp
90
./fips_sha1test ../testvectors/sha1/req/sha.req > ../testvectors/sha1/rsp/sha.rsp
93
lint -DLINT $(INCLUDES) $(SRC)>fluff
96
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
99
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
100
mv -f Makefile.new $(MAKEFILE)
103
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE)
105
# DO NOT DELETE THIS LINE -- make depend depends on it.
107
fips_sha1_selftest.o: ../../include/openssl/bio.h
108
fips_sha1_selftest.o: ../../include/openssl/crypto.h
109
fips_sha1_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
110
fips_sha1_selftest.o: ../../include/openssl/fips.h
111
fips_sha1_selftest.o: ../../include/openssl/lhash.h
112
fips_sha1_selftest.o: ../../include/openssl/opensslconf.h
113
fips_sha1_selftest.o: ../../include/openssl/opensslv.h
114
fips_sha1_selftest.o: ../../include/openssl/safestack.h
115
fips_sha1_selftest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
116
fips_sha1_selftest.o: ../../include/openssl/symhacks.h fips_sha1_selftest.c
117
fips_sha1dgst.o: ../../include/openssl/opensslconf.h
118
fips_sha1dgst.o: ../../include/openssl/opensslv.h fips_sha1dgst.c
119
fips_sha1test.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
120
fips_sha1test.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
121
fips_sha1test.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
122
fips_sha1test.o: ../../include/openssl/opensslconf.h
123
fips_sha1test.o: ../../include/openssl/opensslv.h
124
fips_sha1test.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
125
fips_sha1test.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
126
fips_sha1test.o: fips_sha1test.c
127
fips_standalone_sha1.o: ../../include/openssl/aes.h
128
fips_standalone_sha1.o: ../../include/openssl/asn1.h
129
fips_standalone_sha1.o: ../../include/openssl/bio.h
130
fips_standalone_sha1.o: ../../include/openssl/blowfish.h
131
fips_standalone_sha1.o: ../../include/openssl/bn.h ../../include/openssl/cast.h
132
fips_standalone_sha1.o: ../../include/openssl/crypto.h
133
fips_standalone_sha1.o: ../../include/openssl/des.h
134
fips_standalone_sha1.o: ../../include/openssl/des_old.h
135
fips_standalone_sha1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
136
fips_standalone_sha1.o: ../../include/openssl/e_os2.h
137
fips_standalone_sha1.o: ../../include/openssl/evp.h
138
fips_standalone_sha1.o: ../../include/openssl/hmac.h
139
fips_standalone_sha1.o: ../../include/openssl/idea.h
140
fips_standalone_sha1.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
141
fips_standalone_sha1.o: ../../include/openssl/md5.h
142
fips_standalone_sha1.o: ../../include/openssl/mdc2.h
143
fips_standalone_sha1.o: ../../include/openssl/obj_mac.h
144
fips_standalone_sha1.o: ../../include/openssl/objects.h
145
fips_standalone_sha1.o: ../../include/openssl/opensslconf.h
146
fips_standalone_sha1.o: ../../include/openssl/opensslv.h
147
fips_standalone_sha1.o: ../../include/openssl/ossl_typ.h
148
fips_standalone_sha1.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
149
fips_standalone_sha1.o: ../../include/openssl/rc5.h
150
fips_standalone_sha1.o: ../../include/openssl/ripemd.h
151
fips_standalone_sha1.o: ../../include/openssl/rsa.h
152
fips_standalone_sha1.o: ../../include/openssl/safestack.h
153
fips_standalone_sha1.o: ../../include/openssl/sha.h
154
fips_standalone_sha1.o: ../../include/openssl/stack.h
155
fips_standalone_sha1.o: ../../include/openssl/symhacks.h
156
fips_standalone_sha1.o: ../../include/openssl/ui.h
157
fips_standalone_sha1.o: ../../include/openssl/ui_compat.h
158
fips_standalone_sha1.o: fips_standalone_sha1.c