diff options
author | Ralf S. Engelschall <rse@openssl.org> | 1998-12-21 10:56:39 +0000 |
---|---|---|
committer | Ralf S. Engelschall <rse@openssl.org> | 1998-12-21 10:56:39 +0000 |
commit | 58964a492275ca9a59a0cd9c8155cb2491b4b909 (patch) | |
tree | c7b16876a5789463bbbb468ef4829c8129b3d718 /shlib/linux.sh | |
parent | d02b48c63a58ea4367a0e905979f140b7d090f86 (diff) | |
download | openssl-58964a492275ca9a59a0cd9c8155cb2491b4b909.tar.gz |
Import of old SSLeay release: SSLeay 0.9.0b
Diffstat (limited to 'shlib/linux.sh')
-rw-r--r-- | shlib/linux.sh | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/shlib/linux.sh b/shlib/linux.sh index 4d2b98d2c1..f80292d90c 100644 --- a/shlib/linux.sh +++ b/shlib/linux.sh @@ -3,13 +3,13 @@ echo "#define DATE \"`date`\"" >crypto/date.h major="0" -minor="8.0" +minor="8.2" slib=libssl clib=libcrypto CC=gcc CPP='gcc -E' AS=as -FLAGS='-DTERMIO -O3 -DL_ENDIAN -fomit-frame-pointer -m486 -Wall' +FLAGS='-DX86_ASM -DTERMIO -O3 -DL_ENDIAN -fomit-frame-pointer -m486 -Wall' #FLAGS='-DTERMIO -g2 -ggdb -DL_ENDIAN -m486 -Wall -DREF_CHECK -DCRYPTO_MDEBUG' INCLUDE='-Iinclude -Icrypto -Issl' SHFLAGS='-DPIC -fpic' @@ -18,13 +18,13 @@ CFLAGS="$FLAGS $INCLUDE $SHFLAGS" ASM_OBJ=""; echo compiling bignum assember -$AS -o bn_asm.o crypto/bn/asm/x86-lnx.s -CFLAGS="$CFLAGS -DBN_ASM" +$CPP -DELF crypto/bn/asm/bn86unix.cpp | $AS -o bn_asm.o +CFLAGS="$CFLAGS -DBN_ASM -DX86_ASM" ASM_OBJ="$ASM_OBJ bn_asm.o" echo compiling des assember $CPP -DELF crypto/des/asm/dx86unix.cpp | $AS -o des_enc.o -$CPP -DELF crypto/des/asm/cx86unix.cpp | $AS -o fcrypt-b.o +$CPP -DELF crypto/des/asm/yx86unix.cpp | $AS -o fcrypt-b.o CFLAGS="$CFLAGS -DDES_ASM" ASM_OBJ="$ASM_OBJ des_enc.o fcrypt-b.o" @@ -33,12 +33,32 @@ $CPP -DELF crypto/bf/asm/bx86unix.cpp | $AS -o bf_enc.o CFLAGS="$CFLAGS -DBF_ASM" ASM_OBJ="$ASM_OBJ bf_enc.o" +echo compiling cast assember +$CPP -DELF crypto/cast/asm/cx86unix.cpp | $AS -o cast_enc.o +CFLAGS="$CFLAGS -DCAST_ASM" +ASM_OBJ="$ASM_OBJ cast_enc.o" + +echo compiling rc4 assember +$CPP -DELF crypto/rc4/asm/rx86unix.cpp | $AS -o rc4_enc.o +CFLAGS="$CFLAGS -DRC4_ASM" +ASM_OBJ="$ASM_OBJ rc4_enc.o" + +echo compiling md5 assember +$CPP -DELF crypto/md5/asm/mx86unix.cpp | $AS -o md5_enc.o +CFLAGS="$CFLAGS -DMD5_ASM" +ASM_OBJ="$ASM_OBJ md5_enc.o" + +echo compiling sha1 assember +$CPP -DELF crypto/sha/asm/sx86unix.cpp | $AS -o sha1_enc.o +CFLAGS="$CFLAGS -DSHA1_ASM" +ASM_OBJ="$ASM_OBJ sha1_enc.o" + echo compiling $clib $CC -c $CFLAGS -DCFLAGS="\"$FLAGS\"" -o crypto.o crypto/crypto.c echo linking $clib.so gcc $CFLAGS -shared -Wl,-soname,$clib.so.$major -o $clib.so.$major.$minor crypto.o $ASM_OBJ -/bin/rm -f $clib.so $clib.$major +/bin/rm -f $clib.so $clib.so.$major ln -s $clib.so.$major.$minor $clib.so ln -s $clib.so.$major.$minor $clib.so.$major @@ -47,7 +67,7 @@ $CC -c $CFLAGS -o ssl.o ssl/ssl.c echo building $slib.so gcc $CFLAGS -shared -Wl,-soname,$slib.so.$major -o $slib.so.$major.$minor ssl.o -/bin/rm -f $slib.so $slib.$mahor +/bin/rm -f $slib.so $slib.so.$major ln -s $slib.so.$major.$minor $slib.so ln -s $slib.so.$major.$minor $slib.so.$major |