New option --bin-include-dir which is passed to the assembler.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4661 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -32,43 +32,44 @@ and other things.
|
|||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
Usage: cl65 [options] file [...]
|
Usage: cl65 [options] file [...]
|
||||||
Short options:
|
Short options:
|
||||||
-c Compile and assemble but don't link
|
-c Compile and assemble but don't link
|
||||||
-d Debug mode
|
-d Debug mode
|
||||||
-g Add debug info
|
-g Add debug info
|
||||||
-h Help (this text)
|
-h Help (this text)
|
||||||
-l Create an assembler listing
|
-l Create an assembler listing
|
||||||
-m name Create a map file
|
-m name Create a map file
|
||||||
-mm model Set the memory model
|
-mm model Set the memory model
|
||||||
-o name Name the output file
|
-o name Name the output file
|
||||||
-r Enable register variables
|
-r Enable register variables
|
||||||
-t sys Set the target system
|
-t sys Set the target system
|
||||||
-u sym Force an import of symbol `sym'
|
-u sym Force an import of symbol `sym'
|
||||||
-v Verbose mode
|
-v Verbose mode
|
||||||
-vm Verbose map file
|
-vm Verbose map file
|
||||||
-C name Use linker config file
|
-C name Use linker config file
|
||||||
-Cl Make local variables static
|
-Cl Make local variables static
|
||||||
-D sym[=defn] Define a preprocessor symbol
|
-D sym[=defn] Define a preprocessor symbol
|
||||||
-I dir Set a compiler include directory path
|
-I dir Set a compiler include directory path
|
||||||
-L path Specify a library search path
|
-L path Specify a library search path
|
||||||
-Ln name Create a VICE label file
|
-Ln name Create a VICE label file
|
||||||
-O Optimize code
|
-O Optimize code
|
||||||
-Oi Optimize code, inline functions
|
-Oi Optimize code, inline functions
|
||||||
-Or Optimize code, honour the register keyword
|
-Or Optimize code, honour the register keyword
|
||||||
-Os Optimize code, inline known C funtions
|
-Os Optimize code, inline known C funtions
|
||||||
-S Compile but don't assemble and link
|
-S Compile but don't assemble and link
|
||||||
-T Include source as comment
|
-T Include source as comment
|
||||||
-V Print the version number
|
-V Print the version number
|
||||||
-W Suppress warnings
|
-W Suppress warnings
|
||||||
-Wa options Pass options to the assembler
|
-Wa options Pass options to the assembler
|
||||||
-Wl options Pass options to the linker
|
-Wl options Pass options to the linker
|
||||||
|
|
||||||
Long options:
|
Long options:
|
||||||
--add-source Include source as comment
|
--add-source Include source as comment
|
||||||
--asm-args options Pass options to the assembler
|
--asm-args options Pass options to the assembler
|
||||||
--asm-define sym[=v] Define an assembler symbol
|
--asm-define sym[=v] Define an assembler symbol
|
||||||
--asm-include-dir dir Set an assembler include directory
|
--asm-include-dir dir Set an assembler include directory
|
||||||
|
--bin-include-dir dir Set an assembker binary include directory
|
||||||
--bss-label name Define and export a BSS segment label
|
--bss-label name Define and export a BSS segment label
|
||||||
--bss-name seg Set the name of the BSS segment
|
--bss-name seg Set the name of the BSS segment
|
||||||
--cfg-path path Specify a config file search path
|
--cfg-path path Specify a config file search path
|
||||||
|
|||||||
@@ -699,6 +699,7 @@ static void Usage (void)
|
|||||||
" --asm-args options\t\tPass options to the assembler\n"
|
" --asm-args options\t\tPass options to the assembler\n"
|
||||||
" --asm-define sym[=v]\t\tDefine an assembler symbol\n"
|
" --asm-define sym[=v]\t\tDefine an assembler symbol\n"
|
||||||
" --asm-include-dir dir\t\tSet an assembler include directory\n"
|
" --asm-include-dir dir\t\tSet an assembler include directory\n"
|
||||||
|
" --bin-include-dir dir\t\tSet an assembker binary include directory\n"
|
||||||
" --bss-label name\t\tDefine and export a BSS segment label\n"
|
" --bss-label name\t\tDefine and export a BSS segment label\n"
|
||||||
" --bss-name seg\t\tSet the name of the BSS segment\n"
|
" --bss-name seg\t\tSet the name of the BSS segment\n"
|
||||||
" --cfg-path path\t\tSpecify a config file search path\n"
|
" --cfg-path path\t\tSpecify a config file search path\n"
|
||||||
@@ -782,6 +783,14 @@ static void OptAsmIncludeDir (const char* Opt attribute ((unused)), const char*
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static void OptBinIncludeDir (const char* Opt attribute ((unused)), const char* Arg)
|
||||||
|
/* Binary include directory (assembler) */
|
||||||
|
{
|
||||||
|
CmdAddArg2 (&CA65, "--bin-include-dir", Arg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void OptBssLabel (const char* Opt attribute ((unused)), const char* Arg)
|
static void OptBssLabel (const char* Opt attribute ((unused)), const char* Arg)
|
||||||
/* Handle the --bss-label option */
|
/* Handle the --bss-label option */
|
||||||
{
|
{
|
||||||
@@ -1213,6 +1222,7 @@ int main (int argc, char* argv [])
|
|||||||
{ "--asm-args", 1, OptAsmArgs },
|
{ "--asm-args", 1, OptAsmArgs },
|
||||||
{ "--asm-define", 1, OptAsmDefine },
|
{ "--asm-define", 1, OptAsmDefine },
|
||||||
{ "--asm-include-dir", 1, OptAsmIncludeDir },
|
{ "--asm-include-dir", 1, OptAsmIncludeDir },
|
||||||
|
{ "--bin-include-dir", 1, OptBinIncludeDir },
|
||||||
{ "--bss-label", 1, OptBssLabel },
|
{ "--bss-label", 1, OptBssLabel },
|
||||||
{ "--bss-name", 1, OptBssName },
|
{ "--bss-name", 1, OptBssName },
|
||||||
{ "--cfg-path", 1, OptCfgPath },
|
{ "--cfg-path", 1, OptCfgPath },
|
||||||
|
|||||||
Reference in New Issue
Block a user