]> git.sur5r.net Git - cc65/blobdiff - src/ld65/tgtcfg.c
No copyright message here.
[cc65] / src / ld65 / tgtcfg.c
index bc74e2544fc777fb4abe1c1e3db9678850fb6dfb..2601c20e45668404460c5b76f618b44f2b9b338e 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 
+/* common */
+#include "check.h"
+
+/* ld65 */
 #include "binfmt.h"
 #include "tgtcfg.h"
 
 
 
 
-/* An empty config */
-static const char CfgEmpty[] = "";
-
 /* Actual target configurations, converted into C strings by a perl script */
 #include "apple2.inc"
+#include "apple2enh.inc"
 #include "atari.inc"
 #include "atmos.inc"
 #include "bbc.inc"
 #include "c128.inc"
+#include "c16.inc"
 #include "c64.inc"
 #include "cbm510.inc"
 #include "cbm610.inc"
-#include "geos.inc"
+#include "geos-apple.inc"
+#include "geos-cbm.inc"
 #include "lunix.inc"
+#include "lynx.inc"
 #include "module.inc"
+#include "nes.inc"
 #include "none.inc"
 #include "pet.inc"
 #include "plus4.inc"
+#include "supervision.inc"
 #include "vic20.inc"
 
 
@@ -73,24 +80,48 @@ static const char CfgEmpty[] = "";
 
 
 /* Target configurations for all systems */
-const TargetDesc Targets [TGT_COUNT] = {
+const TargetDesc Targets[TGT_COUNT] = {
     {          BINFMT_BINARY,  CfgNone         },
     {          BINFMT_O65,     CfgModule       },
     {          BINFMT_BINARY,  CfgAtari        },
     {  BINFMT_BINARY,  CfgVic20        },
+    {   BINFMT_BINARY,  CfgC16          },
     {          BINFMT_BINARY,  CfgC64          },
     {          BINFMT_BINARY,  CfgC128         },
-    {          BINFMT_BINARY,  CfgEmpty        },      /* Ace */
     {          BINFMT_BINARY,  CfgPlus4        },
     {          BINFMT_BINARY,  CfgCBM510       },
     {          BINFMT_BINARY,  CfgCBM610       },
     {          BINFMT_BINARY,  CfgPET          },
     {          BINFMT_BINARY,  CfgBBC          },
     {   BINFMT_BINARY, CfgApple2       },
-    {   BINFMT_BINARY,  CfgGeos         },
+    {   BINFMT_BINARY,  CfgApple2Enh    },
+    {   BINFMT_BINARY,  CfgGeosCBM      },
+    {   BINFMT_BINARY,  CfgGeosApple    },
     {   BINFMT_O65,     CfgLunix        },
     {          BINFMT_BINARY,  CfgAtmos        },
+    {          BINFMT_BINARY,  CfgNES          },
+    {          BINFMT_BINARY,  CfgSupervision  },
+    {          BINFMT_BINARY,  CfgLynx         },
 };
 
 
 
+/*****************************************************************************/
+/*                                          Code                                    */
+/*****************************************************************************/
+
+
+
+void DumpBuiltinConfig (FILE* F, target_t T)
+/* Dump a builtin linker configuration */
+{
+    /* Check the given parameter */
+    PRECONDITION (T > TGT_UNKNOWN && T < TGT_COUNT);
+
+    /* Dump the config */
+    fprintf (F, "%s\n", Targets[T].Cfg);
+}
+
+
+
+