diff options
Diffstat (limited to 'src/lib/libcrypto/sha/Makefile')
-rw-r--r-- | src/lib/libcrypto/sha/Makefile | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/src/lib/libcrypto/sha/Makefile b/src/lib/libcrypto/sha/Makefile new file mode 100644 index 0000000000..46103bbc83 --- /dev/null +++ b/src/lib/libcrypto/sha/Makefile | |||
@@ -0,0 +1,127 @@ | |||
1 | # | ||
2 | # OpenSSL/crypto/sha/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= sha | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
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 | ||
17 | AR= ar r | ||
18 | |||
19 | SHA1_ASM_OBJ= | ||
20 | |||
21 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
22 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
23 | |||
24 | GENERAL=Makefile | ||
25 | TEST=shatest.c sha1test.c | ||
26 | APPS= | ||
27 | |||
28 | LIB=$(TOP)/libcrypto.a | ||
29 | LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c | ||
30 | LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ) | ||
31 | |||
32 | SRC= $(LIBSRC) | ||
33 | |||
34 | EXHEADER= sha.h | ||
35 | HEADER= sha_locl.h $(EXHEADER) | ||
36 | |||
37 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
38 | |||
39 | top: | ||
40 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
41 | |||
42 | all: lib | ||
43 | |||
44 | lib: $(LIBOBJ) | ||
45 | $(AR) $(LIB) $(LIBOBJ) | ||
46 | $(RANLIB) $(LIB) || echo Never mind. | ||
47 | @touch lib | ||
48 | |||
49 | # elf | ||
50 | asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl | ||
51 | (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s) | ||
52 | |||
53 | # a.out | ||
54 | asm/sx86-out.o: asm/sx86unix.cpp | ||
55 | $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o | ||
56 | |||
57 | # bsdi | ||
58 | asm/sx86bsdi.o: asm/sx86unix.cpp | ||
59 | $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o | ||
60 | |||
61 | asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.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) ) > $@ | ||
66 | |||
67 | files: | ||
68 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
69 | |||
70 | links: | ||
71 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
72 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
73 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
74 | |||
75 | install: | ||
76 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
77 | do \ | ||
78 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
79 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
80 | done; | ||
81 | |||
82 | tags: | ||
83 | ctags $(SRC) | ||
84 | |||
85 | tests: | ||
86 | |||
87 | lint: | ||
88 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
89 | |||
90 | depend: | ||
91 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
92 | |||
93 | dclean: | ||
94 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
95 | mv -f Makefile.new $(MAKEFILE) | ||
96 | |||
97 | clean: | ||
98 | rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o | ||
99 | |||
100 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
101 | |||
102 | sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
103 | sha1_one.o: ../../include/openssl/opensslconf.h | ||
104 | sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
105 | sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
106 | sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c | ||
107 | sha1dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
108 | sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
109 | sha1dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
110 | sha1dgst.o: ../../include/openssl/opensslconf.h | ||
111 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
112 | sha1dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
113 | sha1dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha1dgst.c | ||
114 | sha1dgst.o: sha_locl.h | ||
115 | sha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h | ||
116 | sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
117 | sha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
118 | sha_dgst.o: ../../include/openssl/opensslconf.h | ||
119 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
120 | sha_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
121 | sha_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha_dgst.c | ||
122 | sha_dgst.o: sha_locl.h | ||
123 | sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
124 | sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
125 | sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
126 | sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
127 | sha_one.o: sha_one.c | ||