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