36 lines
1018 B
Bash
36 lines
1018 B
Bash
#!/bin/bash
|
|
set -x
|
|
mk-dirs
|
|
cd ../../
|
|
PR=`pwd`
|
|
echo $PR
|
|
cd $PR/make
|
|
|
|
MAJ_SSS_NO=`cat majver.txt`
|
|
MIN_SSS_NO=`cat minver.txt`
|
|
REV_SSS_NO=`cat revver.txt`
|
|
|
|
export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO
|
|
|
|
HOST_ARCH=`uname -a | grep -c x86_64`
|
|
if [ $HOST_ARCH -gt 0 ]
|
|
then ARCH_LIB=64
|
|
else
|
|
ARCH_LIB=
|
|
fi
|
|
|
|
export PKG_CONFIG_PATH=/usr/lib$ARCH_LIB/pkgconfig:/opt/gnome/lib$ARCH_LIB/pkgconfig:/usr/local/lib$ARCH_LIB/pkgconfig
|
|
|
|
cd $PR/c_adlib/ad_gk/native
|
|
(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=shared MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="`pkg-config --cflags glib-2.0` `pkg-config --libs glib-2.0` -O2 -fmessage-length=0 -Wall -fstack-protector" $2 $3 $4 $5)
|
|
RCODE=$?
|
|
rm -f $COMMON_FILES
|
|
if(test $RCODE != 0)
|
|
then
|
|
exit $RCODE
|
|
else
|
|
ln -sf $PR/lib$ARCH_LIB/lux/dbg/libad_gk.so.$BLD_NO $PR/lib$ARCH_LIB/lux/dbg/libad_gk.so.$MAJ_SSS_NO
|
|
#ln -sf $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so
|
|
exit 0
|
|
fi
|