Commit d2334e10 authored by Claes Sjofors's avatar Claes Sjofors

PWR_EXT_INC added to plc compile cmd for adding of external include directories

parent 72117879
...@@ -133,3 +133,5 @@ ...@@ -133,3 +133,5 @@
090515 cs wtt Bugfix in ConnectGraph method for PlantHier objects. 090515 cs wtt Bugfix in ConnectGraph method for PlantHier objects.
090518 cs wb Wb method PostRename added and implemented for XttGraph and ProjectReg objects. 090518 cs wb Wb method PostRename added and implemented for XttGraph and ProjectReg objects.
090518 cs wb Advanced user set as default in wb. 090518 cs wb Advanced user set as default in wb.
090630 cs wb Directory database changed from BerkeleyDb to wb_load format.
090701 cs plc Env variable PWR_EXT_INC added to plc compile command. Replaces pwrp_cmn.
\ No newline at end of file
...@@ -245,7 +245,6 @@ OsMaskToOpSys $OsMask # Convert Bitmask to index ...@@ -245,7 +245,6 @@ OsMaskToOpSys $OsMask # Convert Bitmask to index
# Local symbols # Local symbols
# #
let OpSys__Low=0 let OpSys__Low=0
let OpSys_VAX_ELN=1 let OpSys_VAX_ELN=1
let OpSys_VAX_VMS=2 let OpSys_VAX_VMS=2
...@@ -289,8 +288,14 @@ fi ...@@ -289,8 +288,14 @@ fi
# #
# Check OpSys # Check OpSys
# #
# How can we find out if this is a ppc or x86 host? # Current opsys
# machine=`eval uname -m`
if [ $machine = "x86_64" ]; then
CurrentOpSys=$OpSys_X86_64_LINUX
else
CurrentOpSys=$OpSys_X86_LINUX
fi
# #
# Check FileType # Check FileType
# #
...@@ -303,19 +308,49 @@ fi ...@@ -303,19 +308,49 @@ fi
OsStr="`echo $vOpSys| cut -f $OpSys -d ,`" OsStr="`echo $vOpSys| cut -f $OpSys -d ,`"
let FileTypeIdx=$FileType+1 let FileTypeIdx=$FileType+1
if [ $OpSys -eq $OpSys_PPC_LINUX ] || [ $OpSys -eq $OpSys_X86_LINUX ] || [ $OpSys -eq $OpSys_X86_64_LINUX ]; if [ $OpSys -eq $OpSys_PPC_LINUX ]; then
then pwrp_gc="$pwrp_tmp"
# Suppress all warnings, -x
cc_cmd="gcc -c -x c -w $cc_debug -D_REENTRANT -DOS_LINUX -I$pwr_inc -I$pwrp_inc -I$pwrp_tmp $PWR_EXT_INC"
FileTypeStr="`echo $vFileType| cut -f $FileTypeIdx -d ,`"
# Execute build command
Compile$FileTypeStr
exit $gcg_status
elif [ $OpSys -eq $OpSys_X86_LINUX ]; then
pwrp_gc="$pwrp_tmp" pwrp_gc="$pwrp_tmp"
# Suppress all warnings, -x # Suppress all warnings, -x
cc_cmd="gcc -c -x c -w $cc_debug -D_REENTRANT -DOS_LINUX -I$pwr_inc -I$pwrp_inc -I$pwrp_tmp -I$pwrp_cmn/common/inc" if [ $CurrentOpSys -eq $OpSys ]; then
cc_cmd="gcc -c -x c -w $cc_debug -D_REENTRANT -DOS_LINUX -I$pwr_inc -I$pwrp_inc -I$pwrp_tmp $PWR_EXT_INC"
FileTypeStr="`echo $vFileType| cut -f $FileTypeIdx -d ,`" FileTypeStr="`echo $vFileType| cut -f $FileTypeIdx -d ,`"
# Execute build command # Execute build command
Compile$FileTypeStr Compile$FileTypeStr
exit $gcg_status exit $gcg_status
elif [ $CurrentOpSys -eq $OpSys_X86_64_LINUX ]; then
echo "-- Not built for x86_linux"
fi
elif [ $OpSys -eq $OpSys_X86_64_LINUX ]; then
pwrp_gc="$pwrp_tmp"
# Suppress all warnings, -x
if [ $CurrentOpSys -eq $OpSys ]; then
cc_cmd="gcc -c -x c -w $cc_debug -D_REENTRANT -DOS_LINUX -I$pwr_inc -I$pwrp_inc -I$pwrp_tmp $PWR_EXT_INC"
FileTypeStr="`echo $vFileType| cut -f $FileTypeIdx -d ,`"
# Execute build command
Compile$FileTypeStr
exit $gcg_status
elif [ $CurrentOpSys -eq $OpSys_X86_LINUX ]; then
echo "-- Not built for x86_64_linux"
fi
elif [ $OpSys -eq $OpSys_AXP_VMS ]; then elif [ $OpSys -eq $OpSys_AXP_VMS ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment