OpenSSL: update to 1.0.2c
[tomato.git] / release / src / router / openssl / crypto / sha / Makefile
blobde6cdde58a9ca1533294bd03fdfe025e859f7dd8
2 # OpenSSL/crypto/sha/Makefile
5 DIR= sha
6 TOP= ../..
7 CC= cc
8 CPP= $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 MAKEFILE= Makefile
12 AR= ar r
14 SHA1_ASM_OBJ=
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
18 AFLAGS= $(ASFLAGS)
20 GENERAL=Makefile
21 TEST=shatest.c sha1test.c sha256t.c sha512t.c
22 APPS=
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)
28 SRC= $(LIBSRC)
30 EXHEADER= sha.h
31 HEADER= sha_locl.h $(EXHEADER)
33 ALL= $(GENERAL) $(SRC) $(HEADER)
35 top:
36 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
38 all: lib
40 lib: $(LIBOBJ)
41 $(AR) $(LIB) $(LIBOBJ)
42 $(RANLIB) $(LIB) || echo Never mind.
43 @touch lib
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
60 $(PERL) $< $(PERLASM_SCHEME) $@
62 sha1-alpha.s: asm/sha1-alpha.pl
63 (preproc=$$$$.$@.S; trap "rm $$preproc" INT; \
64 $(PERL) asm/sha1-alpha.pl > $$preproc && \
65 $(CC) -E -P $$preproc > $@ && rm $$preproc)
67 # Solaris make has to be explicitly told
68 sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@
69 sha1-mb-x86_64.s: asm/sha1-mb-x86_64.pl; $(PERL) asm/sha1-mb-x86_64.pl $(PERLASM_SCHEME) > $@
70 sha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
71 sha256-mb-x86_64.s: asm/sha256-mb-x86_64.pl; $(PERL) asm/sha256-mb-x86_64.pl $(PERLASM_SCHEME) > $@
72 sha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
73 sha1-sparcv9.S: asm/sha1-sparcv9.pl; $(PERL) asm/sha1-sparcv9.pl $@ $(CFLAGS)
74 sha256-sparcv9.S:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
75 sha512-sparcv9.S:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
77 sha1-ppc.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@
78 sha256-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
79 sha512-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
80 sha256p8-ppc.s: asm/sha512p8-ppc.pl; $(PERL) asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@
81 sha512p8-ppc.s: asm/sha512p8-ppc.pl; $(PERL) asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@
83 sha1-parisc.s: asm/sha1-parisc.pl; $(PERL) asm/sha1-parisc.pl $(PERLASM_SCHEME) $@
84 sha256-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
85 sha512-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
87 sha1-mips.S: asm/sha1-mips.pl; $(PERL) asm/sha1-mips.pl $(PERLASM_SCHEME) $@
88 sha256-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
89 sha512-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
91 # GNU make "catch all"
92 sha1-%.S: asm/sha1-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
93 sha256-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
94 sha512-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
96 sha1-armv4-large.o: sha1-armv4-large.S
97 sha256-armv4.o: sha256-armv4.S
98 sha512-armv4.o: sha512-armv4.S
99 sha1-armv8.o: sha1-armv8.S
100 sha256-armv8.o: sha256-armv8.S
101 sha512-armv8.o: sha512-armv8.S
103 files:
104 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
106 links:
107 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
108 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
109 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
111 install:
112 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
113 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
114 do \
115 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
116 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
117 done;
119 tags:
120 ctags $(SRC)
122 tests:
124 lint:
125 lint -DLINT $(INCLUDES) $(SRC)>fluff
127 update: depend
129 depend:
130 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
131 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
133 dclean:
134 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
135 mv -f Makefile.new $(MAKEFILE)
137 clean:
138 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
140 # DO NOT DELETE THIS LINE -- make depend depends on it.
142 sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
143 sha1_one.o: ../../include/openssl/opensslconf.h
144 sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
145 sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
146 sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
147 sha1_one.o: sha1_one.c
148 sha1dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
149 sha1dgst.o: ../../include/openssl/opensslconf.h
150 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
151 sha1dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
152 sha1dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
153 sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
154 sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
155 sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
156 sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
157 sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
158 sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c
159 sha512.o: ../../e_os.h ../../include/openssl/bio.h
160 sha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
161 sha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
162 sha512.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
163 sha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
164 sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
165 sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
166 sha512.o: ../cryptlib.h sha512.c
167 sha_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
168 sha_dgst.o: ../../include/openssl/opensslconf.h
169 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
170 sha_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
171 sha_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
172 sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
173 sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
174 sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
175 sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
176 sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
177 sha_one.o: ../../include/openssl/symhacks.h sha_one.c