]> git.sur5r.net Git - cc65/blob - src/ld65/tgtcfg.c
Removed the - now unused - empty builtin configuration (was used for the ace
[cc65] / src / ld65 / tgtcfg.c
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                               tgtcfg.c                                    */
4 /*                                                                           */
5 /*               Target machine configurations the ld65 linker               */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 1998-2009, Ullrich von Bassewitz                                      */
10 /*                Roemerstrasse 52                                           */
11 /*                D-70794 Filderstadt                                        */
12 /* EMail:         uz@cc65.org                                                */
13 /*                                                                           */
14 /*                                                                           */
15 /* This software is provided 'as-is', without any expressed or implied       */
16 /* warranty.  In no event will the authors be held liable for any damages    */
17 /* arising from the use of this software.                                    */
18 /*                                                                           */
19 /* Permission is granted to anyone to use this software for any purpose,     */
20 /* including commercial applications, and to alter it and redistribute it    */
21 /* freely, subject to the following restrictions:                            */
22 /*                                                                           */
23 /* 1. The origin of this software must not be misrepresented; you must not   */
24 /*    claim that you wrote the original software. If you use this software   */
25 /*    in a product, an acknowledgment in the product documentation would be  */
26 /*    appreciated but is not required.                                       */
27 /* 2. Altered source versions must be plainly marked as such, and must not   */
28 /*    be misrepresented as being the original software.                      */
29 /* 3. This notice may not be removed or altered from any source              */
30 /*    distribution.                                                          */
31 /*                                                                           */
32 /*****************************************************************************/
33
34
35
36 /* common */
37 #include "check.h"
38
39 /* ld65 */
40 #include "binfmt.h"
41 #include "tgtcfg.h"
42
43
44
45 /*****************************************************************************/
46 /*                           Target configurations                           */
47 /*****************************************************************************/
48
49
50
51 /* Actual target configurations, converted into C strings by a perl script */
52 #include "apple2.inc"
53 #include "apple2enh.inc"
54 #include "atari.inc"
55 #include "atmos.inc"
56 #include "bbc.inc"
57 #include "c128.inc"
58 #include "c16.inc"
59 #include "c64.inc"
60 #include "cbm510.inc"
61 #include "cbm610.inc"
62 #include "geos.inc"
63 #include "lunix.inc"
64 #include "lynx.inc"
65 #include "module.inc"
66 #include "nes.inc"
67 #include "none.inc"
68 #include "pet.inc"
69 #include "plus4.inc"
70 #include "supervision.inc"
71 #include "vic20.inc"
72
73
74
75 /*****************************************************************************/
76 /*                                   Data                                    */
77 /*****************************************************************************/
78
79
80
81 /* Target configurations for all systems */
82 const TargetDesc Targets[TGT_COUNT] = {
83     {   BINFMT_BINARY,  CfgNone         },
84     {   BINFMT_O65,     CfgModule       },
85     {   BINFMT_BINARY,  CfgAtari        },
86     {   BINFMT_BINARY,  CfgVic20        },
87     {   BINFMT_BINARY,  CfgC16          },
88     {   BINFMT_BINARY,  CfgC64          },
89     {   BINFMT_BINARY,  CfgC128         },
90     {   BINFMT_BINARY,  CfgPlus4        },
91     {   BINFMT_BINARY,  CfgCBM510       },
92     {   BINFMT_BINARY,  CfgCBM610       },
93     {   BINFMT_BINARY,  CfgPET          },
94     {   BINFMT_BINARY,  CfgBBC          },
95     {   BINFMT_BINARY,  CfgApple2       },
96     {   BINFMT_BINARY,  CfgApple2Enh    },
97     {   BINFMT_BINARY,  CfgGeos         },
98     {   BINFMT_O65,     CfgLunix        },
99     {   BINFMT_BINARY,  CfgAtmos        },
100     {   BINFMT_BINARY,  CfgNES          },
101     {   BINFMT_BINARY,  CfgSupervision  },
102     {   BINFMT_BINARY,  CfgLynx         },
103 };
104
105
106
107 /*****************************************************************************/
108 /*                                   Code                                    */
109 /*****************************************************************************/
110
111
112
113 void DumpBuiltinConfig (FILE* F, target_t T)
114 /* Dump a builtin linker configuration */
115 {
116     /* Check the given parameter */
117     PRECONDITION (T > TGT_UNKNOWN && T < TGT_COUNT);
118
119     /* Dump the config */
120     fprintf (F, "%s\n", Targets[T].Cfg);
121 }
122
123
124
125