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