1#!/bin/sh 2 3echo "#define DATE \"`date`\"" >crypto/date.h 4 5major="0" 6minor="8.0" 7slib=libssl-1.0.0q 8clib=libcrypto-1.0.0q 9CC=gcc 10CPP='gcc -E' 11AS=as 12#FLAGS='-DTERMIO -O3 -DL_ENDIAN -fomit-frame-pointer -mv8 -Wall' 13FLAGS='-DTERMIO -g2 -ggdb -DL_ENDIAN -Wall -DREF_CHECK -DCRYPTO_MDEBUG' 14INCLUDE='-Iinclude -Icrypto -Issl' 15SHFLAGS='-DPIC -fpic' 16 17CFLAGS="$FLAGS $INCLUDE $SHFLAGS" 18ASM_OBJ=""; 19 20echo compiling bignum assember 21$AS -o bn_asm.o crypto/bn/asm/sparc.s 22CFLAGS="$CFLAGS -DBN_ASM" 23ASM_OBJ="$ASM_OBJ bn_asm.o" 24 25echo compiling $clib 26$CC -c $CFLAGS -DCFLAGS="\"$FLAGS\"" -o crypto.o crypto/crypto.c 27 28echo linking $clib.so 29gcc $CFLAGS -shared -o $clib.so.$major.$minor crypto.o $ASM_OBJ -lnsl -lsocket 30 31echo compiling $slib.so 32$CC -c $CFLAGS -o ssl.o ssl/ssl.c 33 34echo building $slib.so 35gcc $CFLAGS -shared -o $slib.so ssl.o -L. -lcrypto-1.0.0q 36 37