Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / openssl / shlib / solaris.sh
blob03475f12b410c309cc5c4402c1cce88e0162c32b
1 #!/bin/sh
3 echo "#define DATE \"`date`\"" >crypto/date.h
5 major="0"
6 minor="8.0"
7 slib=libssl
8 clib=libcrypto
9 CC=gcc
10 CPP='gcc -E'
11 AS=as
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'
15 SHFLAGS='-DPIC -fpic'
17 CFLAGS="$FLAGS $INCLUDE $SHFLAGS"
18 ASM_OBJ="";
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"
25 echo compiling $clib
26 $CC -c $CFLAGS -DCFLAGS="\"$FLAGS\"" -o crypto.o crypto/crypto.c
28 echo linking $clib.so
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