]> git.sur5r.net Git - cc65/commitdiff
Pass the target to the geos resource compiler.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 9 Feb 2012 21:48:45 +0000 (21:48 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 9 Feb 2012 21:48:45 +0000 (21:48 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5520 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cl65/main.c

index a3a137e09a9cafcdb199ec56df28ef0e54ff1c51..f3e7136dc6ca8eb535caff78add8901fa91a351d 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                          */
 /*                                                                          */
 /*                                                                          */
-/* (C) 1999-2011, Ullrich von Bassewitz                                      */
+/* (C) 1999-2012, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -594,6 +594,12 @@ static void CompileRes (const char* File)
     /* Remember the current assembler argument count */
     unsigned ArgCount = GRC.ArgCount;
 
+    /* Resource files need an geos-apple or geos-cbm target */
+    if (Target != TGT_GEOS_APPLE && Target != TGT_GEOS_CBM) {
+               Error ("Resource files need a geos-apple or geos-cbm, target");
+    }
+    CmdSetTarget (&GRC, Target);
+
     /* Add the file as argument for the resource compiler */
     CmdAddArg (&GRC, File);