mk: Add rule for emitting .c32 ELF files
authorMatt Fleming <matt.fleming@linux.intel.com>
Thu, 7 Apr 2011 20:00:31 +0000 (21:00 +0100)
committerMatt Fleming <matt.fleming@linux.intel.com>
Tue, 26 Apr 2011 08:52:58 +0000 (09:52 +0100)
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@linux.intel.com>
mk/elf.mk

index 530cd94..6efcf47 100644 (file)
--- 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 $@ $^