summaryrefslogtreecommitdiff
path: root/Board/EM/MeWrapper/MeSetup/NfcSupportDxe/NfcSupportDxe.mak
blob: 567adc0c2f221053f4b7360c0e104ea5feff3bf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#*************************************************************************
#*************************************************************************
#**                                                                     **
#**        (C)Copyright 1985-2014, American Megatrends, Inc.            **
#**                                                                     **
#**                       All Rights Reserved.                          **
#**                                                                     **
#**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093           **
#**                                                                     **
#**                       Phone: (770)-246-8600                         **
#**                                                                     **
#*************************************************************************
#*************************************************************************
#**********************************************************************
#
# $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/ME/MeWrapper/MeSetup/NfcSupportDxe/NfcSupportDxe.mak 1     11/02/14 9:43p Tristinchou $
#
# $Revision: 1 $
#
# $Date: 11/02/14 9:43p $
#
#**********************************************************************
# Revision History
# ----------------
# $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/ME/MeWrapper/MeSetup/NfcSupportDxe/NfcSupportDxe.mak $
# 
# 1     11/02/14 9:43p Tristinchou
# [TAG]  		EIP189985
# [Category]  	Improvement
# [Description]  	For ME 9.1.20.1035, add NFC related option in setup
# [Files]  		NfcSupportDxe.cif
# NfcSupportDxe.c
# NfcSupportDxe.h
# NfcSupportDxe.sdl
# NfcSupportDxe.dxs
# NfcSupportDxe.mak
# 
#
#**********************************************************************
#
#<AMI_FHDR_START>
#----------------------------------------------------------------------------
#
# Name:            NfcSupportDxe.mak
#
# Description:     Makfile for ME NFC Setup module.
#
#----------------------------------------------------------------------------
#<AMI_FHDR_END>
all : NfcSupportDxe

NfcSupportDxe : $(BUILD_DIR)\NfcSupportDxe.mak NfcSupportDxe_Bin

$(BUILD_DIR)\NfcSupportDxe.mak : $(NFC_SUPPORT_DXE_PATH)\$(@B).cif $(NFC_SUPPORT_DXE_PATH)\$(@B).mak $(BUILD_RULES)
    $(CIF2MAK) $(NFC_SUPPORT_DXE_PATH)\$(@B).cif $(CIF2MAK_DEFAULTS)

NfcSupportDxe_INCLUDES=\
    $(EdkIIGlueLib_INCLUDES)\
    $(EDK_INCLUDES)\
    $(ME_INCLUDES)\
    $(INTEL_PCH_INCLUDES)\

NfcSupportDxe_LIBS=\
    $(EDKPROTOCOLLIB)\
    $(EFIGUIDLIB)\
    $(EdkIIGlueBaseLib_LIB)\
!IF "$(x64_BUILD)"=="1"
    $(EdkIIGlueBaseLibX64_LIB)\
!ELSE
    $(EdkIIGlueBaseLibIA32_LIB)\
!ENDIF
    $(EDKFRAMEWORKGUIDLIB)\
    $(EDKFRAMEWORKPROTOCOLLIB)\
    $(EdkIIGlueBaseIoLibIntrinsic_LIB)\
    $(EdkIIGlueBaseMemoryLib_LIB)\
    $(EdkIIGlueDxeReportStatusCodeLib_LIB)\
    $(EdkIIGlueDxeServicesTableLib_LIB)\
    $(EdkIIGlueDxeDebugLibReportStatusCode_LIB)\
    $(EdkIIGlueUefiBootServicesTableLib_LIB)\
    $(EdkIIGlueUefiDevicePathLib_LIB)\
    $(EdkIIGlueBasePciLibPciExpress_LIB)\
    $(EdkIIGlueEdkDxeRuntimeDriverLib_LIB)\
    $(EdkIIGlueDxeHobLib_LIB)\
    $(MeLibDxe_LIB)\
    $(PchPlatformDxeLib_LIB)\

NfcSupportDxe_DEFINES=\
    $(MY_DEFINES)\
    /D"__EDKII_GLUE_MODULE_ENTRY_POINT__=NfcSupportDxeEntryPoint"\
    /D __EDKII_GLUE_BASE_MEMORY_LIB__ \
    /D __EDKII_GLUE_DXE_REPORT_STATUS_CODE_LIB__ \
    /D __EDKII_GLUE_DXE_DEBUG_LIB_REPORT_STATUS_CODE__ \
    /D __EDKII_GLUE_UEFI_BOOT_SERVICES_TABLE_LIB__\
    /D __EDKII_GLUE_BASE_IO_LIB_INTRINSIC__ \
    /D __EDKII_GLUE_DXE_SERVICES_TABLE_LIB__ \

NfcSupportDxe_Bin : $(NfcSupportDxe_LIBS)
    $(MAKE) /$(MAKEFLAGS)  $(EDKIIGLUE_DEFAULTS)\
    /f $(BUILD_DIR)\NfcSupportDxe.mak all\
    "MY_INCLUDES=$(NfcSupportDxe_INCLUDES)"\
    "MY_DEFINES=$(NfcSupportDxe_DEFINES)"\
    GUID=1E5ACFFE-ED4C-4BC0-AE51-511EFDA0522E \
    ENTRY_POINT=_ModuleEntryPoint \
    EDKIIModule=DXEDRIVER\
    TYPE=BS_DRIVER \
    DEPEX1=$(NFC_SUPPORT_DXE_PATH)\NfcSupportDxe.dxs \
    DEPEX1_TYPE=EFI_SECTION_DXE_DEPEX \
    COMPRESS=1\

!IF DEFINED(NFC_SUPPORT_DXE_SUPPORT) && "$(NFC_SUPPORT_DXE_SUPPORT)" == "1"
SetupData : $(BUILD_DIR)\NfcSupportSetupHook.obj
!ENDIF

NfcSupportSetupHook_CFLAGS=$(CFLAGS) \
	-I $(TSEBIN_DIR)\Inc \
	-I $(TSEBIN_DIR)\
	-I $(NFC_SUPPORT_DXE_PATH)\
	-I $(PROJECT_DIR)\Include

$(BUILD_DIR)\NfcSupportSetupHook.obj : $(NFC_SUPPORT_DXE_PATH)\NfcSupportSetupHook.c
	$(CC) $(NfcSupportSetupHook_CFLAGS) /Fo$(BUILD_DIR)\ $(NFC_SUPPORT_DXE_PATH)\NfcSupportSetupHook.c 
#*************************************************************************
#*************************************************************************
#**                                                                     **
#**        (C)Copyright 1985-2014, American Megatrends, Inc.            **
#**                                                                     **
#**                       All Rights Reserved.                          **
#**                                                                     **
#**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093           **
#**                                                                     **
#**                       Phone: (770)-246-8600                         **
#**                                                                     **
#*************************************************************************
#*************************************************************************