aboutsummaryrefslogtreecommitdiffstats
path: root/menu/Makefile
diff options
context:
space:
mode:
authorMurali Krishnan Ganapathy <gmurali@cs.uchicago.edu>2005-12-16 16:25:49 -0600
committerH. Peter Anvin <hpa@zytor.com>2005-12-16 14:29:04 -0800
commita22c4aff0e5649fa22bbb4b7fda9433d7a8c44de (patch)
tree9f1c365dfc9b7174b31fbc7c769faf9bf8a57d0c /menu/Makefile
parent1afe52436215236ac88a7c523d779fb2cf4cbd2a (diff)
downloadsyslinux-elf-a22c4aff0e5649fa22bbb4b7fda9433d7a8c44de.tar.gz
syslinux-elf-a22c4aff0e5649fa22bbb4b7fda9433d7a8c44de.tar.xz
syslinux-elf-a22c4aff0e5649fa22bbb4b7fda9433d7a8c44de.zip
advanced menu patch
Python code to generate C code from ini-like file format and changes to libmenu to accomodate a one pass parser. Diff is against 3.20-pre3 - Murali
Diffstat (limited to 'menu/Makefile')
-rw-r--r--menu/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/menu/Makefile b/menu/Makefile
index ea753509..102b7afe 100644
--- a/menu/Makefile
+++ b/menu/Makefile
@@ -39,9 +39,16 @@ LIBS = libmenu/libmenu.a $(LUDIR)/libutil_com.a $(LDIR)/libcom32.a $(LIBGCC)
LIBMENU = libmenu/syslnx.o libmenu/com32io.o libmenu/tui.o \
libmenu/menu.o libmenu/passwords.o libmenu/des.o libmenu/help.o
-MENUS = $(patsubst %.c,%.c32,$(wildcard *.c))
+CMENUS = $(patsubst %.c,%.c32,$(wildcard *.c))
+IMENUS = $(patsubst %.menu,%.c32,$(wildcard *.menu))
-.SUFFIXES: .S .c .o .elf .c32
+MENUS = $(CMENUS) $(IMENUS)
+
+.SUFFIXES: .S .c .o .elf .c32 .menu
+
+.PRECIOUS: %.c
+%.c: %.menu
+ python menugen.py $< $@
.PRECIOUS: %.o
%.o: %.S