]>
Commit | Line | Data |
---|---|---|
d02b48c6 | 1 | # |
15ac9716 | 2 | # OpenSSL/crypto/sha/Makefile |
d02b48c6 RE |
3 | # |
4 | ||
58964a49 RE |
5 | DIR= sha |
6 | TOP= ../.. | |
7 | CC= cc | |
623bb80b | 8 | CPP= $(CC) -E |
d02b48c6 RE |
9 | INCLUDES= |
10 | CFLAG=-g | |
42ba5d23 | 11 | MAKEFILE= Makefile |
58964a49 RE |
12 | AR= ar r |
13 | ||
14 | SHA1_ASM_OBJ= | |
d02b48c6 RE |
15 | |
16 | CFLAGS= $(INCLUDES) $(CFLAG) | |
fda5e385 | 17 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
16760a30 | 18 | AFLAGS= $(ASFLAGS) |
d02b48c6 RE |
19 | |
20 | GENERAL=Makefile | |
63077bd4 | 21 | TEST=shatest.c sha1test.c sha256t.c sha512t.c |
d02b48c6 RE |
22 | APPS= |
23 | ||
24 | LIB=$(TOP)/libcrypto.a | |
63077bd4 AP |
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) | |
d02b48c6 RE |
27 | |
28 | SRC= $(LIBSRC) | |
29 | ||
30 | EXHEADER= sha.h | |
58964a49 | 31 | HEADER= sha_locl.h $(EXHEADER) |
d02b48c6 RE |
32 | |
33 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
34 | ||
35 | top: | |
36 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
37 | ||
58964a49 | 38 | all: lib |
d02b48c6 | 39 | |
58964a49 | 40 | lib: $(LIBOBJ) |
df6de39f | 41 | $(ARX) $(LIB) $(LIBOBJ) |
4e20b1a6 | 42 | $(RANLIB) $(LIB) || echo Never mind. |
d02b48c6 RE |
43 | @touch lib |
44 | ||
fa8e921f AP |
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) > $@ | |
ca640568 | 51 | |
67ea999d | 52 | sha1-ia64.s: asm/sha1-ia64.pl |
1e369b37 | 53 | (cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS)) |
67ea999d | 54 | sha256-ia64.s: asm/sha512-ia64.pl |
bc3e7fab | 55 | (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) |
67ea999d | 56 | sha512-ia64.s: asm/sha512-ia64.pl |
bc3e7fab | 57 | (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) |
33c3ecf7 | 58 | |
4c7c5ff6 AP |
59 | sha256-armv4.s: asm/sha256-armv4.pl |
60 | $(PERL) $< $@ | |
61 | ||
3c01a1e8 AP |
62 | sha1-alpha.s: asm/sha1-alpha.pl |
63 | $(PERL) $< | $(CC) -E - | tee $@ > /dev/null | |
64 | ||
b900df52 | 65 | # Solaris make has to be explicitly told |
1416aec6 AP |
66 | sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@ |
67 | sha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@ | |
68 | sha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@ | |
ae0d6e3e AP |
69 | sha1-sparcv9.s: asm/sha1-sparcv9.pl; $(PERL) asm/sha1-sparcv9.pl $@ $(CFLAGS) |
70 | sha256-sparcv9.s:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS) | |
71 | sha512-sparcv9.s:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS) | |
b900df52 | 72 | |
addd641f AP |
73 | sha1-ppc.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@ |
74 | sha256-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@ | |
75 | sha512-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@ | |
76 | ||
b57599b7 AP |
77 | sha1-parisc.s: asm/sha1-parisc.pl; $(PERL) asm/sha1-parisc.pl $(PERLASM_SCHEME) $@ |
78 | sha256-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@ | |
79 | sha512-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@ | |
80 | ||
d4665887 AP |
81 | sha1-mips.s: asm/sha1-mips.pl; $(PERL) asm/sha1-mips.pl $(PERLASM_SCHEME) $@ |
82 | sha256-mips.s: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@ | |
83 | sha512-mips.s: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@ | |
84 | ||
b900df52 | 85 | # GNU make "catch all" |
396df731 AP |
86 | sha1-%.s: asm/sha1-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ |
87 | sha256-%.s: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ | |
88 | sha512-%.s: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ | |
a9c32ace | 89 | |
d02b48c6 | 90 | files: |
42ba5d23 | 91 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
d02b48c6 RE |
92 | |
93 | links: | |
1314c344 BM |
94 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
95 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
96 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
d02b48c6 RE |
97 | |
98 | install: | |
81a86fcf | 99 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... |
a2ac429d | 100 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
d02b48c6 | 101 | do \ |
e5f3045f BM |
102 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
103 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
d02b48c6 RE |
104 | done; |
105 | ||
106 | tags: | |
107 | ctags $(SRC) | |
108 | ||
109 | tests: | |
110 | ||
111 | lint: | |
112 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
113 | ||
114 | depend: | |
ce92b6eb | 115 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... |
001ab3ab | 116 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
d02b48c6 RE |
117 | |
118 | dclean: | |
99aab161 | 119 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
d02b48c6 RE |
120 | mv -f Makefile.new $(MAKEFILE) |
121 | ||
122 | clean: | |
67ea999d | 123 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
d02b48c6 | 124 | |
d02b48c6 | 125 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
6242bb9c | 126 | |
ce92b6eb AP |
127 | sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
128 | sha1_one.o: ../../include/openssl/opensslconf.h | |
129 | sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
130 | sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | |
131 | sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
9c52d2cc | 132 | sha1_one.o: sha1_one.c |
b7056b64 DSH |
133 | sha1dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
134 | sha1dgst.o: ../../include/openssl/opensslconf.h | |
135 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
136 | sha1dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | |
137 | sha1dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
ce92b6eb AP |
138 | sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h |
139 | sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | |
140 | sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
141 | sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
142 | sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | |
143 | sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c | |
144 | sha512.o: ../../e_os.h ../../include/openssl/bio.h | |
145 | sha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | |
146 | sha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | |
147 | sha512.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | |
148 | sha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
149 | sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | |
150 | sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
151 | sha512.o: ../cryptlib.h sha512.c | |
b7056b64 DSH |
152 | sha_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
153 | sha_dgst.o: ../../include/openssl/opensslconf.h | |
154 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | |
155 | sha_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | |
156 | sha_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | |
ce92b6eb AP |
157 | sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h |
158 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | |
159 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | |
160 | sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | |
161 | sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | |
162 | sha_one.o: ../../include/openssl/symhacks.h sha_one.c |