3 echo "#define DATE \"`date`\"" >crypto/date.h
12 #FLAGS='-DTERMIO -O3 -DL_ENDIAN -fomit-frame-pointer -mv8 -Wall'
13 FLAGS='-DTERMIO -g2 -ggdb -DL_ENDIAN -Wall -DREF_CHECK -DCRYPTO_MDEBUG'
14 INCLUDE='-Iinclude -Icrypto -Issl'
17 CFLAGS="$FLAGS $INCLUDE $SHFLAGS"
20 echo compiling bignum assember
21 $AS -o bn_asm.o crypto/bn/asm/sparc.s
22 CFLAGS="$CFLAGS -DBN_ASM"
23 ASM_OBJ="$ASM_OBJ bn_asm.o"
26 $CC -c $CFLAGS -DCFLAGS="\"$FLAGS\"" -o crypto.o crypto/crypto.c
29 gcc $CFLAGS -shared -o $clib.so.$major.$minor crypto.o $ASM_OBJ -lnsl -lsocket
31 echo compiling $slib.so
32 $CC -c $CFLAGS -o ssl.o ssl/ssl.c
34 echo building $slib.so
35 gcc $CFLAGS -shared -o $slib.so ssl.o -L. -lcrypto