Replaced builtin linker configs with ordinary .cfg files.

The benefits are:
- Independency of ld65 build from perl
- More transparent behaviour
This commit is contained in:
Oliver Schmidt
2013-04-09 23:09:46 +02:00
parent 4757642a12
commit 37c492b544
48 changed files with 52 additions and 424 deletions

View File

@@ -151,27 +151,27 @@ static const TargetEntry TargetMap[] = {
/* Table with target properties by target id */
static const TargetProperties PropertyTable[TGT_COUNT] = {
{ "none", CPU_6502, CTNone },
{ "module", CPU_6502, CTNone },
{ "atari", CPU_6502, CTAtari },
{ "vic20", CPU_6502, CTPET },
{ "c16", CPU_6502, CTPET },
{ "c64", CPU_6502, CTPET },
{ "c128", CPU_6502, CTPET },
{ "plus4", CPU_6502, CTPET },
{ "cbm510", CPU_6502, CTPET },
{ "cbm610", CPU_6502, CTPET },
{ "pet", CPU_6502, CTPET },
{ "bbc", CPU_6502, CTNone },
{ "apple2", CPU_6502, CTNone },
{ "apple2enh", CPU_65C02, CTNone },
{ "geos-cbm", CPU_6502, CTNone },
{ "geos-apple", CPU_65C02, CTNone },
{ "lunix", CPU_6502, CTNone },
{ "atmos", CPU_6502, CTNone },
{ "nes", CPU_6502, CTNone },
{ "supervision", CPU_65SC02, CTNone },
{ "lynx", CPU_65C02, CTNone },
{ "none", CPU_6502, BINFMT_BINARY, CTNone },
{ "module", CPU_6502, BINFMT_O65, CTNone },
{ "atari", CPU_6502, BINFMT_BINARY, CTAtari },
{ "vic20", CPU_6502, BINFMT_BINARY, CTPET },
{ "c16", CPU_6502, BINFMT_BINARY, CTPET },
{ "c64", CPU_6502, BINFMT_BINARY, CTPET },
{ "c128", CPU_6502, BINFMT_BINARY, CTPET },
{ "plus4", CPU_6502, BINFMT_BINARY, CTPET },
{ "cbm510", CPU_6502, BINFMT_BINARY, CTPET },
{ "cbm610", CPU_6502, BINFMT_BINARY, CTPET },
{ "pet", CPU_6502, BINFMT_BINARY, CTPET },
{ "bbc", CPU_6502, BINFMT_BINARY, CTNone },
{ "apple2", CPU_6502, BINFMT_BINARY, CTNone },
{ "apple2enh", CPU_65C02, BINFMT_BINARY, CTNone },
{ "geos-cbm", CPU_6502, BINFMT_BINARY, CTNone },
{ "geos-apple", CPU_65C02, BINFMT_BINARY, CTNone },
{ "lunix", CPU_6502, BINFMT_O65, CTNone },
{ "atmos", CPU_6502, BINFMT_BINARY, CTNone },
{ "nes", CPU_6502, BINFMT_BINARY, CTNone },
{ "supervision", CPU_65SC02, BINFMT_BINARY, CTNone },
{ "lynx", CPU_65C02, BINFMT_BINARY, CTNone },
};
/* Target system */

View File

@@ -81,14 +81,17 @@ typedef struct TargetProperties TargetProperties;
struct TargetProperties {
const char Name[12]; /* Name of the target */
cpu_t DefaultCPU; /* Default CPU for this target */
unsigned char BinFmt; /* Default binary format for this target */
const unsigned char* CharMap; /* Character translation table */
};
/* Target system */
extern target_t Target;
/* Table with default CPUs per target */
extern const cpu_t DefaultCPU[TGT_COUNT];
/* Types of available output formats */
#define BINFMT_DEFAULT 0 /* Default (binary) */
#define BINFMT_BINARY 1 /* Straight binary format */
#define BINFMT_O65 2 /* Andre Fachats o65 format */