1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00

New option --asm-define

git-svn-id: svn://svn.cc65.org/cc65/trunk@2229 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-07-16 05:59:29 +00:00
parent 76d26ae0a9
commit a01d673415

View File

@ -620,6 +620,7 @@ static void Usage (void)
"Long options:\n" "Long options:\n"
" --add-source\t\tInclude source as comment\n" " --add-source\t\tInclude source as comment\n"
" --ansi\t\tStrict ANSI mode\n" " --ansi\t\tStrict ANSI mode\n"
" --asm-define sym[=v]\tDefine an assembler symbol\n"
" --asm-include-dir dir\tSet an assembler include directory\n" " --asm-include-dir dir\tSet an assembler include directory\n"
" --bss-label name\tDefine and export a BSS segment label\n" " --bss-label name\tDefine and export a BSS segment label\n"
" --bss-name seg\tSet the name of the BSS segment\n" " --bss-name seg\tSet the name of the BSS segment\n"
@ -680,6 +681,14 @@ static void OptAnsi (const char* Opt attribute ((unused)),
static void OptAsmDefine (const char* Opt attribute ((unused)), const char* Arg)
/* Define an assembler symbol (assembler) */
{
CmdAddArg2 (&CA65, "-D", Arg);
}
static void OptAsmIncludeDir (const char* Opt attribute ((unused)), const char* Arg) static void OptAsmIncludeDir (const char* Opt attribute ((unused)), const char* Arg)
/* Include directory (assembler) */ /* Include directory (assembler) */
{ {
@ -1017,6 +1026,7 @@ int main (int argc, char* argv [])
static const LongOpt OptTab[] = { static const LongOpt OptTab[] = {
{ "--add-source", 0, OptAddSource }, { "--add-source", 0, OptAddSource },
{ "--ansi", 0, OptAnsi }, { "--ansi", 0, OptAnsi },
{ "--asm-define", 1, OptAsmDefine },
{ "--asm-include-dir", 1, OptAsmIncludeDir }, { "--asm-include-dir", 1, OptAsmIncludeDir },
{ "--bss-label", 1, OptBssLabel }, { "--bss-label", 1, OptBssLabel },
{ "--bss-name", 1, OptBssName }, { "--bss-name", 1, OptBssName },