" --debug-info\t\tAdd debug info\n"
" --help\t\tHelp (this text)\n"
" --include-dir dir\tSet a compiler include directory path\n"
+ " --mapfile name\tCreate a map file\n"
" --target sys\t\tSet the target system\n"
" --version\t\tPrint the version number\n"
" --verbose\t\tVerbose mode\n",
static void OptAsmIncludeDir (const char* Opt, const char* Arg)
/* Include directory (assembler) */
{
- if (Arg == 0) {
- NeedArg (Opt);
- }
CmdAddArg (&CA65, "-I");
CmdAddArg (&CA65, Arg);
}
static void OptIncludeDir (const char* Opt, const char* Arg)
/* Include directory (compiler) */
{
- if (Arg == 0) {
- NeedArg (Opt);
- }
CmdAddArg (&CC65, "-I");
CmdAddArg (&CC65, Arg);
}
+static void OptMapFile (const char* Opt, const char* Arg)
+/* Create a map file */
+{
+ /* Create a map file (linker) */
+ CmdAddArg (&LD65, "-m");
+ CmdAddArg (&LD65, Arg);
+}
+
+
+
static void OptTarget (const char* Opt, const char* Arg)
/* Set the target system */
{
- if (Arg == 0) {
- NeedArg (Opt);
- }
Target = FindTarget (Arg);
if (Target == TGT_UNKNOWN) {
Error ("No such target system: `%s'", Arg);
{ "--debug-info", 0, OptDebugInfo },
{ "--help", 0, OptHelp },
{ "--include-dir", 1, OptIncludeDir },
+ { "--mapfile", 1, OptMapFile },
{ "--target", 1, OptTarget },
{ "--verbose", 0, OptVerbose },
{ "--version", 0, OptVersion },
case 'm':
/* Create a map file (linker) */
- CmdAddArg (&LD65, "-m");
- CmdAddArg (&LD65, GetArg (&I, 2));
+ OptMapFile (Arg, GetArg (&I, 2));
break;
case 'o':