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