M32 := $(call gcc_ok,-m32,)
-CC = gcc $(M32)
+CC = gcc
LD = ld -m elf_i386
AR = ar
NASM = nasm
RANLIB = ranlib
-CFLAGS = -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__
-LNXCFLAGS = -W -Wall -march=i386 -Os -g -I../libutil/include
-LNXSFLAGS = -march=i386
+CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__
+LNXCFLAGS = -W -Wall -O -g -I../libutil/include
+LNXSFLAGS = -g
LNXLDFLAGS = -g
SFLAGS = -D__COM32__ -march=i386
LDFLAGS = -T ../lib/com32.ld
#ident "$Id$"
/* ----------------------------------------------------------------------- *
*
- * Copyright 2004 H. Peter Anvin - All Rights Reserved
+ * Copyright 2004-2005 H. Peter Anvin - All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
int main(int argc, char *argv[])
{
- const char *cmdline;
+ const char *cmdline = NULL;
+ int err = 0;
(void)argc;
parse_config(argv[1]);
- cmdline = run_menu();
+ if ( !nentries ) {
+ fputs("No LABEL entries found in configuration file!\n", stdout);
+ err = 1;
+ } else {
+ cmdline = run_menu();
+ }
+
printf("\033[?25h\033[%d;1H\033[0m", END_ROW);
if ( cmdline )
execute(cmdline);
else
- return 0;
+ return err;
}