From 00588512dc05929ff5a9a52830724bee16f72c40 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Mon, 22 Aug 2016 14:28:50 +0800 Subject: [PATCH] BaseTools GNU Makefile: Add the missing rules for cpp source file Cc: Giri P Mudusuru Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Yonghong Zhu Reviewed-by: Giri P Mudusuru --- BaseTools/Source/C/Makefiles/footer.makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/C/Makefiles/footer.makefile b/BaseTools/Source/C/Makefiles/footer.makefile index 2dfc683860..c3d80204af 100644 --- a/BaseTools/Source/C/Makefiles/footer.makefile +++ b/BaseTools/Source/C/Makefiles/footer.makefile @@ -1,7 +1,7 @@ ## @file # Makefile # -# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.
+# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at @@ -29,6 +29,9 @@ $(LIBRARY): $(OBJECTS) %.o : %.S $(AS) -c $(ASFLAGS) $< -o $@ +%.o : %.cpp + $(CXX) -c $(CPPFLAGS) $< -o $@ + .PHONY: clean clean: @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)