3 # GNU makefile for 'FCE' module build.
5 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
7 # This program and the accompanying materials
8 # are licensed and made available under the terms and conditions of the BSD License
9 # which accompanies this distribution. The full text of the license may be found at
10 # http://opensource.org/licenses/bsd-license.php
12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 # If ARCH is not defined, then we use 'uname -m' to attempt
19 # try to figure out the appropriate ARCH.
21 uname_m = $(shell uname -m)
22 $(info Attempting to detect ARCH from 'uname -m': $(uname_m))
23 ifneq (,$(strip $(filter $(uname_m), x86_64 amd64)))
26 ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)
29 ifneq (,$(findstring aarch64,$(uname_m)))
32 ifneq (,$(findstring arm,$(uname_m)))
36 $(info Could not detected ARCH from uname results)
37 $(error ARCH is not defined!)
39 $(info Detected ARCH of $(ARCH) using uname.)
43 export HOST_ARCH=$(ARCH)
45 MAKEROOT ?= $(EDK_TOOLS_PATH)/Source/C
49 OBJECTS = Fce.o Variable.o TimeBasedVariable.o MonotonicBasedVariable.o IfrParse.o Common.o BinaryParse.o BinaryCreate.o Expression.o
51 include $(MAKEROOT)/Makefiles/app.makefile