summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/sha/Makefile')
-rw-r--r--src/lib/libcrypto/sha/Makefile102
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
8CPP= $(CC) -E 8CPP= $(CC) -E
9INCLUDES= 9INCLUDES=
10CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
13INSTALLTOP=/usr/local/ssl
14MAKEDEPPROG= makedepend
15MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16MAKEFILE= Makefile 11MAKEFILE= Makefile
17AR= ar r 12AR= ar r
18 13
@@ -20,14 +15,15 @@ SHA1_ASM_OBJ=
20 15
21CFLAGS= $(INCLUDES) $(CFLAG) 16CFLAGS= $(INCLUDES) $(CFLAG)
22ASFLAGS= $(INCLUDES) $(ASFLAG) 17ASFLAGS= $(INCLUDES) $(ASFLAG)
18AFLAGS= $(ASFLAGS)
23 19
24GENERAL=Makefile 20GENERAL=Makefile
25TEST=shatest.c sha1test.c 21TEST=shatest.c sha1test.c sha256t.c sha512t.c
26APPS= 22APPS=
27 23
28LIB=$(TOP)/libcrypto.a 24LIB=$(TOP)/libcrypto.a
29LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c 25LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c
30LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ) 26LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ)
31 27
32SRC= $(LIBSRC) 28SRC= $(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
50asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl 46sx86-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 48s512sse2-elf.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
49 (cd asm; $(PERL) sha512-sse2.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
50# COFF
51sx86-cof.s: asm/sha1-586.pl ../perlasm/x86asm.pl
52 (cd asm; $(PERL) sha1-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
53s512sse2-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
54asm/sx86-out.o: asm/sx86unix.cpp 56sx86-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 58s512sse2-out.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl
57# bsdi 59 (cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
58asm/sx86bsdi.o: asm/sx86unix.cpp
59 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
60 60
61asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl 61sha1-ia64.s: asm/sha1-ia64.pl
62 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
63
64asm/sha1-ia64.s: asm/sha1-ia64.pl
65 (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) ) > $@ 62 (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) ) > $@
63sha256-ia64.s: asm/sha512-ia64.pl
64 (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
65sha512-ia64.s: asm/sha512-ia64.pl
66 (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
67
68# Solaris make has to be explicitly told
69sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $@
70sha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $@
71sha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $@
66 72
67files: 73files:
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
75install: 81install:
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
90depend: 97depend:
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
93dclean: 101dclean:
@@ -95,33 +103,37 @@ dclean:
95 mv -f Makefile.new $(MAKEFILE) 103 mv -f Makefile.new $(MAKEFILE)
96 104
97clean: 105clean:
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
102sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 110sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
103sha1_one.o: ../../include/openssl/opensslconf.h 111sha1_one.o: ../../include/openssl/opensslconf.h
104sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 112sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
105sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 113sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
106sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c 114sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
107sha1dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 115sha1_one.o: sha1_one.c
108sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 116sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
109sha1dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 117sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
110sha1dgst.o: ../../include/openssl/opensslconf.h 118sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
111sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 119sha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
112sha1dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 120sha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
113sha1dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha1dgst.c 121sha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
114sha1dgst.o: sha_locl.h 122sha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
115sha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 123sha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c
116sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 124sha512.o: ../../e_os.h ../../include/openssl/bio.h
117sha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 125sha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
118sha_dgst.o: ../../include/openssl/opensslconf.h 126sha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
119sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 127sha512.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
120sha_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 128sha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
121sha_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha_dgst.c 129sha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
122sha_dgst.o: sha_locl.h 130sha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
131sha512.o: ../cryptlib.h sha512.c
132sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
133sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
134sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
123sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 135sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
124sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 136sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
125sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 137sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
126sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 138sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
127sha_one.o: sha_one.c 139sha_one.o: ../../include/openssl/symhacks.h sha_one.c