mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
Removed the AutoGen-Code type of file build; added new macro for replacement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2745 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
88f2012778
commit
a9c9a31de8
@ -82,36 +82,35 @@ ToolChainFamilyMapping = {
|
|||||||
|
|
||||||
## Build rules for makefile
|
## Build rules for makefile
|
||||||
# Placeholders for string substitution
|
# Placeholders for string substitution
|
||||||
|
# ${fpath} File path relative to $(WORKSPACE)
|
||||||
# ${fdir} File relative directory within a module
|
# ${fdir} File relative directory within a module
|
||||||
# ${fname} File full name without path
|
# ${fname} File full name without path
|
||||||
# ${fbase} File name without extension and path
|
# ${fbase} File name without extension and path
|
||||||
# ${fext} File extension
|
# ${fext} File extension
|
||||||
# ${dep} Dependency file
|
# ${fdep} File dependencies
|
||||||
# ${sep} Directory separator
|
# ${sep} Directory separator
|
||||||
#
|
#
|
||||||
Makefile = {
|
Makefile = {
|
||||||
"nmake" : {
|
"nmake" : {
|
||||||
"C-Code" : '''\
|
"C-Code" : '''\
|
||||||
${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${dep}
|
$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(COMMON_DEPS)
|
||||||
${END} "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)${sep}${fdir}${sep}${fname}
|
${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${fdep}
|
||||||
''',
|
${END} "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(WORKSPACE)${sep}${fpath}
|
||||||
|
|
||||||
"AutoGen-Code" : '''\
|
|
||||||
${BEGIN}$(OUTPUT_DIR)${sep}${fbase}.obj : $(WORKSPACE)${sep}${dep}
|
|
||||||
${END} "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(DEBUG_DIR)${sep}${fname}
|
|
||||||
''',
|
''',
|
||||||
|
|
||||||
"Masm-Code" : '''\
|
"Masm-Code" : '''\
|
||||||
${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${dep}
|
$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(COMMON_DEPS)
|
||||||
${END} "$(PP)" $(PP_FLAGS) $(INC) $(MODULE_DIR)${sep}${fdir}${sep}${fname} > $(@D)${sep}${fbase}.i
|
${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${fdep}
|
||||||
|
${END} "$(PP)" $(PP_FLAGS) $(INC) $(WORKSPACE)${sep}${fpath} > $(@D)${sep}${fbase}.i
|
||||||
Trim -CONVERT $(@D)${sep}${fbase}.i
|
Trim -CONVERT $(@D)${sep}${fbase}.i
|
||||||
"$(ASM)" $(ASM_FLAGS) /Fo$@ $(@D)${sep}${fbase}.iii
|
"$(ASM)" $(ASM_FLAGS) /Fo$@ $(@D)${sep}${fbase}.iii
|
||||||
''',
|
''',
|
||||||
|
|
||||||
"Iasm-Code" : '''\
|
"Iasm-Code" : '''\
|
||||||
${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${dep}
|
$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(COMMON_DEPS)
|
||||||
${END} "$(APP)" $(APP_FLAGS) $(INC) $< $(PP_OUTPUT)$(@D)${sep}${fbase}.i
|
${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${fdep}
|
||||||
"$(ASM)" $(ASM_FLAGS) $(ASM_OUTPUT)$@ $(@D)${sep}${fbase}.i
|
${END} "$(APP)" $(APP_FLAGS) $(INC) $(WORKSPACE)${sep}${fpath} > $(@D)${sep}${fbase}.i
|
||||||
|
"$(ASM)" $(ASM_FLAGS) /Fo$@ $(@D)${sep}${fbase}.i
|
||||||
''',
|
''',
|
||||||
|
|
||||||
"Visual-Form-Representation" :
|
"Visual-Form-Representation" :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user