diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/rsa/Makefile.ssl | 134 |
1 files changed, 110 insertions, 24 deletions
diff --git a/src/lib/libcrypto/rsa/Makefile.ssl b/src/lib/libcrypto/rsa/Makefile.ssl index d52f2e609e..da704fc558 100644 --- a/src/lib/libcrypto/rsa/Makefile.ssl +++ b/src/lib/libcrypto/rsa/Makefile.ssl | |||
@@ -7,25 +7,25 @@ TOP= ../.. | |||
7 | CC= cc | 7 | CC= cc |
8 | INCLUDES= -I.. -I../../include | 8 | INCLUDES= -I.. -I../../include |
9 | CFLAG=-g | 9 | CFLAG=-g |
10 | INSTALL_PREFIX= | ||
11 | OPENSSLDIR= /usr/local/ssl | ||
10 | INSTALLTOP=/usr/local/ssl | 12 | INSTALLTOP=/usr/local/ssl |
11 | MAKE= make -f Makefile.ssl | 13 | MAKE= make -f Makefile.ssl |
12 | MAKEDEPEND= makedepend -f Makefile.ssl | 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
13 | MAKEFILE= Makefile.ssl | 15 | MAKEFILE= Makefile.ssl |
14 | AR= ar r | 16 | AR= ar r |
15 | 17 | ||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | 18 | CFLAGS= $(INCLUDES) $(CFLAG) |
17 | 19 | ||
18 | ERR=rsa | ||
19 | ERRC=rsa_err | ||
20 | GENERAL=Makefile | 20 | GENERAL=Makefile |
21 | TEST= | 21 | TEST=rsa_oaep_test.c |
22 | APPS= | 22 | APPS= |
23 | 23 | ||
24 | LIB=$(TOP)/libcrypto.a | 24 | LIB=$(TOP)/libcrypto.a |
25 | LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c $(ERRC).c \ | 25 | LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c \ |
26 | rsa_pk1.c rsa_ssl.c rsa_none.c | 26 | rsa_pk1.c rsa_ssl.c rsa_none.c rsa_oaep.c rsa_chk.c |
27 | LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o $(ERRC).o \ | 27 | LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o rsa_err.o \ |
28 | rsa_pk1.o rsa_ssl.o rsa_none.o | 28 | rsa_pk1.o rsa_ssl.o rsa_none.o rsa_oaep.o rsa_chk.o |
29 | 29 | ||
30 | SRC= $(LIBSRC) | 30 | SRC= $(LIBSRC) |
31 | 31 | ||
@@ -41,24 +41,23 @@ all: lib | |||
41 | 41 | ||
42 | lib: $(LIBOBJ) | 42 | lib: $(LIBOBJ) |
43 | $(AR) $(LIB) $(LIBOBJ) | 43 | $(AR) $(LIB) $(LIBOBJ) |
44 | sh $(TOP)/util/ranlib.sh $(LIB) | 44 | $(RANLIB) $(LIB) |
45 | @touch lib | 45 | @touch lib |
46 | 46 | ||
47 | files: | 47 | files: |
48 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 48 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
49 | 49 | ||
50 | links: | 50 | links: |
51 | /bin/rm -f Makefile | 51 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
52 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 52 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
53 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 53 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
54 | $(TOP)/util/mklink.sh ../../test $(TEST) | 54 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
55 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
56 | 55 | ||
57 | install: | 56 | install: |
58 | @for i in $(EXHEADER) ; \ | 57 | @for i in $(EXHEADER) ; \ |
59 | do \ | 58 | do \ |
60 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 59 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
61 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 60 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
62 | done; | 61 | done; |
63 | 62 | ||
64 | tags: | 63 | tags: |
@@ -70,17 +69,104 @@ lint: | |||
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 69 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
71 | 70 | ||
72 | depend: | 71 | depend: |
73 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 72 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
74 | 73 | ||
75 | dclean: | 74 | dclean: |
76 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 75 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
77 | mv -f Makefile.new $(MAKEFILE) | 76 | mv -f Makefile.new $(MAKEFILE) |
78 | 77 | ||
79 | clean: | 78 | clean: |
80 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 79 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
81 | |||
82 | errors: | ||
83 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
84 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
85 | 80 | ||
86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 81 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
82 | |||
83 | rsa_chk.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
84 | rsa_chk.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
85 | rsa_chk.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h | ||
86 | rsa_chk.o: ../../include/openssl/stack.h | ||
87 | rsa_eay.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
88 | rsa_eay.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
89 | rsa_eay.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
90 | rsa_eay.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
91 | rsa_eay.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h | ||
92 | rsa_eay.o: ../../include/openssl/rsa.h ../../include/openssl/stack.h | ||
93 | rsa_eay.o: ../cryptlib.h | ||
94 | rsa_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
95 | rsa_err.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
96 | rsa_err.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h | ||
97 | rsa_err.o: ../../include/openssl/stack.h | ||
98 | rsa_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
99 | rsa_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
100 | rsa_gen.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
101 | rsa_gen.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
102 | rsa_gen.o: ../../include/openssl/opensslv.h ../../include/openssl/rsa.h | ||
103 | rsa_gen.o: ../../include/openssl/stack.h ../cryptlib.h | ||
104 | rsa_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
105 | rsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
106 | rsa_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
107 | rsa_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
108 | rsa_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
109 | rsa_lib.o: ../../include/openssl/rsa.h ../../include/openssl/stack.h | ||
110 | rsa_lib.o: ../cryptlib.h | ||
111 | rsa_none.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
112 | rsa_none.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
113 | rsa_none.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
114 | rsa_none.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
115 | rsa_none.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h | ||
116 | rsa_none.o: ../../include/openssl/rsa.h ../../include/openssl/stack.h | ||
117 | rsa_none.o: ../cryptlib.h | ||
118 | rsa_oaep.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
119 | rsa_oaep.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
120 | rsa_oaep.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
121 | rsa_oaep.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
122 | rsa_oaep.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h | ||
123 | rsa_oaep.o: ../../include/openssl/rsa.h ../../include/openssl/sha.h | ||
124 | rsa_oaep.o: ../../include/openssl/stack.h ../cryptlib.h | ||
125 | rsa_pk1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
126 | rsa_pk1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
127 | rsa_pk1.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
128 | rsa_pk1.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
129 | rsa_pk1.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h | ||
130 | rsa_pk1.o: ../../include/openssl/rsa.h ../../include/openssl/stack.h | ||
131 | rsa_pk1.o: ../cryptlib.h | ||
132 | rsa_saos.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
133 | rsa_saos.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
134 | rsa_saos.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
135 | rsa_saos.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
136 | rsa_saos.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
137 | rsa_saos.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
138 | rsa_saos.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
139 | rsa_saos.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
140 | rsa_saos.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
141 | rsa_saos.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
142 | rsa_saos.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | ||
143 | rsa_saos.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
144 | rsa_saos.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
145 | rsa_saos.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
146 | rsa_saos.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
147 | rsa_saos.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
148 | rsa_saos.o: ../cryptlib.h | ||
149 | rsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
150 | rsa_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
151 | rsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
152 | rsa_sign.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
153 | rsa_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
154 | rsa_sign.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
155 | rsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
156 | rsa_sign.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
157 | rsa_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
158 | rsa_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
159 | rsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | ||
160 | rsa_sign.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
161 | rsa_sign.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
162 | rsa_sign.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
163 | rsa_sign.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
164 | rsa_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
165 | rsa_sign.o: ../cryptlib.h | ||
166 | rsa_ssl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
167 | rsa_ssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
168 | rsa_ssl.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
169 | rsa_ssl.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
170 | rsa_ssl.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h | ||
171 | rsa_ssl.o: ../../include/openssl/rsa.h ../../include/openssl/stack.h | ||
172 | rsa_ssl.o: ../cryptlib.h | ||