]> git.sur5r.net Git - cc65/commitdiff
Add the 'module' target
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 25 Apr 2002 05:21:03 +0000 (05:21 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 25 Apr 2002 05:21:03 +0000 (05:21 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1264 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/main.c
src/cc65/main.c

index 74af2a0a658ed36123146b655406ce795b5e8599..6aa28f188b213e5a3e3472d62fbe4ab5da9f704c 100644 (file)
@@ -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");
     }
 }
 
index 5b47bac99efade718cf80f1c42c287d34650ec5f..1974aed3d08aee1d464aaf8681adfcb4ac4953b4 100644 (file)
@@ -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;