diff options
| author | ryker <> | 1998-10-05 20:13:11 +0000 |
|---|---|---|
| committer | ryker <> | 1998-10-05 20:13:11 +0000 |
| commit | 92aea9da31e1e5746c15202285d820cc2da65f0f (patch) | |
| tree | 1a18c88b030b0d24fa65368b9ddcacfa8e1843ea /src/lib/libcrypto/Makefile.ssl | |
| download | openbsd-92aea9da31e1e5746c15202285d820cc2da65f0f.tar.gz openbsd-92aea9da31e1e5746c15202285d820cc2da65f0f.tar.bz2 openbsd-92aea9da31e1e5746c15202285d820cc2da65f0f.zip | |
Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD build
functionality for shared libs.
Note that routines such as sslv2_init and friends that use RSA will
not work due to lack of RSA in this library.
Needs documentation and help from ports for easy upgrade to full
functionality where legally possible.
Diffstat (limited to 'src/lib/libcrypto/Makefile.ssl')
| -rw-r--r-- | src/lib/libcrypto/Makefile.ssl | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/src/lib/libcrypto/Makefile.ssl b/src/lib/libcrypto/Makefile.ssl new file mode 100644 index 0000000000..efdbba38ac --- /dev/null +++ b/src/lib/libcrypto/Makefile.ssl | |||
| @@ -0,0 +1,161 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= crypto | ||
| 6 | TOP= .. | ||
| 7 | CC= cc | ||
| 8 | INCLUDE= -I. -I../include | ||
| 9 | INCLUDES= -I.. -I../../include | ||
| 10 | CFLAG= -g | ||
| 11 | INSTALLTOP= /usr/local/ssl | ||
| 12 | MAKE= make -f Makefile.ssl | ||
| 13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
| 14 | MAKEFILE= Makefile.ssl | ||
| 15 | RM= /bin/rm -f | ||
| 16 | AR= ar r | ||
| 17 | |||
| 18 | MAKE= make -f Makefile.ssl | ||
| 19 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
| 20 | MAKEFILE= Makefile.ssl | ||
| 21 | |||
| 22 | PEX_LIBS= | ||
| 23 | EX_LIBS= | ||
| 24 | |||
| 25 | CFLAGS= $(INCLUDE) $(CFLAG) -DCFLAGS=" \"$(CC) $(CFLAG)\" " | ||
| 26 | |||
| 27 | ERR=crypto | ||
| 28 | ERRC=cpt_err | ||
| 29 | |||
| 30 | LIBS= | ||
| 31 | |||
| 32 | SDIRS= md2 md5 sha mdc2 hmac ripemd \ | ||
| 33 | des rc2 rc4 rc5 idea bf cast \ | ||
| 34 | bn rsa dsa dh \ | ||
| 35 | buffer bio stack lhash rand err objects \ | ||
| 36 | evp pem x509 \ | ||
| 37 | asn1 conf txt_db pkcs7 | ||
| 38 | |||
| 39 | GENERAL=Makefile README | ||
| 40 | |||
| 41 | LIB= $(TOP)/libcrypto.a | ||
| 42 | LIBSRC= cryptlib.c mem.c cversion.c ex_data.c $(ERRC).c | ||
| 43 | LIBOBJ= cryptlib.o mem.o cversion.o ex_data.o $(ERRC).o | ||
| 44 | |||
| 45 | SRC= $(LIBSRC) | ||
| 46 | |||
| 47 | EXHEADER= crypto.h cryptall.h | ||
| 48 | HEADER= cryptlib.h date.h $(EXHEADER) | ||
| 49 | |||
| 50 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 51 | |||
| 52 | top: | ||
| 53 | @(cd ..; $(MAKE) DIRS=$(DIR) all) | ||
| 54 | |||
| 55 | all: date.h lib subdirs | ||
| 56 | |||
| 57 | date.h: ../Makefile.ssl ../VERSION | ||
| 58 | echo "#define DATE \"`date`\"" >date.h | ||
| 59 | |||
| 60 | subdirs: | ||
| 61 | @for i in $(SDIRS) ;\ | ||
| 62 | do \ | ||
| 63 | (cd $$i; echo "making all in $$i..."; \ | ||
| 64 | $(MAKE) CC='$(CC)' INCLUDES='${INCLUDES}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_MULW='${BN_MULW}' 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}' all ); \ | ||
| 65 | done; | ||
| 66 | |||
| 67 | files: | ||
| 68 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 69 | @for i in $(SDIRS) ;\ | ||
| 70 | do \ | ||
| 71 | (cd $$i; echo "making 'files' in $$i..."; \ | ||
| 72 | $(MAKE) files ); \ | ||
| 73 | done; | ||
| 74 | |||
| 75 | links: | ||
| 76 | /bin/rm -f Makefile | ||
| 77 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
| 78 | $(TOP)/util/mklink.sh ../include $(HEADER) ; | ||
| 79 | $(TOP)/util/mklink.sh ../test $(TEST) ; | ||
| 80 | $(TOP)/util/mklink.sh ../apps $(APPS) ; | ||
| 81 | $(TOP)/util/point.sh Makefile.ssl Makefile; | ||
| 82 | @for i in $(SDIRS) ;\ | ||
| 83 | do \ | ||
| 84 | (cd $$i; echo "making links in $$i..."; \ | ||
| 85 | $(MAKE) links ); \ | ||
| 86 | done; | ||
| 87 | |||
| 88 | lib: $(LIBOBJ) | ||
| 89 | $(AR) $(LIB) $(LIBOBJ) | ||
| 90 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
| 91 | @touch lib | ||
| 92 | |||
| 93 | libs: | ||
| 94 | @for i in $(SDIRS) ;\ | ||
| 95 | do \ | ||
| 96 | (cd $$i; echo "making libs in $$i..."; \ | ||
| 97 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' lib ); \ | ||
| 98 | done; | ||
| 99 | |||
| 100 | tests: | ||
| 101 | @for i in $(SDIRS) ;\ | ||
| 102 | do \ | ||
| 103 | (cd $$i; echo "making tests in $$i..."; \ | ||
| 104 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' AR='${AR}' tests ); \ | ||
| 105 | done; | ||
| 106 | |||
| 107 | install: | ||
| 108 | @for i in $(EXHEADER) ;\ | ||
| 109 | do \ | ||
| 110 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
| 111 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
| 112 | done; | ||
| 113 | @for i in $(SDIRS) ;\ | ||
| 114 | do \ | ||
| 115 | (cd $$i; echo "making install in $$i..."; \ | ||
| 116 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' install ); \ | ||
| 117 | done; | ||
| 118 | |||
| 119 | lint: | ||
| 120 | @for i in $(SDIRS) ;\ | ||
| 121 | do \ | ||
| 122 | (cd $$i; echo "making lint in $$i..."; \ | ||
| 123 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' lint ); \ | ||
| 124 | done; | ||
| 125 | |||
| 126 | depend: | ||
| 127 | $(MAKEDEPEND) $(INCLUDE) $(PROGS) $(LIBSRC) | ||
| 128 | @for i in $(SDIRS) ;\ | ||
| 129 | do \ | ||
| 130 | (cd $$i; echo "making depend in $$i..."; \ | ||
| 131 | $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' MAKEDEPEND='${MAKEDEPEND}' depend ); \ | ||
| 132 | done; | ||
| 133 | |||
| 134 | clean: | ||
| 135 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 136 | @for i in $(SDIRS) ;\ | ||
| 137 | do \ | ||
| 138 | (cd $$i; echo "making clean in $$i..."; \ | ||
| 139 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' clean ); \ | ||
| 140 | done; | ||
| 141 | |||
| 142 | dclean: | ||
| 143 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 144 | mv -f Makefile.new $(MAKEFILE) | ||
| 145 | @for i in $(SDIRS) ;\ | ||
| 146 | do \ | ||
| 147 | (cd $$i; echo "making dclean in $$i..."; \ | ||
| 148 | $(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \ | ||
| 149 | done; | ||
| 150 | |||
| 151 | errors: | ||
| 152 | perl ./err/err_code.pl -conf err/ssleay.ec *.c */*.c ../ssl/*.c ../rsaref/*.c | ||
| 153 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
| 154 | perl err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
| 155 | @for i in $(SDIRS) ;\ | ||
| 156 | do \ | ||
| 157 | (cd $$i; echo "making errors in $$i..."; \ | ||
| 158 | $(MAKE) errors ); \ | ||
| 159 | done; | ||
| 160 | |||
| 161 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
