]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - 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
... / ...
CommitLineData
1## @file\r
2# Makefile\r
3#\r
4# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13\r
14DEPFILES = $(OBJECTS:%.o=%.d)\r
15\r
16$(MAKEROOT)/libs-$(ARCH):\r
17 mkdir -p $(MAKEROOT)/libs-$(ARCH)\r
18\r
19.PHONY: install\r
20install: $(MAKEROOT)/libs-$(ARCH) $(LIBRARY)\r
21 cp $(LIBRARY) $(MAKEROOT)/libs-$(ARCH)\r
22\r
23$(LIBRARY): $(OBJECTS) \r
24 $(BUILD_AR) crs $@ $^\r
25\r
26%.o : %.c \r
27 $(BUILD_CC) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@\r
28\r
29%.o : %.S\r
30 $(BUILD_AS) -c $(BUILD_ASFLAGS) $< -o $@\r
31\r
32%.o : %.cpp\r
33 $(BUILD_CXX) -c $(BUILD_CPPFLAGS) $(BUILD_CXXFLAGS) $< -o $@\r
34\r
35.PHONY: clean\r
36clean:\r
37 @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)\r
38\r
39-include $(DEPFILES)\r