+static void Usage (void) {
+
+ printf ("Usage: %s [options] file\n"
+ "Short options:\n"
+ " -V\t\t\tPrint the version number\n"
+ " -h\t\t\tHelp (this text)\n"
+ " -o name\t\tName the C output file\n"
+ " -s name\t\tName the asm output file\n"
+ " -t sys\t\tSet the target system\n"
+ "\n"
+ "Long options:\n"
+ " --help\t\tHelp (this text)\n"
+ " --target sys\t\tSet the target system\n"
+ " --version\t\tPrint the version number\n",
+ ProgName);
+}
+
+
+static void OptHelp (const char* Opt attribute ((unused)),
+ const char* Arg attribute ((unused)))
+/* Print usage information and exit */
+{
+ Usage ();
+ exit (EXIT_SUCCESS);
+}
+
+
+
+static void OptTarget (const char* Opt attribute ((unused)), const char* Arg)
+/* Set the target system */
+{
+ switch (FindTarget(Arg)) {
+
+ case TGT_GEOS_CBM:
+ apple = 0;
+ break;
+
+ case TGT_GEOS_APPLE:
+ apple = 1;
+ break;
+
+ case TGT_UNKNOWN:
+ AbEnd ("Unknown target system `%s'", Arg);
+ break;
+
+ default:
+ /* Target is known but unsupported */
+ AbEnd ("Unsupported target system `%s'", Arg);
+ break;
+
+ }
+}
+