BaseTools GNU Makefile: Add the missing rules for cpp source file

Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
This commit is contained in:
Liming Gao 2016-08-22 14:28:50 +08:00 committed by Yonghong Zhu
parent 90fadfc00a
commit 00588512dc
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
## @file
# Makefile
#
# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
# 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)