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.
46 sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
47 (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
48 s512sse2-elf.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
49 (cd asm; $(PERL) sha512-sse2.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
51 sx86-cof.s: asm/sha1-586.pl ../perlasm/x86asm.pl
52 (cd asm; $(PERL) sha1-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
53 s512sse2-cof.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
54 (cd asm; $(PERL) sha512-sse2.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
56 sx86-out.s: asm/sha1-586.pl ../perlasm/x86asm.pl
57 (cd asm; $(PERL) sha1-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
58 s512sse2-out.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
59 (cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
61 sha1-ia64.s: asm/sha1-ia64.pl
62 (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) ) > $@
63 sha256-ia64.s: asm/sha512-ia64.pl
64 (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
65 sha512-ia64.s: asm/sha512-ia64.pl
66 (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
67 sha1-x86_64.s: asm/sha1-x86_64.pl
68 $(PERL) asm/sha1-x86_64.pl $@
69 sha256-x86_64.s: asm/sha512-x86_64.pl
70 $(PERL) asm/sha512-x86_64.pl $@
71 sha512-x86_64.s: asm/sha512-x86_64.pl
72 $(PERL) asm/sha512-x86_64.pl $@
74 sha1-ppc_aix32.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $@
75 sha1-ppc_aix64.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $@
76 sha256-ppc_aix32.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $@
77 sha256-ppc_aix64.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $@
78 sha512-ppc_aix32.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $@
79 sha512-ppc_aix64.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $@
80 # non-AIX targets are believed to be armed with GNU make
81 sha1-ppc_%.s: asm/sha1-ppc.pl; $(PERL) $< $@
82 sha256-ppc_%.s: asm/sha512-ppc.pl; $(PERL) $< $@
83 sha512-ppc_%.s: asm/sha512-ppc.pl; $(PERL) $< $@
86 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
89 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
90 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
91 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
94 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
95 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
97 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
98 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
107 lint -DLINT $(INCLUDES) $(SRC)>fluff
110 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
111 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
114 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
115 mv -f Makefile.new $(MAKEFILE)
118 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
120 # DO NOT DELETE THIS LINE -- make depend depends on it.
122 sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
123 sha1_one.o: ../../include/openssl/opensslconf.h
124 sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
125 sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
126 sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
127 sha1_one.o: sha1_one.c
128 sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
129 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
130 sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
131 sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
132 sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
133 sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
134 sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
135 sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c
136 sha512.o: ../../e_os.h ../../include/openssl/bio.h
137 sha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
138 sha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
139 sha512.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
140 sha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
141 sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
142 sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
143 sha512.o: ../cryptlib.h sha512.c
144 sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
145 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
146 sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
147 sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
148 sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
149 sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
150 sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
151 sha_one.o: ../../include/openssl/symhacks.h sha_one.c