Added TGT_GEOS_CBM and TGT_GEOS_APPLE.

Added new targets to the geos resource compiler already prepared by Oliver.
Changed the target module to allow target name aliases and consolidated target
properties into a TargetProperties structure kept in that module. Numeric
targets are now gone.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5338 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-12-28 13:33:38 +00:00
parent 5be3aeab7f
commit 4bdcad03a0
7 changed files with 203 additions and 176 deletions

View File

@@ -306,7 +306,7 @@ static void CmdSetOutput (CmdDesc* Cmd, const char* File)
static void CmdSetTarget (CmdDesc* Cmd, target_t Target)
/* Set the output file in a command desc */
{
CmdAddArg2 (Cmd, "-t", TargetNames[Target]);
CmdAddArg2 (Cmd, "-t", GetTargetName (Target));
}
@@ -335,7 +335,7 @@ static void SetTargetFiles (void)
if (Target != TGT_NONE) {
/* Get a pointer to the system name and its length */
const char* TargetName = TargetNames [Target];
const char* TargetName = GetTargetName (Target);
unsigned TargetNameLen = strlen (TargetName);
/* Set the library file */
@@ -1021,11 +1021,11 @@ static void OptListTargets (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
/* List all targets */
{
unsigned I;
target_t T;
/* List the targets */
for (I = TGT_NONE; I < TGT_COUNT; ++I) {
printf ("%s\n", TargetNames[I]);
for (T = TGT_NONE; T < TGT_COUNT; ++T) {
printf ("%s\n", GetTargetName (T));
}
/* Terminate */