[syslinux] [PATCH 02/20] mk: Add rule for emitting .c32 ELF files

Matt Fleming matt at console-pimps.org
Sat Apr 16 07:17:30 PDT 2011


From: Matt Fleming <matt.fleming at linux.intel.com>

We currently open code the Makefile rules for outputting .c32 files,
so provide a pattern rule to make things easier.

There are no users of this rule yet, but we'll make use of it when we
switch all modules over to ELF.

Signed-off-by: Matt Fleming <matt.fleming at linux.intel.com>
---
 mk/elf.mk |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/mk/elf.mk b/mk/elf.mk
index 530cd94..6efcf47 100644
--- a/mk/elf.mk
+++ b/mk/elf.mk
@@ -11,7 +11,7 @@
 ## -----------------------------------------------------------------------
 
 ##
-## COM32 common configurables
+## ELF common configurables
 ##
 
 include $(MAKEDIR)/syslinux.mk
@@ -67,3 +67,5 @@ LNXLDFLAGS = -g
 %.lnx: %.lo $(LNXLIBS)
 	$(CC) $(LNXLDFLAGS) -o $@ $^
 
+%.c32: %.o
+	$(LD) $(LDFLAGS) -o $@ $^
-- 
1.7.4.2




More information about the Syslinux mailing list