blob: b781d725b254da6c7c94557ed74fbbdc84b61cf0 (
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
|
#*************************************************************************
#*************************************************************************
#** **
#** (C)Copyright 1985-2011, American Megatrends, Inc. **
#** **
#** All Rights Reserved. **
#** **
#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
#** **
#** Phone: (770)-246-8600 **
#** **
#*************************************************************************
#*************************************************************************
#*************************************************************************
# $Header: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Refcode/PchSpiCommonLib/PchSpiCommonLib.mak 1 2/08/12 9:22a Yurenlai $
#
# $Revision: 1 $
#
# $Date: 2/08/12 9:22a $
#*************************************************************************
# Revision History
# ----------------
# $Log: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Refcode/PchSpiCommonLib/PchSpiCommonLib.mak $
#
# 1 2/08/12 9:22a Yurenlai
# Intel Lynx Point/SB eChipset initially releases.
#
#*************************************************************************
all : PchSpiCommonLib
PchSpiCommonLib : PchSpiCommonDxeLib PchSpiCommonSmmLib PchSpiCommonPeiLib
$(PchSpiCommonSmmLib_LIB) : PchSpiCommonSmmLib
$(PchSpiCommonDxeLib_LIB) : PchSpiCommonDxeLib
$(PchSpiCommonPeiLib_LIB) : PchSpiCommonPeiLib
PchSpiCommonSmmLib : $(BUILD_DIR)\PchSpiCommonLib.mak PchSpiCommonLibSmmBin
PchSpiCommonDxeLib : $(BUILD_DIR)\PchSpiCommonLib.mak PchSpiCommonLibDxeBin
PchSpiCommonPeiLib : $(BUILD_DIR)\PchSpiCommonLib.mak PchSpiCommonLibPeiBin
$(BUILD_DIR)\PchSpiCommonLib.mak : $(PchSpiCommonLib_DIR)\$(@B).cif $(PchSpiCommonLib_DIR)\$(@B).mak $(BUILD_RULES)
$(CIF2MAK) $(PchSpiCommonLib_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS)
PchSpiCommonLib_INCLUDES=\
$(EDK_INCLUDES)\
$(EdkIIGlueLib_INCLUDES)\
$(INTEL_PCH_INCLUDES)\
PchSpiCommonLibSmm_INCLUDES=\
$(PchSpiCommonLib_INCLUDES) $(PCH_SPI_INCLUDES)
PchSpiCommonLibDxe_INCLUDES=\
$(PchSpiCommonLib_INCLUDES) $(PCH_SPI_INCLUDES)
PchSpiCommonLibPeim_INCLUDES=\
$(PchSpiCommonLib_INCLUDES) $(PCH_SPI_INCLUDES)
PchSpiCommonLib_DEFINES = \
$(CFLAGS)
DxeCpuBuildDefine = \
!IF "$(x64_BUILD)"=="1"
/DMDE_CPU_X64\
!ELSE
/DMDE_CPU_IA32\
!ENDIF
PeimCpuBuildDefine = \
/DMDE_CPU_IA32\
PchSpiCommonLibPeim_DEFINES = \
$(PchSpiCommonLib_DEFINES)\
$(PeimCpuBuildDefine)\
PchSpiCommonLibDxe_DEFINES = \
$(PchSpiCommonLib_DEFINES)\
$(DxeCpuBuildDefine)\
PchSpiCommonLibSmm_DEFINES = \
$(PchSpiCommonLibDxe_DEFINES)\
PchSpiCommonLibDxeBin :
$(MAKE) /$(MAKEFLAGS) $(EDKIIGLUE_DEFAULTS) \
/f $(BUILD_DIR)\PchSpiCommonLib.mak all\
"MY_INCLUDES=$(PchSpiCommonLibDxe_INCLUDES)" \
"CFLAGS=$(PchSpiCommonLibDxe_DEFINES)"\
TYPE=LIBRARY \
LIBRARY_NAME=$(PchSpiCommonDxeLib_LIB)
PchSpiCommonLibSmmBin :
$(MAKE) /$(MAKEFLAGS) $(EDKIIGLUE_DEFAULTS) \
/f $(BUILD_DIR)\PchSpiCommonLib.mak all\
"MY_INCLUDES=$(PchSpiCommonLibSmm_INCLUDES)" \
"CFLAGS=$(PchSpiCommonLibSmm_DEFINES)"\
TYPE=LIBRARY \
BUILD_DIR=$(BUILD_DIR)\Smm\
LIBRARY_NAME=$(PchSpiCommonSmmLib_LIB)
PchSpiCommonLibPeiBin :
!IF "$(x64_BUILD)"=="1"
$(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS) BUILD_DIR=$(BUILD_DIR)\IA32 \
!ELSE
$(MAKE) /$(MAKEFLAGS) $(EDKIIGLUE_DEFAULTS) \
!ENDIF
/f $(BUILD_DIR)\PchSpiCommonLib.mak all\
"MY_INCLUDES=$(PchSpiCommonLibPeim_INCLUDES)" \
"CFLAGS=$(PchSpiCommonLibPeim_DEFINES)"\
TYPE=PEI_LIBRARY \
LIBRARY_NAME=$(PchSpiCommonPeiLib_LIB)
#*************************************************************************
#*************************************************************************
#** **
#** (C)Copyright 1985-2011, American Megatrends, Inc. **
#** **
#** All Rights Reserved. **
#** **
#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
#** **
#** Phone: (770)-246-8600 **
#** **
#*************************************************************************
#*************************************************************************
|