From 6c181c367cea186c748be819d31d98e4b0aaab17 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Wed, 6 Jul 2011 14:36:20 +0100 Subject: Makefile: Add $(ARCH) macro to CFLAGS Pass -D$(ARCH) to $(CFLAGS) so that we can make architecture-specific decisions about which code fragments to include. Signed-off-by: Matt Fleming --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 47985dc..7a0bda6 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ LDSCRIPT=$(LIBDIR)/gnuefi/elf_$(ARCH)_efi.lds CFLAGS=-I. -I/usr/include/efi -I/usr/include/efi/$(ARCH) \ -DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \ - -Wall -Ifs/ + -Wall -Ifs/ -D$(ARCH) LDFLAGS=-T $(LDSCRIPT) -Bsymbolic -shared -nostdlib -L$(LIBDIR) $(CRT0) IMAGE=efilinux.efi -- cgit 1.2.3-korg