diff options
Diffstat (limited to 'src/lib/libcrypto/conf/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/conf/Makefile.ssl | 124 |
1 files changed, 100 insertions, 24 deletions
diff --git a/src/lib/libcrypto/conf/Makefile.ssl b/src/lib/libcrypto/conf/Makefile.ssl index 00e917aa44..4a85c07b55 100644 --- a/src/lib/libcrypto/conf/Makefile.ssl +++ b/src/lib/libcrypto/conf/Makefile.ssl | |||
@@ -5,31 +5,34 @@ | |||
5 | DIR= conf | 5 | DIR= conf |
6 | TOP= ../.. | 6 | TOP= ../.. |
7 | CC= cc | 7 | CC= cc |
8 | INCLUDES= -I.. -I../../include | 8 | INCLUDES= -I.. -I$(TOP) -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 | MAKEDEPPROG= makedepend |
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
13 | MAKEFILE= Makefile.ssl | 16 | MAKEFILE= Makefile.ssl |
14 | AR= ar r | 17 | AR= ar r |
15 | 18 | ||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | 19 | CFLAGS= $(INCLUDES) $(CFLAG) |
17 | 20 | ||
18 | ERR=conf | ||
19 | ERRC=conf_err | ||
20 | GENERAL=Makefile | 21 | GENERAL=Makefile |
21 | TEST= | 22 | TEST= |
22 | APPS= | 23 | APPS= |
23 | 24 | ||
24 | LIB=$(TOP)/libcrypto.a | 25 | LIB=$(TOP)/libcrypto.a |
25 | LIBSRC= conf.c $(ERRC).c | 26 | LIBSRC= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c \ |
27 | conf_mall.c conf_sap.c | ||
26 | 28 | ||
27 | LIBOBJ= conf.o $(ERRC).o | 29 | LIBOBJ= conf_err.o conf_lib.o conf_api.o conf_def.o conf_mod.o \ |
30 | conf_mall.o conf_sap.o | ||
28 | 31 | ||
29 | SRC= $(LIBSRC) | 32 | SRC= $(LIBSRC) |
30 | 33 | ||
31 | EXHEADER= conf.h | 34 | EXHEADER= conf.h conf_api.h |
32 | HEADER= conf_lcl.h $(EXHEADER) | 35 | HEADER= conf_def.h $(EXHEADER) |
33 | 36 | ||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | 37 | ALL= $(GENERAL) $(SRC) $(HEADER) |
35 | 38 | ||
@@ -40,24 +43,23 @@ all: lib | |||
40 | 43 | ||
41 | lib: $(LIBOBJ) | 44 | lib: $(LIBOBJ) |
42 | $(AR) $(LIB) $(LIBOBJ) | 45 | $(AR) $(LIB) $(LIBOBJ) |
43 | sh $(TOP)/util/ranlib.sh $(LIB) | 46 | $(RANLIB) $(LIB) || echo Never mind. |
44 | @touch lib | 47 | @touch lib |
45 | 48 | ||
46 | files: | 49 | files: |
47 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 50 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
48 | 51 | ||
49 | links: | 52 | links: |
50 | /bin/rm -f Makefile | 53 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
51 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 54 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
52 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 55 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
53 | $(TOP)/util/mklink.sh ../../test $(TEST) | 56 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
54 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
55 | 57 | ||
56 | install: | 58 | install: |
57 | @for i in $(EXHEADER) ; \ | 59 | @for i in $(EXHEADER) ; \ |
58 | do \ | 60 | do \ |
59 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 61 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
60 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 62 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
61 | done; | 63 | done; |
62 | 64 | ||
63 | tags: | 65 | tags: |
@@ -69,17 +71,91 @@ lint: | |||
69 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 71 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
70 | 72 | ||
71 | depend: | 73 | depend: |
72 | $(MAKEDEPEND) $(INCLUDES) $(LIBSRC) | 74 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(LIBSRC) |
73 | 75 | ||
74 | dclean: | 76 | dclean: |
75 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 77 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
76 | mv -f Makefile.new $(MAKEFILE) | 78 | mv -f Makefile.new $(MAKEFILE) |
77 | 79 | ||
78 | clean: | 80 | clean: |
79 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 81 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
80 | |||
81 | errors: | ||
82 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
83 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
84 | 82 | ||
85 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 83 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
84 | |||
85 | conf_api.o: ../../e_os.h ../../include/openssl/bio.h | ||
86 | conf_api.o: ../../include/openssl/conf.h ../../include/openssl/conf_api.h | ||
87 | conf_api.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
88 | conf_api.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
89 | conf_api.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
90 | conf_api.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
91 | conf_api.o: conf_api.c | ||
92 | conf_def.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | ||
93 | conf_def.o: ../../include/openssl/conf.h ../../include/openssl/conf_api.h | ||
94 | conf_def.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
95 | conf_def.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
96 | conf_def.o: ../../include/openssl/opensslconf.h | ||
97 | conf_def.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
98 | conf_def.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
99 | conf_def.o: conf_def.c conf_def.h | ||
100 | conf_err.o: ../../include/openssl/bio.h ../../include/openssl/conf.h | ||
101 | conf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | ||
102 | conf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h | ||
103 | conf_err.o: ../../include/openssl/opensslconf.h | ||
104 | conf_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
105 | conf_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
106 | conf_err.o: conf_err.c | ||
107 | conf_lib.o: ../../include/openssl/bio.h ../../include/openssl/conf.h | ||
108 | conf_lib.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h | ||
109 | conf_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
110 | conf_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
111 | conf_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
112 | conf_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
113 | conf_lib.o: conf_lib.c | ||
114 | conf_mall.o: ../../e_os.h ../../include/openssl/asn1.h | ||
115 | conf_mall.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
116 | conf_mall.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
117 | conf_mall.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
118 | conf_mall.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
119 | conf_mall.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
120 | conf_mall.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
121 | conf_mall.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
122 | conf_mall.o: ../../include/openssl/objects.h | ||
123 | conf_mall.o: ../../include/openssl/opensslconf.h | ||
124 | conf_mall.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
125 | conf_mall.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
126 | conf_mall.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
127 | conf_mall.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
128 | conf_mall.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
129 | conf_mall.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
130 | conf_mall.o: ../cryptlib.h conf_mall.c | ||
131 | conf_mod.o: ../../e_os.h ../../include/openssl/asn1.h | ||
132 | conf_mod.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
133 | conf_mod.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
134 | conf_mod.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
135 | conf_mod.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
136 | conf_mod.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
137 | conf_mod.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h | ||
138 | conf_mod.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
139 | conf_mod.o: ../../include/openssl/opensslconf.h | ||
140 | conf_mod.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
141 | conf_mod.o: ../../include/openssl/pkcs7.h ../../include/openssl/rsa.h | ||
142 | conf_mod.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
143 | conf_mod.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
144 | conf_mod.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
145 | conf_mod.o: ../cryptlib.h conf_mod.c | ||
146 | conf_sap.o: ../../e_os.h ../../include/openssl/asn1.h | ||
147 | conf_sap.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
148 | conf_sap.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h | ||
149 | conf_sap.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
150 | conf_sap.o: ../../include/openssl/dsa.h ../../include/openssl/dso.h | ||
151 | conf_sap.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h | ||
152 | conf_sap.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
153 | conf_sap.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
154 | conf_sap.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
155 | conf_sap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
156 | conf_sap.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h | ||
157 | conf_sap.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
158 | conf_sap.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
159 | conf_sap.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
160 | conf_sap.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
161 | conf_sap.o: ../cryptlib.h conf_sap.c | ||