31 lines
559 B
Plaintext
31 lines
559 B
Plaintext
|
#!/bin/bash
|
||
|
set -x
|
||
|
mk-dirs
|
||
|
TOP=../..
|
||
|
PR=../
|
||
|
cd $TOP/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
|
||
|
|
||
|
cd $PR/c_micasad/lib
|
||
|
(make -I $TOP/make -f Makefile ROOT=$TOP PLAT=lux EXT=lib MODULE=cscommonlib BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-d:LINUX" XTRA=ndbg $2 $3 $4 $5 $6)
|
||
|
RCODE=$?
|
||
|
rm -f $COMMON_FILES
|
||
|
if(test $RCODE != 0)
|
||
|
then
|
||
|
exit $RCODE
|
||
|
else
|
||
|
exit 0
|
||
|
fi
|