From 74b3f540232f051ef1f463570473a6722f1ab5e7 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Thu, 7 Apr 2011 21:00:31 +0100 Subject: [PATCH] mk: Add rule for emitting .c32 ELF files 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 --- mk/elf.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 $@ $^ -- 2.7.4