diff options
Diffstat (limited to 'src/lib/libcrypto/pem/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/pem/Makefile.ssl | 162 |
1 files changed, 127 insertions, 35 deletions
diff --git a/src/lib/libcrypto/pem/Makefile.ssl b/src/lib/libcrypto/pem/Makefile.ssl index fc04a88fd9..b4e7524ea2 100644 --- a/src/lib/libcrypto/pem/Makefile.ssl +++ b/src/lib/libcrypto/pem/Makefile.ssl | |||
@@ -7,30 +7,28 @@ 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=pem | ||
19 | ERRC=pem_err | ||
20 | GENERAL=Makefile | 20 | GENERAL=Makefile |
21 | TEST= | 21 | TEST= |
22 | APPS= | 22 | APPS= |
23 | 23 | ||
24 | CTX_SIZE= ctx_size | ||
25 | |||
26 | LIB=$(TOP)/libcrypto.a | 24 | LIB=$(TOP)/libcrypto.a |
27 | LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c $(ERRC).c | 25 | LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c |
28 | 26 | ||
29 | LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o $(ERRC).o | 27 | LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o pem_err.o |
30 | 28 | ||
31 | SRC= $(LIBSRC) | 29 | SRC= $(LIBSRC) |
32 | 30 | ||
33 | EXHEADER= pem.h | 31 | EXHEADER= pem.h pem2.h |
34 | HEADER= $(EXHEADER) | 32 | HEADER= $(EXHEADER) |
35 | 33 | ||
36 | ALL= $(GENERAL) $(SRC) $(HEADER) | 34 | ALL= $(GENERAL) $(SRC) $(HEADER) |
@@ -38,36 +36,27 @@ ALL= $(GENERAL) $(SRC) $(HEADER) | |||
38 | top: | 36 | top: |
39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | 37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) |
40 | 38 | ||
41 | all: pem.h lib | 39 | all: lib |
42 | |||
43 | pem.h: $(CTX_SIZE) | ||
44 | ./$(CTX_SIZE) <pem.org >pem.new | ||
45 | if [ -f pem.h ]; then mv -f pem.h pem.old; fi | ||
46 | mv -f pem.new pem.h | ||
47 | |||
48 | $(CTX_SIZE): $(CTX_SIZE).o | ||
49 | $(CC) $(CFLAGS) -o $(CTX_SIZE) $(CTX_SIZE).o | ||
50 | 40 | ||
51 | lib: $(LIBOBJ) | 41 | lib: $(LIBOBJ) |
52 | $(AR) $(LIB) $(LIBOBJ) | 42 | $(AR) $(LIB) $(LIBOBJ) |
53 | sh $(TOP)/util/ranlib.sh $(LIB) | 43 | $(RANLIB) $(LIB) |
54 | @touch lib | 44 | @touch lib |
55 | 45 | ||
56 | files: | 46 | files: |
57 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
58 | 48 | ||
59 | links: | 49 | links: $(EXHEADER) |
60 | /bin/rm -f Makefile | 50 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
61 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
62 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
63 | $(TOP)/util/mklink.sh ../../test $(TEST) | 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
64 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
65 | 54 | ||
66 | install: | 55 | install: |
67 | @for i in $(EXHEADER) ; \ | 56 | @for i in $(EXHEADER) ; \ |
68 | do \ | 57 | do \ |
69 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
70 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
71 | done; | 60 | done; |
72 | 61 | ||
73 | tags: | 62 | tags: |
@@ -79,18 +68,121 @@ lint: | |||
79 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
80 | 69 | ||
81 | depend: | 70 | depend: |
82 | $(MAKEDEPEND) $(INCLUDES) $(CTX_SIZE).c $(LIBSRC) | 71 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(LIBSRC) |
83 | 72 | ||
84 | dclean: | 73 | dclean: |
85 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
86 | mv -f Makefile.new $(MAKEFILE) | 75 | mv -f Makefile.new $(MAKEFILE) |
87 | 76 | ||
88 | clean: | 77 | clean: |
89 | /bin/rm -f $(CTX_SIZE) *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
90 | |||
91 | errors: | ||
92 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # SPECIAL CASE .org | ||
93 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
94 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
95 | 79 | ||
96 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
81 | |||
82 | pem_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
83 | pem_all.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
84 | pem_all.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
85 | pem_all.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
86 | pem_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
87 | pem_all.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
88 | pem_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
89 | pem_all.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
90 | pem_all.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
91 | pem_all.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
92 | pem_all.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h | ||
93 | pem_all.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
94 | pem_all.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
95 | pem_all.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
96 | pem_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
97 | pem_all.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
98 | pem_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
99 | pem_all.o: ../cryptlib.h | ||
100 | pem_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
101 | pem_err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
102 | pem_err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
103 | pem_err.o: ../../include/openssl/des.h ../../include/openssl/dh.h | ||
104 | pem_err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
105 | pem_err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
106 | pem_err.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
107 | pem_err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
108 | pem_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
109 | pem_err.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h | ||
110 | pem_err.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
111 | pem_err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
112 | pem_err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
113 | pem_err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
114 | pem_err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
115 | pem_err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
116 | pem_info.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
117 | pem_info.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
118 | pem_info.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
119 | pem_info.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
120 | pem_info.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
121 | pem_info.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
122 | pem_info.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
123 | pem_info.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
124 | pem_info.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
125 | pem_info.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
126 | pem_info.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h | ||
127 | pem_info.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
128 | pem_info.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
129 | pem_info.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
130 | pem_info.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
131 | pem_info.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
132 | pem_info.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
133 | pem_info.o: ../cryptlib.h | ||
134 | pem_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
135 | pem_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
136 | pem_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
137 | pem_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
138 | pem_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
139 | pem_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
140 | pem_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
141 | pem_lib.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
142 | pem_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
143 | pem_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
144 | pem_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h | ||
145 | pem_lib.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h | ||
146 | pem_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
147 | pem_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
148 | pem_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
149 | pem_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
150 | pem_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
151 | pem_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
152 | pem_lib.o: ../cryptlib.h | ||
153 | pem_seal.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
154 | pem_seal.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
155 | pem_seal.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
156 | pem_seal.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
157 | pem_seal.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
158 | pem_seal.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
159 | pem_seal.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
160 | pem_seal.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
161 | pem_seal.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
162 | pem_seal.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
163 | pem_seal.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h | ||
164 | pem_seal.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
165 | pem_seal.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
166 | pem_seal.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
167 | pem_seal.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
168 | pem_seal.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
169 | pem_seal.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | ||
170 | pem_seal.o: ../../include/openssl/x509_vfy.h ../cryptlib.h | ||
171 | pem_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
172 | pem_sign.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
173 | pem_sign.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
174 | pem_sign.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
175 | pem_sign.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
176 | pem_sign.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
177 | pem_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
178 | pem_sign.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
179 | pem_sign.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
180 | pem_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
181 | pem_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h | ||
182 | pem_sign.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h | ||
183 | pem_sign.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
184 | pem_sign.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
185 | pem_sign.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
186 | pem_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
187 | pem_sign.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | ||
188 | pem_sign.o: ../../include/openssl/x509_vfy.h ../cryptlib.h | ||