2 # OpenSSL/crypto/sha/Makefile
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
21 TEST=shatest.c sha1test.c sha256t.c sha512t.c
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c
26 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ)
31 HEADER= sha_locl.h $(EXHEADER)
33 ALL= $(GENERAL) $(SRC) $(HEADER)
36 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
41 $(AR) $(LIB) $(LIBOBJ)
42 $(RANLIB) $(LIB) || echo Never mind.
45 sha1-586.s: asm/sha1-586.pl ../perlasm/x86asm.pl
46 $(PERL) asm/sha1-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
47 sha256-586.s: asm/sha256-586.pl ../perlasm/x86asm.pl
48 $(PERL) asm/sha256-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
49 sha512-586.s: asm/sha512-586.pl ../perlasm/x86asm.pl
50 $(PERL) asm/sha512-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
52 sha1-ia64.s: asm/sha1-ia64.pl
53 (cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS))
54 sha256-ia64.s: asm/sha512-ia64.pl
55 (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
56 sha512-ia64.s: asm/sha512-ia64.pl
57 (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
59 sha256-armv4.s: asm/sha256-armv4.pl
62 # Solaris make has to be explicitly told
63 sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@
64 sha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
65 sha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
66 sha1-sparcv9.s: asm/sha1-sparcv9.pl; $(PERL) asm/sha1-sparcv9.pl $@ $(CFLAGS)
67 sha256-sparcv9.s:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
68 sha512-sparcv9.s:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
70 sha1-ppc.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@
71 sha256-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
72 sha512-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
74 # GNU make "catch all"
75 sha1-%.s: asm/sha1-%.pl; $(PERL) $< $@
76 sha256-%.s: asm/sha512-%.pl; $(PERL) $< $@
77 sha512-%.s: asm/sha512-%.pl; $(PERL) $< $@
80 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
83 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
84 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
85 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
88 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
89 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
91 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
92 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
101 lint -DLINT $(INCLUDES) $(SRC)>fluff
104 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
105 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
108 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
109 mv -f Makefile.new $(MAKEFILE)
112 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
114 # DO NOT DELETE THIS LINE -- make depend depends on it.
116 sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
117 sha1_one.o: ../../include/openssl/opensslconf.h
118 sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
119 sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
120 sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
121 sha1_one.o: sha1_one.c
122 sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
123 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
124 sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
125 sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
126 sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
127 sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
128 sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
129 sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c
130 sha512.o: ../../e_os.h ../../include/openssl/bio.h
131 sha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
132 sha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
133 sha512.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
134 sha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
135 sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
136 sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
137 sha512.o: ../cryptlib.h sha512.c
138 sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
139 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
140 sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
141 sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
142 sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
143 sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
144 sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
145 sha_one.o: ../../include/openssl/symhacks.h sha_one.c