1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
occt/samples/java/adm/SunOS/TKSamples2.lnk
2012-03-05 19:23:40 +04:00

70 lines
1.7 KiB
Plaintext
Executable File

if (!($?CCHOME)) setenv CCHOME "/opt/DEV5_1/SUNWspro/bin/CC "
if (!($?CCFLAGS)) setenv CCFLAGS " -xchip=ultra -xarch=v8 -G -mt "
if (!($?STLPortHome)) then
setenv STLPortLib "."
else
if (!($?STLPortLib_CC)) setenv STLPortLib_CC "stlport_gcc"
if (!($?STLPortLib)) setenv STLPortLib "$STLPortHome/lib"
setenv STLPortLib "$STLPortLib -l$STLPortLib_CC"
endif
${CCHOME} ${CCFLAGS} -o ${SAMPLE_ROOT}/${STATION}/lib//libTKSamples2.so \
-L${SAMPLE_ROOT}/${STATION}/lib \
-L${CASROOT}/${STATION}/lib -L${STLPortLib} \
\
${SAMPLE_ROOT}/${STATION}/obj/SampleViewer3DPackage/SampleViewer3DPackage.o \
\
-lTKMath \
-lTKernel \
-lTKService \
-lTKV3d \
-lTKG2d \
-lTKV2d \
-lTKBRep \
-lTKGeomBase \
-lTKTopAlgo \
-lTKG3d \
-lTKPrim \
-lsocket -lnsl -lsunmath -lm -ldl \
\
-L/usr/openwin/lib -lX11 -lXext -lXmu \
-lC -lc ;
set ld_status=$status
if ( $?LD_LIBRARY_PATH ) then
set ld_library_path=$LD_LIBRARY_PATH
endif
if ( $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH ${SAMPLE_ROOT}/${STATION}/lib:${CASROOT}/${STATION}/lib::${LD_LIBRARY_PATH}
else
setenv LD_LIBRARY_PATH ${SAMPLE_ROOT}/${STATION}/lib:${CASROOT}/${STATION}/lib:
endif
echo "Check of undefined symbols with LD_LIBRARY_PATH : $LD_LIBRARY_PATH"
/usr/ccs/bin/ld -o /dev/null \
\
${SAMPLE_ROOT}/${STATION}/lib//libTKSamples2.so\
-lTKMath \
-lTKernel \
-lTKService \
-lTKV3d \
-lTKG2d \
-lTKV2d \
-lTKBRep \
-lTKGeomBase \
-lTKTopAlgo \
-lTKG3d \
-lTKPrim \
;
if ( $status ) then
echo "Check failed"
else
echo "Check successed"
endif
if ( $?ld_library_path ) then
setenv LD_LIBRARY_PATH $ld_library_path
else
unsetenv LD_LIBRARY_PATH
endif
set status=$ld_status