diff options
Diffstat (limited to 'src/lib/libcrypto/sha/Makefile')
-rw-r--r-- | src/lib/libcrypto/sha/Makefile | 102 |
1 files changed, 57 insertions, 45 deletions
diff --git a/src/lib/libcrypto/sha/Makefile b/src/lib/libcrypto/sha/Makefile index 46103bbc83..ac64fb61d3 100644 --- a/src/lib/libcrypto/sha/Makefile +++ b/src/lib/libcrypto/sha/Makefile | |||
@@ -8,11 +8,6 @@ CC= cc | |||
8 | CPP= $(CC) -E | 8 | CPP= $(CC) -E |
9 | INCLUDES= | 9 | INCLUDES= |
10 | CFLAG=-g | 10 | CFLAG=-g |
11 | INSTALL_PREFIX= | ||
12 | OPENSSLDIR= /usr/local/ssl | ||
13 | INSTALLTOP=/usr/local/ssl | ||
14 | MAKEDEPPROG= makedepend | ||
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
16 | MAKEFILE= Makefile | 11 | MAKEFILE= Makefile |
17 | AR= ar r | 12 | AR= ar r |
18 | 13 | ||
@@ -20,14 +15,15 @@ SHA1_ASM_OBJ= | |||
20 | 15 | ||
21 | CFLAGS= $(INCLUDES) $(CFLAG) | 16 | CFLAGS= $(INCLUDES) $(CFLAG) |
22 | ASFLAGS= $(INCLUDES) $(ASFLAG) | 17 | ASFLAGS= $(INCLUDES) $(ASFLAG) |
18 | AFLAGS= $(ASFLAGS) | ||
23 | 19 | ||
24 | GENERAL=Makefile | 20 | GENERAL=Makefile |
25 | TEST=shatest.c sha1test.c | 21 | TEST=shatest.c sha1test.c sha256t.c sha512t.c |
26 | APPS= | 22 | APPS= |
27 | 23 | ||
28 | LIB=$(TOP)/libcrypto.a | 24 | LIB=$(TOP)/libcrypto.a |
29 | LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c | 25 | LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c |
30 | LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ) | 26 | LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ) |
31 | 27 | ||
32 | SRC= $(LIBSRC) | 28 | SRC= $(LIBSRC) |
33 | 29 | ||
@@ -46,23 +42,33 @@ lib: $(LIBOBJ) | |||
46 | $(RANLIB) $(LIB) || echo Never mind. | 42 | $(RANLIB) $(LIB) || echo Never mind. |
47 | @touch lib | 43 | @touch lib |
48 | 44 | ||
49 | # elf | 45 | # ELF |
50 | asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl | 46 | sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl |
51 | (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s) | 47 | (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) |
52 | 48 | s512sse2-elf.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl | |
49 | (cd asm; $(PERL) sha512-sse2.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) | ||
50 | # COFF | ||
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) > ../$@) | ||
53 | # a.out | 55 | # a.out |
54 | asm/sx86-out.o: asm/sx86unix.cpp | 56 | sx86-out.s: asm/sha1-586.pl ../perlasm/x86asm.pl |
55 | $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o | 57 | (cd asm; $(PERL) sha1-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) |
56 | 58 | s512sse2-out.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl | |
57 | # bsdi | 59 | (cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) |
58 | asm/sx86bsdi.o: asm/sx86unix.cpp | ||
59 | $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o | ||
60 | 60 | ||
61 | asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl | 61 | sha1-ia64.s: asm/sha1-ia64.pl |
62 | (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp) | ||
63 | |||
64 | asm/sha1-ia64.s: asm/sha1-ia64.pl | ||
65 | (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) ) > $@ | 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 | |||
68 | # Solaris make has to be explicitly told | ||
69 | sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $@ | ||
70 | sha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $@ | ||
71 | sha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $@ | ||
66 | 72 | ||
67 | files: | 73 | files: |
68 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | 74 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
@@ -73,6 +79,7 @@ links: | |||
73 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | 79 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
74 | 80 | ||
75 | install: | 81 | install: |
82 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... | ||
76 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | 83 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ |
77 | do \ | 84 | do \ |
78 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | 85 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
@@ -88,6 +95,7 @@ lint: | |||
88 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 95 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
89 | 96 | ||
90 | depend: | 97 | depend: |
98 | @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... | ||
91 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | 99 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) |
92 | 100 | ||
93 | dclean: | 101 | dclean: |
@@ -95,33 +103,37 @@ dclean: | |||
95 | mv -f Makefile.new $(MAKEFILE) | 103 | mv -f Makefile.new $(MAKEFILE) |
96 | 104 | ||
97 | clean: | 105 | clean: |
98 | rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | 106 | rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
99 | 107 | ||
100 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 108 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
101 | 109 | ||
102 | sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 110 | sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
103 | sha1_one.o: ../../include/openssl/opensslconf.h | 111 | sha1_one.o: ../../include/openssl/opensslconf.h |
104 | sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 112 | sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
105 | sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 113 | sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
106 | sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c | 114 | sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
107 | sha1dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | 115 | sha1_one.o: sha1_one.c |
108 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 116 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h |
109 | sha1dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | 117 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h |
110 | sha1dgst.o: ../../include/openssl/opensslconf.h | 118 | sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h |
111 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 119 | sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
112 | sha1dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 120 | sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
113 | sha1dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha1dgst.c | 121 | sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h |
114 | sha1dgst.o: sha_locl.h | 122 | sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
115 | sha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | 123 | sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c |
116 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 124 | sha512.o: ../../e_os.h ../../include/openssl/bio.h |
117 | sha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | 125 | sha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
118 | sha_dgst.o: ../../include/openssl/opensslconf.h | 126 | sha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
119 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 127 | sha512.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
120 | sha_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | 128 | sha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
121 | sha_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha_dgst.c | 129 | sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h |
122 | sha_dgst.o: sha_locl.h | 130 | sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
131 | sha512.o: ../cryptlib.h sha512.c | ||
132 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h | ||
133 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | ||
134 | sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h | ||
123 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 135 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
124 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 136 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h |
125 | sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | 137 | sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h |
126 | sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 138 | sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h |
127 | sha_one.o: sha_one.c | 139 | sha_one.o: ../../include/openssl/symhacks.h sha_one.c |