From 0ac54f6f22cfd2c1d944cb66b068cff4a36f4a30 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 25 Apr 2002 05:21:03 +0000 Subject: [PATCH] Add the 'module' target git-svn-id: svn://svn.cc65.org/cc65/trunk@1264 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/main.c | 6 ++++-- src/cc65/main.c | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ca65/main.c b/src/ca65/main.c index 74af2a0a6..6aa28f188 100644 --- a/src/ca65/main.c +++ b/src/ca65/main.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 1998-2001 Ullrich von Bassewitz */ +/* (C) 1998-2002 Ullrich von Bassewitz */ /* Wacholderweg 14 */ /* D-70597 Stuttgart */ /* EMail: uz@musoftware.de */ @@ -298,7 +298,9 @@ static void OptTarget (const char* Opt attribute ((unused)), const char* Arg) /* Map the target name to a target id */ Target = FindTarget (Arg); if (Target == TGT_UNKNOWN) { - AbEnd ("Invalid target name: `%s'", Arg); + AbEnd ("Invalid target name: `%s'", Arg); + } else if (Target == TGT_MODULE) { + AbEnd ("Cannot use `module' as a target for the assembler"); } } diff --git a/src/cc65/main.c b/src/cc65/main.c index 5b47bac99..1974aed3d 100644 --- a/src/cc65/main.c +++ b/src/cc65/main.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2000-2001 Ullrich von Bassewitz */ +/* (C) 2000-2002 Ullrich von Bassewitz */ /* Wacholderweg 14 */ /* D-70597 Stuttgart */ /* EMail: uz@cc65.org */ @@ -140,6 +140,10 @@ static void SetSys (const char* Sys) case TGT_NONE: break; + case TGT_MODULE: + AbEnd ("Cannot use `module' as a target for the compiler"); + break; + case TGT_ATARI: DefineNumericMacro ("__ATARI__", 1); break; @@ -705,7 +709,7 @@ int main (int argc, char* argv[]) break; case 's': InlineStdFuncs = 1; - break; + break; } } break; -- 2.39.5