summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/Makefile.ssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/Makefile.ssl')
-rw-r--r--src/lib/libcrypto/Makefile.ssl139
1 files changed, 75 insertions, 64 deletions
diff --git a/src/lib/libcrypto/Makefile.ssl b/src/lib/libcrypto/Makefile.ssl
index 6759b2e4d0..9d1a180571 100644
--- a/src/lib/libcrypto/Makefile.ssl
+++ b/src/lib/libcrypto/Makefile.ssl
@@ -5,14 +5,15 @@
5DIR= crypto 5DIR= crypto
6TOP= .. 6TOP= ..
7CC= cc 7CC= cc
8INCLUDE= -I. -I../include 8INCLUDE= -I. -I$(TOP) -I../include
9INCLUDES= -I.. -I../../include 9INCLUDES= -I.. -I../.. -I../../include
10CFLAG= -g 10CFLAG= -g
11INSTALL_PREFIX= 11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl 12OPENSSLDIR= /usr/local/ssl
13INSTALLTOP= /usr/local/ssl 13INSTALLTOP= /usr/local/ssl
14MAKE= make -f Makefile.ssl 14MAKE= make -f Makefile.ssl
15MAKEDEPEND= $(TOP)/util/domd $(TOP) 15MAKEDEPPROG= makedepend
16MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16MAKEFILE= Makefile.ssl 17MAKEFILE= Makefile.ssl
17RM= rm -f 18RM= rm -f
18AR= ar r 19AR= ar r
@@ -27,34 +28,36 @@ LIBS=
27 28
28SDIRS= md2 md5 sha mdc2 hmac ripemd \ 29SDIRS= md2 md5 sha mdc2 hmac ripemd \
29 des rc2 rc4 rc5 idea bf cast \ 30 des rc2 rc4 rc5 idea bf cast \
30 bn rsa dsa dh dso engine \ 31 bn ec rsa dsa dh dso engine aes \
31 buffer bio stack lhash rand err objects \ 32 buffer bio stack lhash rand err objects \
32 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp 33 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5
33 34
34GENERAL=Makefile README crypto-lib.com install.com 35GENERAL=Makefile README crypto-lib.com install.com
35 36
36LIB= $(TOP)/libcrypto.a 37LIB= $(TOP)/libcrypto.a
37LIBSRC= cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c tmdiff.c cpt_err.c ebcdic.c uid.c 38SHARED_LIB= libcrypto$(SHLIB_EXT)
38LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o 39LIBSRC= cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c tmdiff.c cpt_err.c ebcdic.c uid.c o_time.c
40LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o o_time.o
39 41
40SRC= $(LIBSRC) 42SRC= $(LIBSRC)
41 43
42EXHEADER= crypto.h tmdiff.h opensslv.h opensslconf.h ebcdic.h symhacks.h 44EXHEADER= crypto.h tmdiff.h opensslv.h opensslconf.h ebcdic.h symhacks.h \
43HEADER= cryptlib.h buildinf.h md32_common.h $(EXHEADER) 45 ossl_typ.h
46HEADER= cryptlib.h buildinf.h md32_common.h o_time.h $(EXHEADER)
44 47
45ALL= $(GENERAL) $(SRC) $(HEADER) 48ALL= $(GENERAL) $(SRC) $(HEADER)
46 49
47top: 50top:
48 @(cd ..; $(MAKE) DIRS=$(DIR) all) 51 @(cd ..; $(MAKE) DIRS=$(DIR) all)
49 52
50all: buildinf.h lib subdirs 53all: buildinf.h lib subdirs shared
51 54
52buildinf.h: ../Makefile.ssl 55buildinf.h: ../Makefile.ssl
53 ( echo "#ifndef MK1MF_BUILD"; \ 56 ( echo "#ifndef MK1MF_BUILD"; \
54 echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \ 57 echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
55 echo " #define CFLAGS \"$(CC) $(CFLAG)\""; \ 58 echo " #define CFLAGS \"$(CC) $(CFLAG)\""; \
56 echo " #define PLATFORM \"$(PLATFORM)\""; \ 59 echo " #define PLATFORM \"$(PLATFORM)\""; \
57 echo " #define DATE \"`date`\""; \ 60 echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
58 echo "#endif" ) >buildinf.h 61 echo "#endif" ) >buildinf.h
59 62
60testapps: 63testapps:
@@ -73,7 +76,7 @@ files:
73 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 76 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
74 @for i in $(SDIRS) ;\ 77 @for i in $(SDIRS) ;\
75 do \ 78 do \
76 (cd $$i; echo "making 'files' in crypto/$$i..."; \ 79 (cd $$i && echo "making 'files' in crypto/$$i..." && \
77 $(MAKE) PERL='${PERL}' files ); \ 80 $(MAKE) PERL='${PERL}' files ); \
78 done; 81 done;
79 82
@@ -84,27 +87,31 @@ links:
84 @$(PERL) $(TOP)/util/mklink.pl ../apps $(APPS) 87 @$(PERL) $(TOP)/util/mklink.pl ../apps $(APPS)
85 @$(SHELL) $(TOP)/util/point.sh Makefile.ssl Makefile 88 @$(SHELL) $(TOP)/util/point.sh Makefile.ssl Makefile
86 @for i in $(SDIRS); do \ 89 @for i in $(SDIRS); do \
87 (cd $$i; echo "making links in crypto/$$i..."; \ 90 (cd $$i && echo "making links in crypto/$$i..." && \
88 $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PERL='${PERL}' links ); \ 91 $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' AR='${AR}' PERL='${PERL}' links ); \
89 done; 92 done;
90 93
91lib: $(LIBOBJ) 94lib: $(LIBOBJ)
92 $(AR) $(LIB) $(LIBOBJ) 95 $(AR) $(LIB) $(LIBOBJ)
93 @echo You may get an error following this line. Please ignore. 96 $(RANLIB) $(LIB) || echo Never mind.
94 - $(RANLIB) $(LIB)
95 @touch lib 97 @touch lib
96 98
99shared:
100 if [ -n "$(SHARED_LIBS)" ]; then \
101 (cd ..; make $(SHARED_LIB)); \
102 fi
103
97libs: 104libs:
98 @for i in $(SDIRS) ;\ 105 @for i in $(SDIRS) ;\
99 do \ 106 do \
100 (cd $$i; echo "making libs in crypto/$$i..."; \ 107 (cd $$i && echo "making libs in crypto/$$i..." && \
101 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' lib ); \ 108 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' lib ); \
102 done; 109 done;
103 110
104tests: 111tests:
105 @for i in $(SDIRS) ;\ 112 @for i in $(SDIRS) ;\
106 do \ 113 do \
107 (cd $$i; echo "making tests in crypto/$$i..."; \ 114 (cd $$i && echo "making tests in crypto/$$i..." && \
108 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' tests ); \ 115 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' tests ); \
109 done; 116 done;
110 117
@@ -116,14 +123,14 @@ install:
116 done; 123 done;
117 @for i in $(SDIRS) ;\ 124 @for i in $(SDIRS) ;\
118 do \ 125 do \
119 (cd $$i; echo "making install in crypto/$$i..."; \ 126 (cd $$i && echo "making install in crypto/$$i..." && \
120 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' install ); \ 127 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' install ); \
121 done; 128 done;
122 129
123lint: 130lint:
124 @for i in $(SDIRS) ;\ 131 @for i in $(SDIRS) ;\
125 do \ 132 do \
126 (cd $$i; echo "making lint in crypto/$$i..."; \ 133 (cd $$i && echo "making lint in crypto/$$i..." && \
127 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' lint ); \ 134 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' lint ); \
128 done; 135 done;
129 136
@@ -133,7 +140,7 @@ depend:
133 if [ ! -s buildinf.h ]; then rm buildinf.h; fi 140 if [ ! -s buildinf.h ]; then rm buildinf.h; fi
134 @for i in $(SDIRS) ;\ 141 @for i in $(SDIRS) ;\
135 do \ 142 do \
136 (cd $$i; echo "making depend in crypto/$$i..."; \ 143 (cd $$i && echo "making depend in crypto/$$i..." && \
137 $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' DEPFLAG='${DEPFLAG}' depend ); \ 144 $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' DEPFLAG='${DEPFLAG}' depend ); \
138 done; 145 done;
139 146
@@ -141,7 +148,7 @@ clean:
141 rm -f buildinf.h *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 148 rm -f buildinf.h *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
142 @for i in $(SDIRS) ;\ 149 @for i in $(SDIRS) ;\
143 do \ 150 do \
144 (cd $$i; echo "making clean in crypto/$$i..."; \ 151 (cd $$i && echo "making clean in crypto/$$i..." && \
145 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' clean ); \ 152 $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' clean ); \
146 done; 153 done;
147 154
@@ -150,54 +157,58 @@ dclean:
150 mv -f Makefile.new $(MAKEFILE) 157 mv -f Makefile.new $(MAKEFILE)
151 @for i in $(SDIRS) ;\ 158 @for i in $(SDIRS) ;\
152 do \ 159 do \
153 (cd $$i; echo "making dclean in crypto/$$i..."; \ 160 (cd $$i && echo "making dclean in crypto/$$i..." && \
154 $(MAKE) PERL='${PERL}' CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \ 161 $(MAKE) PERL='${PERL}' CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \
155 done; 162 done;
156 163
157# DO NOT DELETE THIS LINE -- make depend depends on it. 164# DO NOT DELETE THIS LINE -- make depend depends on it.
158 165
159cpt_err.o: ../include/openssl/bio.h ../include/openssl/crypto.h 166cpt_err.o: ../include/openssl/bio.h ../include/openssl/crypto.h
160cpt_err.o: ../include/openssl/err.h ../include/openssl/lhash.h 167cpt_err.o: ../include/openssl/e_os2.h ../include/openssl/err.h
168cpt_err.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
161cpt_err.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h 169cpt_err.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h
162cpt_err.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 170cpt_err.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cpt_err.c
163cryptlib.o: ../include/openssl/bio.h ../include/openssl/buffer.h 171cryptlib.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h
164cryptlib.o: ../include/openssl/crypto.h ../include/openssl/e_os.h 172cryptlib.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
165cryptlib.o: ../include/openssl/e_os2.h ../include/openssl/err.h 173cryptlib.o: ../include/openssl/err.h ../include/openssl/lhash.h
166cryptlib.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h 174cryptlib.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
167cryptlib.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h 175cryptlib.o: ../include/openssl/safestack.h ../include/openssl/stack.h
168cryptlib.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h 176cryptlib.o: ../include/openssl/symhacks.h cryptlib.c cryptlib.h
169cversion.o: ../include/openssl/bio.h ../include/openssl/buffer.h 177cversion.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h
170cversion.o: ../include/openssl/crypto.h ../include/openssl/e_os.h 178cversion.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
171cversion.o: ../include/openssl/e_os2.h ../include/openssl/err.h 179cversion.o: ../include/openssl/err.h ../include/openssl/lhash.h
172cversion.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h 180cversion.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
173cversion.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h 181cversion.o: ../include/openssl/safestack.h ../include/openssl/stack.h
174cversion.o: ../include/openssl/stack.h ../include/openssl/symhacks.h buildinf.h 182cversion.o: ../include/openssl/symhacks.h buildinf.h cryptlib.h cversion.c
175cversion.o: cryptlib.h 183ebcdic.o: ../include/openssl/opensslconf.h ebcdic.c
176ex_data.o: ../include/openssl/bio.h ../include/openssl/buffer.h 184ex_data.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h
177ex_data.o: ../include/openssl/crypto.h ../include/openssl/e_os.h 185ex_data.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
178ex_data.o: ../include/openssl/e_os2.h ../include/openssl/err.h 186ex_data.o: ../include/openssl/err.h ../include/openssl/lhash.h
179ex_data.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h 187ex_data.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
180ex_data.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h 188ex_data.o: ../include/openssl/safestack.h ../include/openssl/stack.h
181ex_data.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h 189ex_data.o: ../include/openssl/symhacks.h cryptlib.h ex_data.c
182mem.o: ../include/openssl/bio.h ../include/openssl/buffer.h 190mem.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h
183mem.o: ../include/openssl/crypto.h ../include/openssl/e_os.h 191mem.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
184mem.o: ../include/openssl/e_os2.h ../include/openssl/err.h 192mem.o: ../include/openssl/err.h ../include/openssl/lhash.h
185mem.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h 193mem.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
186mem.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h 194mem.o: ../include/openssl/safestack.h ../include/openssl/stack.h
187mem.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h 195mem.o: ../include/openssl/symhacks.h cryptlib.h mem.c
188mem_dbg.o: ../include/openssl/bio.h ../include/openssl/buffer.h 196mem_dbg.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h
189mem_dbg.o: ../include/openssl/crypto.h ../include/openssl/e_os.h 197mem_dbg.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
190mem_dbg.o: ../include/openssl/e_os2.h ../include/openssl/err.h 198mem_dbg.o: ../include/openssl/err.h ../include/openssl/lhash.h
191mem_dbg.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h 199mem_dbg.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
192mem_dbg.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h 200mem_dbg.o: ../include/openssl/safestack.h ../include/openssl/stack.h
193mem_dbg.o: ../include/openssl/stack.h ../include/openssl/symhacks.h cryptlib.h 201mem_dbg.o: ../include/openssl/symhacks.h cryptlib.h mem_dbg.c
194tmdiff.o: ../include/openssl/bio.h ../include/openssl/buffer.h 202o_time.o: ../include/openssl/e_os2.h ../include/openssl/opensslconf.h o_time.c
195tmdiff.o: ../include/openssl/crypto.h ../include/openssl/e_os.h 203o_time.o: o_time.h
196tmdiff.o: ../include/openssl/e_os2.h ../include/openssl/err.h 204tmdiff.o: ../e_os.h ../include/openssl/bio.h ../include/openssl/buffer.h
197tmdiff.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h 205tmdiff.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
198tmdiff.o: ../include/openssl/opensslv.h ../include/openssl/safestack.h 206tmdiff.o: ../include/openssl/err.h ../include/openssl/lhash.h
199tmdiff.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 207tmdiff.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
200tmdiff.o: ../include/openssl/tmdiff.h cryptlib.h 208tmdiff.o: ../include/openssl/safestack.h ../include/openssl/stack.h
201uid.o: ../include/openssl/crypto.h ../include/openssl/opensslv.h 209tmdiff.o: ../include/openssl/symhacks.h ../include/openssl/tmdiff.h cryptlib.h
210tmdiff.o: tmdiff.c
211uid.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
212uid.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
202uid.o: ../include/openssl/safestack.h ../include/openssl/stack.h 213uid.o: ../include/openssl/safestack.h ../include/openssl/stack.h
203uid.o: ../include/openssl/symhacks.h 214uid.o: ../include/openssl/symhacks.h uid.c