Move complex menu to com32/cmenu; clean up the Makefiles
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 2 Mar 2009 18:51:25 +0000 (10:51 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 2 Mar 2009 18:51:25 +0000 (10:51 -0800)
Move the complex menu system into the com32 directory so it can be
sequenced properly with respect to hdt (it needs to be built after
com32/lib but before com32/hdt).  While we're at it, clean up the
Makefiles somewhat.

32 files changed:
com32/Makefile
com32/cmenu/CHANGES [moved from menu/CHANGES with 100% similarity]
com32/cmenu/HISTORY [moved from menu/HISTORY with 100% similarity]
com32/cmenu/MANUAL [moved from menu/MANUAL with 100% similarity]
com32/cmenu/MENU_FORMAT [moved from menu/MENU_FORMAT with 100% similarity]
com32/cmenu/Makefile [moved from menu/Makefile with 92% similarity]
com32/cmenu/README [moved from menu/README with 100% similarity]
com32/cmenu/TODO [moved from menu/TODO with 100% similarity]
com32/cmenu/adv_menu.tpl [moved from menu/adv_menu.tpl with 100% similarity]
com32/cmenu/complex.c [moved from menu/complex.c with 100% similarity]
com32/cmenu/display.c [moved from menu/display.c with 100% similarity]
com32/cmenu/libmenu/com32io.c [moved from menu/libmenu/com32io.c with 100% similarity]
com32/cmenu/libmenu/com32io.h [moved from menu/libmenu/com32io.h with 100% similarity]
com32/cmenu/libmenu/des.c [moved from menu/libmenu/des.c with 100% similarity]
com32/cmenu/libmenu/des.h [moved from menu/libmenu/des.h with 100% similarity]
com32/cmenu/libmenu/help.c [moved from menu/libmenu/help.c with 100% similarity]
com32/cmenu/libmenu/help.h [moved from menu/libmenu/help.h with 100% similarity]
com32/cmenu/libmenu/menu.c [moved from menu/libmenu/menu.c with 100% similarity]
com32/cmenu/libmenu/menu.h [moved from menu/libmenu/menu.h with 100% similarity]
com32/cmenu/libmenu/passwords.c [moved from menu/libmenu/passwords.c with 100% similarity]
com32/cmenu/libmenu/passwords.h [moved from menu/libmenu/passwords.h with 100% similarity]
com32/cmenu/libmenu/scancodes.h [moved from menu/libmenu/scancodes.h with 100% similarity]
com32/cmenu/libmenu/syslnx.c [moved from menu/libmenu/syslnx.c with 100% similarity]
com32/cmenu/libmenu/syslnx.h [moved from menu/libmenu/syslnx.h with 100% similarity]
com32/cmenu/libmenu/tui.c [moved from menu/libmenu/tui.c with 100% similarity]
com32/cmenu/libmenu/tui.h [moved from menu/libmenu/tui.h with 100% similarity]
com32/cmenu/menugen.py [moved from menu/menugen.py with 100% similarity]
com32/cmenu/password [moved from menu/password with 100% similarity]
com32/cmenu/simple.c [moved from menu/simple.c with 100% similarity]
com32/cmenu/test.menu [moved from menu/test.menu with 100% similarity]
com32/cmenu/test2.menu [moved from menu/test2.menu with 100% similarity]
com32/hdt/Makefile

index 2897e08..9fbfb67 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = lib libutil modules menu samples rosh hdt
+SUBDIRS = lib libutil modules menu samples rosh cmenu hdt
 
 all tidy dist clean spotless install:
        set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
similarity index 100%
rename from menu/CHANGES
rename to com32/cmenu/CHANGES
similarity index 100%
rename from menu/HISTORY
rename to com32/cmenu/HISTORY
similarity index 100%
rename from menu/MANUAL
rename to com32/cmenu/MANUAL
similarity index 100%
rename from menu/MENU_FORMAT
rename to com32/cmenu/MENU_FORMAT
similarity index 92%
rename from menu/Makefile
rename to com32/cmenu/Makefile
index 3c58531..e8627a9 100644 (file)
@@ -1,6 +1,6 @@
 ## -----------------------------------------------------------------------
 ##
-##   Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
+##   Copyright 2001-2009 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
 ## -----------------------------------------------------------------------
 
 ##
-## samples for syslinux users
+## Makefile for the complex menu system
 ##
 
 # This must be defined before MCONFIG is included
 LIBS   = libmenu/libmenu.a
 
-topdir = ..
-include $(topdir)/com32/MCONFIG
+topdir = ../..
+include ../MCONFIG
 
 CFLAGS   += -I./libmenu
 
similarity index 100%
rename from menu/README
rename to com32/cmenu/README
similarity index 100%
rename from menu/TODO
rename to com32/cmenu/TODO
similarity index 100%
rename from menu/adv_menu.tpl
rename to com32/cmenu/adv_menu.tpl
similarity index 100%
rename from menu/complex.c
rename to com32/cmenu/complex.c
similarity index 100%
rename from menu/display.c
rename to com32/cmenu/display.c
similarity index 100%
rename from menu/libmenu/des.c
rename to com32/cmenu/libmenu/des.c
similarity index 100%
rename from menu/libmenu/des.h
rename to com32/cmenu/libmenu/des.h
similarity index 100%
rename from menu/libmenu/tui.c
rename to com32/cmenu/libmenu/tui.c
similarity index 100%
rename from menu/libmenu/tui.h
rename to com32/cmenu/libmenu/tui.h
similarity index 100%
rename from menu/menugen.py
rename to com32/cmenu/menugen.py
similarity index 100%
rename from menu/password
rename to com32/cmenu/password
similarity index 100%
rename from menu/simple.c
rename to com32/cmenu/simple.c
similarity index 100%
rename from menu/test.menu
rename to com32/cmenu/test.menu
similarity index 100%
rename from menu/test2.menu
rename to com32/cmenu/test2.menu
index a8f87c9..a9861bb 100644 (file)
 topdir = ../..
 include $(topdir)/MCONFIG.embedded
 
-INCLUDES   = -I$(com32)/include
+INCLUDES   = -I$(com32)/include -I$(com32)/cmenu/libmenu
 
 LIBGCC    := $(shell $(CC) $(GCCOPT) --print-libgcc)
 LIB       = liboldcom32.a
 
-
-com32 = $(topdir)/com32
-C_LIBS    = $(com32)/libutil/libutil_com.a $(com32)/lib/libcom32.a $(LIBGCC)
-LDFLAGS    = -m elf_i386 -T $(com32)/lib/com32.ld
+com32  = $(topdir)/com32
+LIBS   = $(LIB) $(com32)/cmenu/libmenu/libmenu.a \
+       $(com32)/libutil/libutil_com.a $(com32)/lib/libcom32.a $(LIBGCC)
+LDFLAGS        = -m elf_i386 -T $(com32)/lib/com32.ld
 
 all:  hdt.c32 $(LIB)
 
@@ -35,17 +35,20 @@ all:  hdt.c32 $(LIB)
 
 .PRECIOUS: %.o
 %.o: %.c
-       $(CC) $(CFLAGS) -std=gnu99  -D__COM32__ -I$(topdir)/menu/libmenu/ -c -o $@ $<
+       $(CC) $(CFLAGS) -std=gnu99  -D__COM32__ -c -o $@ $<
 
 .PRECIOUS: %.elf
 %.elf: c32entry.o %.o $(LIB)
        $(LD) -Ttext 0x101000 -e _start -o $@ $^
 
 hdt.elf: hdt.o hdt-ata.o hdt-menu.o hdt-menu-pci.o hdt-menu-kernel.o \
-        hdt-menu-disk.o hdt-menu-dmi.o hdt-menu-processor.o hdt-menu-syslinux.o hdt-menu-about.o \
-        hdt-cli.o hdt-common.o hdt-cli-pci.o hdt-cli-dmi.o hdt-cli-cpu.o hdt-cli-pxe.o hdt-cli-kernel.o\
-        hdt-menu-pxe.o\
-       $(com32)/modules/cpuid.o $(com32)/modules/dmi.o $(topdir)/menu/libmenu/libmenu.a $(LIB) $(C_LIBS)
+       hdt-menu-disk.o hdt-menu-dmi.o hdt-menu-processor.o \
+       hdt-menu-syslinux.o hdt-menu-about.o \
+       hdt-cli.o hdt-common.o hdt-cli-pci.o hdt-cli-dmi.o \
+       hdt-cli-cpu.o hdt-cli-pxe.o hdt-cli-kernel.o \
+       hdt-menu-pxe.o \
+       $(com32)/modules/cpuid.o $(com32)/modules/dmi.o \
+       $(LIBS)
        $(LD) $(LDFLAGS) -o $@ $^
 
 %.c32: %.elf