# The makefile can be invoked with\r
# HOST_ARCH = x86_64 or x64 for EM64T build\r
# HOST_ARCH = ia32 or IA32 for IA32 build\r
-# HOST_ARCH = ia64 or IA64 for IA64 build\r
# HOST_ARCH = Arm or ARM for ARM build\r
#\r
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
ifndef HOST_ARCH\r
#\r
\r
INCLUDE = $(TOOL_INCLUDE) -I $(MAKEROOT) -I $(MAKEROOT)/Include/Common -I $(MAKEROOT)/Include/ -I $(MAKEROOT)/Include/IndustryStandard -I $(MAKEROOT)/Common/ -I .. -I . $(ARCH_INCLUDE) \r
BUILD_CPPFLAGS = $(INCLUDE)\r
-BUILD_OPTFLAGS = -O2\r
+\r
+# keep EXTRA_OPTFLAGS last\r
+BUILD_OPTFLAGS = -O2 $(EXTRA_OPTFLAGS)\r
+\r
ifeq ($(DARWIN),Darwin)\r
# assume clang or clang compatible flags on OS X\r
BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -g\r
BUILD_CFLAGS += $(BUILD_OPTFLAGS)\r
BUILD_CXXFLAGS += $(BUILD_OPTFLAGS)\r
\r
+# keep EXTRA_LDFLAGS last\r
+BUILD_LFLAGS += $(EXTRA_LDFLAGS)\r
+\r
.PHONY: all\r
.PHONY: install\r
.PHONY: clean\r