2010-03-01 00:39:39 +01:00
|
|
|
## @file
|
2014-08-28 15:53:34 +02:00
|
|
|
# Makefile
|
2010-03-01 00:39:39 +01:00
|
|
|
#
|
2014-08-28 15:53:34 +02:00
|
|
|
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
2010-05-18 07:04:32 +02:00
|
|
|
# This program and the accompanying materials
|
2010-03-01 00:39:39 +01:00
|
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
|
|
#
|
|
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
2014-01-27 06:23:15 +01:00
|
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2014-08-28 15:53:34 +02:00
|
|
|
#
|
2014-01-27 06:23:15 +01:00
|
|
|
|
|
|
|
!IFNDEF EDK_TOOLS_PATH
|
|
|
|
!ERROR "Please set your EDK_TOOLS_PATH!"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF BASE_TOOLS_PATH
|
|
|
|
!ERROR "BASE_TOOLS_PATH is not set! Please run build_tools.bat at first!"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF ARCH
|
|
|
|
ARCH = IA32
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
MAKE = nmake -nologo
|
|
|
|
|
2014-09-23 03:32:56 +02:00
|
|
|
# DOS del command doesn't support ":\\" in the file path, such as j:\\BaseTools. Convert ":\\" to ":\"
|
|
|
|
BASE_TOOLS_PATH = $(BASE_TOOLS_PATH::\\=:\)
|
|
|
|
EDK_TOOLS_PATH = $(EDK_TOOLS_PATH::\\=:\)
|
|
|
|
|
2014-01-27 06:23:15 +01:00
|
|
|
SOURCE_PATH = $(BASE_TOOLS_PATH)\Source\C
|
|
|
|
BIN_PATH = $(BASE_TOOLS_PATH)\Bin
|
|
|
|
LIB_PATH = $(BASE_TOOLS_PATH)\Lib
|
|
|
|
|
|
|
|
SYS_BIN_PATH=$(EDK_TOOLS_PATH)\Bin
|
|
|
|
SYS_LIB_PATH=$(EDK_TOOLS_PATH)\Lib
|
|
|
|
|
|
|
|
!IF "$(ARCH)"=="IA32"
|
|
|
|
ARCH_INCLUDE = $(SOURCE_PATH)\Include\Ia32
|
|
|
|
BIN_PATH = $(BASE_TOOLS_PATH)\Bin\Win32
|
|
|
|
LIB_PATH = $(BASE_TOOLS_PATH)\Lib\Win32
|
|
|
|
SYS_BIN_PATH = $(EDK_TOOLS_PATH)\Bin\Win32
|
|
|
|
SYS_LIB_PATH = $(EDK_TOOLS_PATH)\Lib\Win32
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IF "$(ARCH)"=="X64"
|
|
|
|
ARCH_INCLUDE = $(SOURCE_PATH)\Include\X64
|
|
|
|
BIN_PATH = $(BASE_TOOLS_PATH)\Bin\Win64
|
|
|
|
LIB_PATH = $(BASE_TOOLS_PATH)\Lib\Win64
|
|
|
|
SYS_BIN_PATH = $(EDK_TOOLS_PATH)\Bin\Win64
|
|
|
|
SYS_LIB_PATH = $(EDK_TOOLS_PATH)\Lib\Win64
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
CC = cl.exe
|
|
|
|
CXX = cl.exe
|
|
|
|
AS = ml.exe
|
|
|
|
AR = lib.exe
|
|
|
|
LD = link.exe
|
|
|
|
LINKER = $(LD)
|
|
|
|
|
|
|
|
INC = -I . -I $(SOURCE_PATH)\Include -I $(ARCH_INCLUDE) -I $(SOURCE_PATH)\Common $(INC)
|
|
|
|
|
2016-10-21 07:25:19 +02:00
|
|
|
CFLAGS = $(CFLAGS) /nologo /Zi /c /O2 /MT /W4 /WX /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|
|
|
|
CPPFLAGS = $(CPPFLAGS) /EHsc /nologo /Zi /c /O2 /MT /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
|
2014-01-27 06:23:15 +01:00
|
|
|
|