![]() |
![]() |
![]() |
![]() |
![]() |
Configuration File
The behavior of SCCD is defined using a number of variables, each starting with "sccd". The variables are defined in a configuration file, sccd_<your_compiler_type>.cfg. Select the configuration file that corresponds to your C compiler and copy this file as sccd.cfg. If run from the SDL Suite, SCCD uses $sctdir/sccd.cfg as the configuration file; otherwise SCCD searches for sccd.cfg in the current directory, $SCCD, and (on UNIX) $HOME.
If sccd.cfg is not found, hard-coded defaults suitable for the Gnu C compiler (gcc) are used.
Below are the variables that control the behavior of SCCD. Note that all characters in variable values are significant, including white spaces.
sccdNAME = "Default"
- Compiler name as defined in scttypes.h.
sccdINFILESUFFIX = ".c"
- The expected file name suffix of the In-file(s), Default ".c".
sccdCPP = ""
- The name of the C pre-processor. If this is left empty, CPP is used. Default "".
sccdCPPFLAGS = ""
- Enable CPP and do not remove comments. This is C compiler dependent. Default for gcc is "-P -E -C", and for cc "-C -P".
sccdMACROPREFIX = "-D"
- CPP command line define MACRO prefix. Default "-D".
sccdINCLUDE1 = "-I"
- CPP command line include-path prefix. Default "-I".
sccdINCLUDE2 = ""
- Alternative CPP command line include-path prefix. Default "".
sccdOUTFILEREDIR = "-o "
- Character sequence to control CPP output file name. If empty, use sccdFMOVE instead.
sccdFMOVE = ""
- OS forced file move or copy command. Used instead of sccdOUTFILEREDIR. Default: "".
sccdDELETE = "rm -f"
- OS forced delete file command. Default: "rm -f".
sccdCOPY = "cp"
- OS normal copy command. Default: "cp".
sccdCOMPILE = "ON"
- Controls whether the final compilation pass should be run or not. Values are: "OFF" and default is "ON".
sccdDEBUG = "OFF"
- Enable execution. Values are: "ON" and default is "OFF".
sccdPURGE = "ON"
- Purge temporary files. Values are: "OFF" and default is "ON".
sccdUSE_HS = "OFF"
- When set "ON", the .hs files are not included until the compilation pass. Values are: "ON" and default is "OFF".
sccdSILENT = "OFF"
- Enable trace printout. Values are: "ON" and default is "OFF".
sccdTMPDIR = "sccdtmp"
- Temporary directory for the pre-processing. Default is sccdtmp. Setting sccdTMPDIR to "" or "." in the configuration file suppresses temporary directory creation.
sccdUSER_CMD1 = ""sccdUSER_CMD2 = ""sccdUSER_CMD3 = ""sccdUSER_CMD4 = ""
- User-defined commands (see Actions Performed by SCCD). The following pseudo variables can be used in all but the first one (sccdUSER_CMD1):
- %f expands to In-file name without extension.
%p expands to In-file path.
%d expands to the value of sccdTMPDIR.- Example: echo \"Pre-processed C-file = %p/%d/%f.c\"
To include `#' in sccdUSER_CMDx and sccdTMPDIR, enter \#
To include `"' in sccdUSER_CMDx and sccdTMPDIR, enter \"
To include `\' in sccdUSER_CMDx and sccdTMPDIR, enter \\
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |