summaryrefslogtreecommitdiff
path: root/EDK/EdkIIGlueRules.mak
blob: 4ec549a21eb0a88e378d1bdece0b830aadfa0d59 (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
#**********************************************************************
#**********************************************************************
#**                                                                  **
#**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
#**                                                                  **
#**                       All Rights Reserved.                       **
#**                                                                  **
#**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
#**                                                                  **
#**                       Phone: (770)-246-8600                      **
#**                                                                  **
#**********************************************************************
#**********************************************************************

#**********************************************************************
# $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/IntelEDK/EdkIIGlue/EdkIIGlueRules.mak 1     1/20/12 3:47a Jeffch $
#
# $Revision: 1 $
#
# $Date: 1/20/12 3:47a $
#**********************************************************************
# Revision History
# ----------------
# $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/IntelEDK/EdkIIGlue/EdkIIGlueRules.mak $
# 
# 1     1/20/12 3:47a Jeffch
# Create Intel EDK 1117 Patch 7.
# 
# 1     1/20/12 3:26a Jeffch
# Create Intel EDK 1117 Patch 7.
# 
# 1     9/27/11 6:08a Wesleychen
# Intel EDK initially releases.
# 
# 3     11/12/10 1:16a Iminglin
# EIP47829
# 
# 2     6/02/10 4:06a Iminglin
# For backward compatiblity.
# 
# 1     9/18/09 1:43a Iminglin
# 
#**********************************************************************
#<AMI_FHDR_START>
#
# Name:	<ComponentName>.mak
#
# Description:	
#
#<AMI_FHDR_END>
#**********************************************************************
!INCLUDE $(EDK_DIR)\EdkRules.mak
#EXTRA_CFLAGS=$(EXTRA_CFLAGS) /X
#EXTRA_INCLUDES=$(EDK_INCLUDES) $(EXTRA_INCLUDES)
#EXTRA_DEFINES=$(EXTRA_DEFINES) /DEFI_S3_RESUME /DTIANO_RELEASE_VERSION=$(TIANO_RELEASE_VERSION)

!IF "$(PROCESSOR)"=="x64"
MDE_PROCESSOR=MDE_CPU_X64
!ELSE
MDE_PROCESSOR=MDE_CPU_$(PROCESSOR)
!ENDIF

EXTRA_DEFINES=$(EXTRA_DEFINES)  /D EdkII_GLUE_LIBRARY_IMPLEMENTATION\
                                /D $(MDE_PROCESSOR)\
                                /D EFI_BUILD_IN_GLUE_LIB
  
EXTRA_INCLUDES=$(EXTRA_INCLUDES)    $(MISCFRAMEWORK_INCLUDES)\
                                    $(EdkIIGlueLib_INCLUDES)

!IFDEF EDKIIModule
!IF "$(EDKIIModule)"=="DXEDRIVER"
EXTRA_LFLAGS = $(EXTRA_LFLAGS) $(DEST_DIR)\EdkIIGlueDxeDriverEntryPoint.obj
$(BUILD_DIR)\$(NAME).dll : $(DEST_DIR)\EdkIIGlueDxeDriverEntryPoint.obj
$(DEST_DIR)\EdkIIGlueDxeDriverEntryPoint.obj : $(EdkIIGlueLib_DIR)\EntryPoints\EdkIIGlueDxeDriverEntryPoint.c $(BUILD_DIR)\token.h
    $(CC) $(FINAL_CFLAGS) $(EXTRA_DEFINES) $(EXTRA_INCLUDES) /Fo$@ $(EdkIIGlueLib_DIR)\EntryPoints\EdkIIGlueDxeDriverEntryPoint.c
!ENDIF

!IF "$(EDKIIModule)"=="PEIM"
EXTRA_LFLAGS = $(EXTRA_LFLAGS) $(DEST_DIR)\EdkIIGluePeimEntryPoint.obj
$(BUILD_DIR)\$(NAME).dll : $(DEST_DIR)\EdkIIGluePeimEntryPoint.obj
$(DEST_DIR)\EdkIIGluePeimEntryPoint.obj : $(EdkIIGlueLib_DIR)\EntryPoints\EdkIIGluePeimEntryPoint.c $(BUILD_DIR)\token.h
    $(CC) $(FINAL_CFLAGS) $(EXTRA_DEFINES) $(EXTRA_INCLUDES) /Fo$@ $(EdkIIGlueLib_DIR)\EntryPoints\EdkIIGluePeimEntryPoint.c
!ENDIF

!IF "$(EDKIIModule)"=="SMMDRIVER"
EXTRA_LFLAGS = $(EXTRA_LFLAGS) $(DEST_DIR)\EdkIIGlueSmmDriverEntryPoint.obj
$(BUILD_DIR)\$(NAME).dll : $(DEST_DIR)\EdkIIGlueSmmDriverEntryPoint.obj
$(DEST_DIR)\EdkIIGlueSmmDriverEntryPoint.obj : $(EdkIIGlueLib_DIR)\EntryPoints\EdkIIGlueSmmDriverEntryPoint.c $(BUILD_DIR)\token.h
    $(CC) $(FINAL_CFLAGS) $(EXTRA_DEFINES) $(EXTRA_INCLUDES) /Fo$@ $(EdkIIGlueLib_DIR)\EntryPoints\EdkIIGlueSmmDriverEntryPoint.c
!ENDIF
!ENDIF

#**********************************************************************
#**********************************************************************
#**                                                                  **
#**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
#**                                                                  **
#**                       All Rights Reserved.                       **
#**                                                                  **
#**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
#**                                                                  **
#**                       Phone: (770)-246-8600                      **
#**                                                                  **
#**********************************************************************
#**********************************************************************