Add the special build rule for AcpiTable C Source file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5759 6f19259b-4bc3-4df7-8a09-765794883524
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template
index 84262b2..c138bd9 100644
--- a/BaseTools/Conf/build_rule.template
+++ b/BaseTools/Conf/build_rule.template
@@ -254,9 +254,24 @@
         "$(ASLPP)" $(ASLPP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_dir}(+)${s_base}.i

         "$(ASL)" -p ${dst} $(ASL_FLAGS) ${d_path}(+)${s_dir}(+)${s_base}.i

 

+[C-Code-File.AcpiTable]

+    <InputFile>

+        ?.c

+

+    <OutputFile>

+        $(OUTPUT_DIR)(+)${s_base}.acpi

+

+    <ExtraDependency>

+        $(MAKE_FILE)

+

+    <Command.MSFT, Command.INTEL>

+        "$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src}

+        "$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj

+        GenFw -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll

+

 [Acpi-Table-Code-File]

     <InputFile>

-        ?.aslc

+        ?.aslc, ?.act

 

     <OutputFile>

         $(OUTPUT_DIR)(+)${s_base}.acpi