]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Makefiles/footer.makefile
BaseTools GNU makefile: Add BUILD_CXXFLAGS to align make built-in rule
[mirror_edk2.git] / BaseTools / Source / C / Makefiles / footer.makefile
index c10ad7aab49b69f51918f58c1f628d897cdb803e..a58bff667db80177a077a60a346f0174af9da100 100644 (file)
@@ -1,6 +1,7 @@
 ## @file\r
+# Makefile\r
 #\r
-# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.    The full text of the license may be found at\r
@@ -8,6 +9,7 @@
 #\r
 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
 \r
 DEPFILES = $(OBJECTS:%.o=%.d)\r
 \r
@@ -19,13 +21,16 @@ install: $(MAKEROOT)/libs-$(ARCH) $(LIBRARY)
        cp $(LIBRARY) $(MAKEROOT)/libs-$(ARCH)\r
 \r
 $(LIBRARY): $(OBJECTS) \r
-       $(AR) crs $@ $^\r
+       $(BUILD_AR) crs $@ $^\r
 \r
 %.o : %.c \r
-       $(CC)  -c $(CFLAGS) $(CPPFLAGS) $< -o $@\r
+       $(BUILD_CC)  -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@\r
 \r
 %.o : %.S\r
-       $(AS) -c $(ASFLAGS) $< -o $@\r
+       $(BUILD_AS) -c $(BUILD_ASFLAGS) $< -o $@\r
+\r
+%.o : %.cpp\r
+       $(BUILD_CXX) -c $(BUILD_CPPFLAGS) $(BUILD_CXXFLAGS) $< -o $@\r
 \r
 .PHONY: clean\r
 clean:\r