2007-06-22 08:22:16 +02:00
|
|
|
# file extention : file type
|
|
|
|
FileTypeMapping = {
|
|
|
|
".c" : "C-Code",
|
|
|
|
".C" : "C-Code",
|
|
|
|
".cpp" : "C-Code",
|
|
|
|
".Cpp" : "C-Code",
|
|
|
|
".CPP" : "C-Code",
|
|
|
|
".h" : "C-Header",
|
|
|
|
".H" : "C-Header",
|
2007-07-26 12:26:36 +02:00
|
|
|
".inc" : "Masm-Header",
|
2007-06-22 08:22:16 +02:00
|
|
|
".asm" : "Masm-Code",
|
|
|
|
".Asm" : "Masm-Code",
|
|
|
|
".ASM" : "Masm-Code",
|
2007-07-26 12:26:36 +02:00
|
|
|
".asm16" : "Masm16-Code", #RealAsm16 Link Code
|
|
|
|
".Asm16" : "Masm16-Code",
|
|
|
|
".ASM16" : "Masm16-Code",
|
2007-06-22 08:22:16 +02:00
|
|
|
".s" : "Iasm-Code", # IPF assembly code
|
|
|
|
".S" : "Gasm-Code", # GNU assembly code
|
|
|
|
".uni" : "Unicode-Text",
|
|
|
|
".Uni" : "Unicode-Text",
|
|
|
|
".UNI" : "Unicode-Text",
|
|
|
|
".vfr" : "Visual-Form-Representation",
|
|
|
|
".Vfr" : "Visual-Form-Representation",
|
|
|
|
".VFR" : "Visual-Form-Representation",
|
|
|
|
".dxs" : "Dependency-Expression",
|
|
|
|
".Dxs" : "Dependency-Expression",
|
|
|
|
".DXS" : "Dependency-Expression",
|
2007-08-02 07:26:55 +02:00
|
|
|
".TXT" : "MicorCode-Text",
|
2007-08-02 12:11:43 +02:00
|
|
|
".txt" : "MicorCode-Text",
|
2007-06-22 08:22:16 +02:00
|
|
|
".fv" : "FirmwareVolume",
|
|
|
|
".Fv" : "FirmwareVolume",
|
|
|
|
".FV" : "FirmwareVolume",
|
|
|
|
".efi" : "Efi-Image",
|
|
|
|
".Efi" : "Efi-Image",
|
|
|
|
".EFI" : "Efi-Image",
|
|
|
|
".SEC" : "Firmware-File-System",
|
|
|
|
".PEI" : "Firmware-File-System",
|
|
|
|
".DXE" : "Firmware-File-System",
|
|
|
|
".APP" : "Firmware-File-System",
|
|
|
|
".FYI" : "Firmware-File-System",
|
|
|
|
".FFS" : "Firmware-File-System",
|
|
|
|
".bmp" : "Bmp-Image",
|
|
|
|
".i" : "Preprocessed-Code",
|
|
|
|
".asl" : "Acpi-Source-Language",
|
|
|
|
".Asl" : "Acpi-Source-Language",
|
|
|
|
".ASL" : "Acpi-Source-Language",
|
2007-07-25 08:13:03 +02:00
|
|
|
".aslc" : "Acpi-Table-Source",
|
2007-06-22 08:22:16 +02:00
|
|
|
".obj" : "Object",
|
|
|
|
".o" : "Object",
|
|
|
|
".lib" : "Static-Library",
|
|
|
|
".a" : "Static-Library",
|
|
|
|
".dll" : "Dynamic-Library",
|
|
|
|
".so" : "Dynamic-Library",
|
|
|
|
}
|
|
|
|
|
2007-07-25 08:13:03 +02:00
|
|
|
ObjectFileMapping = {
|
|
|
|
"C-Code" : ".obj",
|
|
|
|
# "C-Header" : ".gch",
|
|
|
|
"Masm-Code" : ".obj",
|
|
|
|
"Iasm-Code" : ".obj", # IPF assembly code
|
|
|
|
"Gasm-Code" : ".obj", # GNU assembly code
|
|
|
|
"Visual-Form-Representation" : ".obj",
|
|
|
|
"Preprocessed-Code" : ".obj",
|
|
|
|
"Object" : ".dll",
|
|
|
|
"Static-Library" : ".dll",
|
2007-07-26 12:26:36 +02:00
|
|
|
"Dynamic-Library" : ".efi",
|
2007-07-25 08:13:03 +02:00
|
|
|
"Dependency-Expression" : ".depex",
|
2007-07-26 12:26:36 +02:00
|
|
|
"Acpi-Source-Language" : ".aml",
|
|
|
|
"Acpi-Table-Source" : ".acpi",
|
|
|
|
"Masm16-Code" : ".com",
|
2007-08-02 07:26:55 +02:00
|
|
|
"MicorCode-Text" : ".bin",
|
2007-07-25 08:13:03 +02:00
|
|
|
}
|
|
|
|
|
2007-07-26 12:26:36 +02:00
|
|
|
DefaultToolCode = ["CC", "ASM", "SLINK", "DLINK", "PCH", "PP", "ASL", "ASMLINK"]
|
2007-06-22 08:22:16 +02:00
|
|
|
|
|
|
|
ToolCodeMapping = {
|
2007-07-18 08:50:31 +02:00
|
|
|
"C-Code" : ["CC"],
|
2007-07-18 17:23:51 +02:00
|
|
|
# "C-Header" : ["PCH"],
|
2007-07-18 08:50:31 +02:00
|
|
|
"Masm-Code" : ["PP", "ASM"],
|
|
|
|
"Iasm-Code" : ["PP", "ASM"], # IPF assembly code
|
2007-07-26 12:26:36 +02:00
|
|
|
"Gasm-Code" : ["ASM"], # GNU assembly code
|
2007-07-18 08:50:31 +02:00
|
|
|
"Visual-Form-Representation" : ["PP", "CC"],
|
|
|
|
"Preprocessed-Code" : ["CC"],
|
|
|
|
"Acpi-Source-Language" : ["ASL"],
|
|
|
|
"Object" : ["SLINK"],
|
|
|
|
"Static-Library" : ["DLINK"],
|
|
|
|
"Dependency-Expression" : ["PP"],
|
2007-07-26 12:26:36 +02:00
|
|
|
"Acpi-Source-Language" : ["PP", "ASL"],
|
|
|
|
"Acpi-Table-Source" : ["CC", "DLINK"],
|
|
|
|
"Masm16-Code" : ["ASM", "ASMLINK"],
|
2007-08-02 12:11:43 +02:00
|
|
|
"MicorCode-Text" : ["CC"],
|
2007-06-22 08:22:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ToolChainFamilyMapping = {
|
|
|
|
"C-Code" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"C-Header" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"Masm-Code" : ["MSFT", "INTEL"],
|
|
|
|
"Iasm-Code" : ["MSFT", "INTEL"], # IPF assembly code
|
|
|
|
"Gasm-Code" : ["GCC"], # GNU assembly code
|
|
|
|
"Unicode-Text" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"Visual-Form-Representation" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"Dependency-Expression" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"FirmwareVolume" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"Efi-Image" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"Firmware-File-System" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"Bmp-Image" : ["MSFT", "INTEL", "GCC"],
|
|
|
|
"Preprocessed-Code" : ["MSFT", "INTEL"],
|
|
|
|
"Acpi-Source-Language" : ["MSFT", "INTEL"],
|
2007-07-26 12:26:36 +02:00
|
|
|
"Acpi-Table-Source" : ["MSFT", "INTEL"],
|
|
|
|
"Masm16-Code" : ["MSFT"],
|
2007-08-02 07:26:55 +02:00
|
|
|
"MicorCode-Text" : ["MSFT", "INTEL"],
|
2007-06-22 08:22:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
## Build rules for makefile
|
|
|
|
# Placeholders for string substitution
|
2007-06-26 10:07:10 +02:00
|
|
|
# ${fpath} File path relative to $(WORKSPACE)
|
2007-07-26 12:26:36 +02:00
|
|
|
# ${fdir} File relative directory within a module
|
|
|
|
# ${fname} File full name without path
|
|
|
|
# ${fbase} File name without extension and path
|
2007-06-26 10:07:10 +02:00
|
|
|
# ${fext} File extension
|
|
|
|
# ${fdep} File dependencies
|
2007-07-18 17:23:51 +02:00
|
|
|
# ${_sep_} Directory separator
|
|
|
|
# ${_of_} Output flag
|
|
|
|
# ${_if_} Include flag
|
2007-06-22 08:22:16 +02:00
|
|
|
#
|
|
|
|
Makefile = {
|
2007-07-19 07:45:47 +02:00
|
|
|
# MSFT tool chain family
|
2007-07-26 12:26:36 +02:00
|
|
|
"MSFT" : {
|
2007-06-22 08:22:16 +02:00
|
|
|
"C-Code" : '''\
|
2007-07-18 17:23:51 +02:00
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(CC)" /Fo$@ $(CC_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath}
|
2007-06-22 08:22:16 +02:00
|
|
|
''',
|
|
|
|
|
|
|
|
"Masm-Code" : '''\
|
2007-07-18 17:23:51 +02:00
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(PP)" $(PP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i
|
2007-07-27 02:20:44 +02:00
|
|
|
\tTrim -s -c $(@D)${_sep_}${fbase}.i
|
2007-07-18 17:23:51 +02:00
|
|
|
\t"$(ASM)" /Fo$@ $(ASM_FLAGS) $(INC) $(@D)${_sep_}${fbase}.iii
|
2007-06-22 08:22:16 +02:00
|
|
|
''',
|
|
|
|
|
|
|
|
"Iasm-Code" : '''\
|
2007-07-18 17:23:51 +02:00
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(APP)" $(APP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i
|
|
|
|
\t"$(ASM)" -o $@ $(ASM_FLAGS) $(@D)${_sep_}${fbase}.i
|
2007-06-22 08:22:16 +02:00
|
|
|
''',
|
|
|
|
|
2007-07-02 04:06:30 +02:00
|
|
|
"Visual-Form-Representation" : '''\
|
2007-07-18 17:23:51 +02:00
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(PP)" $(VFRPP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i
|
2007-07-27 02:20:44 +02:00
|
|
|
\tTrim -v $(@D)${_sep_}${fbase}.i
|
2007-07-18 17:23:51 +02:00
|
|
|
\t-mkdir $(DEBUG_DIR)${_sep_}${fdir} > NUL 2>&1
|
|
|
|
\tVfrCompile -od $(DEBUG_DIR)${_sep_}${fdir} $(@D)${_sep_}${fbase}.iii
|
|
|
|
\t"$(CC)" /Fo$@ $(CC_FLAGS) $(INC) $(DEBUG_DIR)${_sep_}${fdir}${_sep_}${fbase}.c
|
2007-07-02 04:06:30 +02:00
|
|
|
''',
|
2007-07-25 08:13:03 +02:00
|
|
|
|
|
|
|
"Acpi-Source-Language" :
|
|
|
|
'''
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.aml : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.aml : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(PP)" $(APP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i
|
2007-07-26 12:26:36 +02:00
|
|
|
\t"$(ASL)" -p $@ $(@D)${_sep_}${fbase}.i
|
|
|
|
\t-copy $(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.aml $(OUTPUT_DIR)${_sep_}${fbase}.aml /Y
|
2007-07-25 08:13:03 +02:00
|
|
|
''',
|
|
|
|
|
|
|
|
"Acpi-Table-Source" :
|
|
|
|
'''
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.acpi : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.acpi : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(CC)" /Fo$(@D)${_sep_}${fbase}.obj $(CC_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath}
|
2007-07-26 12:26:36 +02:00
|
|
|
\t"$(DLINK)" $(@D)${_sep_}${fbase}.obj /out:$(@D)${_sep_}${fbase}.dll $(DLINK_FLAGS) $(DLINK_SPATH) $(LIBS)
|
2007-07-25 08:13:03 +02:00
|
|
|
\tGenFw -o $@ -c $(@D)${_sep_}${fbase}.dll
|
2007-07-26 12:26:36 +02:00
|
|
|
\t-copy $(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.acpi $(OUTPUT_DIR)${_sep_}${fbase}.acpi /Y
|
|
|
|
''',
|
|
|
|
|
|
|
|
"Masm16-Code" : '''\
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.com : $(COMMON_DEPS)
|
2007-08-02 07:26:55 +02:00
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.com : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\tpushd .
|
2007-07-26 12:26:36 +02:00
|
|
|
\tcd $(OUTPUT_DIR)${_sep_}${fdir}
|
|
|
|
\t"$(ASM)" /nologo /omf $(WORKSPACE)${_sep_}${fpath} /Bl"$(ASMLINK)" $(ASMLINK_FLAGS)
|
|
|
|
\t-copy ${fbase}.com $(OUTPUT_DIR)${_sep_}${fbase}.com /Y & popd
|
2007-07-25 08:13:03 +02:00
|
|
|
''',
|
2007-08-02 07:26:55 +02:00
|
|
|
|
|
|
|
"MicorCode-Text" : '''\
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.bin : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.bin : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\tGenFw -o $@ -m $(WORKSPACE)${_sep_}${fpath}
|
|
|
|
''',
|
2007-06-22 08:22:16 +02:00
|
|
|
},
|
|
|
|
|
2007-07-19 07:45:47 +02:00
|
|
|
#
|
|
|
|
# INTEL tool chain family
|
|
|
|
#
|
2007-07-26 12:26:36 +02:00
|
|
|
"INTEL" : {
|
2007-07-19 07:45:47 +02:00
|
|
|
"C-Code" : '''\
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(CC)" /Fo$@ $(CC_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath}
|
|
|
|
''',
|
|
|
|
|
|
|
|
"Masm-Code" : '''\
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(PP)" $(PP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i
|
2007-07-27 02:20:44 +02:00
|
|
|
\tTrim -s -c $(@D)${_sep_}${fbase}.i
|
2007-07-19 07:45:47 +02:00
|
|
|
\t"$(ASM)" /Fo$@ $(ASM_FLAGS) $(INC) $(@D)${_sep_}${fbase}.iii
|
|
|
|
''',
|
2007-07-18 17:23:51 +02:00
|
|
|
|
2007-07-19 07:45:47 +02:00
|
|
|
"Iasm-Code" : '''\
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(APP)" $(APP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i
|
|
|
|
\t"$(ASM)" -o $@ $(ASM_FLAGS) $(@D)${_sep_}${fbase}.i
|
|
|
|
''',
|
|
|
|
|
|
|
|
"Visual-Form-Representation" : '''\
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(PP)" $(VFRPP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i
|
2007-07-27 02:20:44 +02:00
|
|
|
\tTrim -v $(@D)${_sep_}${fbase}.i
|
2007-07-19 07:45:47 +02:00
|
|
|
\t-mkdir $(DEBUG_DIR)${_sep_}${fdir} > NUL 2>&1
|
|
|
|
\tVfrCompile -od $(DEBUG_DIR)${_sep_}${fdir} $(@D)${_sep_}${fbase}.iii
|
|
|
|
\t"$(CC)" /Fo$@ $(CC_FLAGS) $(INC) $(DEBUG_DIR)${_sep_}${fdir}${_sep_}${fbase}.c
|
|
|
|
''',
|
2007-07-26 12:26:36 +02:00
|
|
|
|
|
|
|
"Acpi-Source-Language" :
|
|
|
|
'''
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.aml : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.aml : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(PP)" $(APP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i
|
|
|
|
\t"$(ASL)" -p $@ $(@D)${_sep_}${fbase}.i
|
|
|
|
\t-copy $(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.aml $(OUTPUT_DIR)${_sep_}${fbase}.aml /Y
|
|
|
|
''',
|
|
|
|
|
|
|
|
"Acpi-Table-Source" :
|
|
|
|
'''
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.acpi : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.acpi : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(CC)" /Fo$(@D)${_sep_}${fbase}.obj $(CC_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath}
|
|
|
|
\t"$(DLINK)" $(@D)${_sep_}${fbase}.obj /out:$(@D)${_sep_}${fbase}.dll $(DLINK_FLAGS) $(DLINK_SPATH) $(LIBS)
|
|
|
|
\tGenFw -o $@ -c $(@D)${_sep_}${fbase}.dll
|
|
|
|
\t-copy $(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.acpi $(OUTPUT_DIR)${_sep_}${fbase}.acpi /Y
|
|
|
|
''',
|
2007-07-19 07:45:47 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
#
|
|
|
|
# GCC tool chain family
|
|
|
|
#
|
2007-07-18 17:23:51 +02:00
|
|
|
"GCC" : {
|
|
|
|
|
2007-06-22 08:22:16 +02:00
|
|
|
"C-Code" :
|
2007-07-18 17:23:51 +02:00
|
|
|
'''
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(CC)" -o $@ $(CC_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath}
|
|
|
|
''',
|
2007-06-22 08:22:16 +02:00
|
|
|
|
2007-07-18 17:23:51 +02:00
|
|
|
"Gasm-Code" :
|
|
|
|
'''
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(ASM)" -o $@ $(ASM_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath}
|
|
|
|
''',
|
2007-06-22 08:22:16 +02:00
|
|
|
|
|
|
|
"Visual-Form-Representation" :
|
2007-07-18 17:23:51 +02:00
|
|
|
'''
|
|
|
|
$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(COMMON_DEPS)
|
|
|
|
${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.obj : $(WORKSPACE)${_sep_}${fdep}
|
|
|
|
${END}\t"$(PP)" $(VFRPP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} -o $(@D)${_sep_}${fbase}.i
|
2007-07-27 02:20:44 +02:00
|
|
|
\tTrim -v $(@D)${_sep_}${fbase}.i
|
2007-07-18 17:23:51 +02:00
|
|
|
\t-mkdir $(DEBUG_DIR)${_sep_}${fdir} > NUL 2>&1
|
|
|
|
\tVfrCompile -od $(DEBUG_DIR)${_sep_}${fdir} $(@D)${_sep_}${fbase}.iii
|
|
|
|
\t"$(CC)" -o $@ $(CC_FLAGS) $(INC) $(DEBUG_DIR)${_sep_}${fdir}${_sep_}${fbase}.c
|
|
|
|
''',
|
2007-06-22 08:22:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# This acts like the main() function for the script, unless it is 'import'ed into another
|
|
|
|
# script.
|
|
|
|
if __name__ == '__main__':
|
|
|
|
for ext in FileTypeMapping:
|
|
|
|
print ext,":",FileTypeMapping[ext]
|
|
|
|
|
|
|
|
for type in Makefile["nmake"]:
|
|
|
|
print "[",type,"]\n",Makefile["nmake"][type]
|
|
|
|
print
|
|
|
|
|
|
|
|
for type in Makefile["gmake"]:
|
|
|
|
print "[",type,"]\n",Makefile["gmake"][type]
|
|
|
|
print
|
|
|
|
|