]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/FCE/GNUmakefile
BaseTools: Fix various typos
[mirror_edk2.git] / BaseTools / Source / C / FCE / GNUmakefile
CommitLineData
3c59d946
SZ
1## @file GNUmakefile\r
2#\r
3# GNU makefile for 'FCE' module build.\r
4#\r
5# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
6#\r
7# This program and the accompanying materials\r
8# are licensed and made available under the terms and conditions of the BSD License\r
9# which accompanies this distribution. The full text of the license may be found at\r
10# http://opensource.org/licenses/bsd-license.php\r
11#\r
12# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14#\r
15\r
16ifndef ARCH\r
17 #\r
18 # If ARCH is not defined, then we use 'uname -m' to attempt\r
19 # try to figure out the appropriate ARCH.\r
20 #\r
21 uname_m = $(shell uname -m)\r
22 $(info Attempting to detect ARCH from 'uname -m': $(uname_m))\r
23 ifneq (,$(strip $(filter $(uname_m), x86_64 amd64)))\r
24 ARCH=X64\r
25 endif\r
26 ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)\r
27 ARCH=IA32\r
28 endif\r
29 ifneq (,$(findstring aarch64,$(uname_m)))\r
30 ARCH=AARCH64\r
31 endif\r
32 ifneq (,$(findstring arm,$(uname_m)))\r
33 ARCH=ARM\r
34 endif\r
35 ifndef ARCH\r
36 $(info Could not detected ARCH from uname results)\r
37 $(error ARCH is not defined!)\r
38 endif\r
39 $(info Detected ARCH of $(ARCH) using uname.)\r
40endif\r
41\r
42export ARCH\r
43export HOST_ARCH=$(ARCH)\r
44\r
d031fc07 45MAKEROOT ?= ..\r
3c59d946
SZ
46\r
47APPNAME = FCE\r
48\r
49OBJECTS = Fce.o Variable.o TimeBasedVariable.o MonotonicBasedVariable.o IfrParse.o Common.o BinaryParse.o BinaryCreate.o Expression.o\r
50\r
51include $(MAKEROOT)/Makefiles/app.makefile\r
52\r
53LIBS = -lCommon -lm\r
54\r
55\r