]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/FCE/GNUmakefile
BaseTools/FCE: Add a tool FCE
[mirror_edk2.git] / BaseTools / Source / C / FCE / GNUmakefile
1 ## @file GNUmakefile
2 #
3 # GNU makefile for 'FCE' module build.
4 #
5 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
6 #
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
11 #
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.
14 #
15
16 ifndef ARCH
17 #
18 # If ARCH is not defined, then we use 'uname -m' to attempt
19 # try to figure out the appropriate ARCH.
20 #
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)))
24 ARCH=X64
25 endif
26 ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)
27 ARCH=IA32
28 endif
29 ifneq (,$(findstring aarch64,$(uname_m)))
30 ARCH=AARCH64
31 endif
32 ifneq (,$(findstring arm,$(uname_m)))
33 ARCH=ARM
34 endif
35 ifndef ARCH
36 $(info Could not detected ARCH from uname results)
37 $(error ARCH is not defined!)
38 endif
39 $(info Detected ARCH of $(ARCH) using uname.)
40 endif
41
42 export ARCH
43 export HOST_ARCH=$(ARCH)
44
45 MAKEROOT ?= $(EDK_TOOLS_PATH)/Source/C
46
47 APPNAME = FCE
48
49 OBJECTS = Fce.o Variable.o TimeBasedVariable.o MonotonicBasedVariable.o IfrParse.o Common.o BinaryParse.o BinaryCreate.o Expression.o
50
51 include $(MAKEROOT)/Makefiles/app.makefile
52
53 LIBS = -lCommon -lm
54
55