]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Makefiles/footer.makefile
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / C / Makefiles / footer.makefile
1 ## @file
2 # Makefile
3 #
4 # Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
6 #
7
8 DEPFILES = $(OBJECTS:%.o=%.d)
9
10 $(MAKEROOT)/libs-$(HOST_ARCH):
11 mkdir -p $(MAKEROOT)/libs-$(HOST_ARCH)
12
13 .PHONY: install
14 install: $(MAKEROOT)/libs-$(HOST_ARCH) $(LIBRARY)
15 cp $(LIBRARY) $(MAKEROOT)/libs-$(HOST_ARCH)
16
17 $(LIBRARY): $(OBJECTS)
18 $(BUILD_AR) crs $@ $^
19
20 %.o : %.c
21 $(BUILD_CC) -c $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) $< -o $@
22
23 %.o : %.cpp
24 $(BUILD_CXX) -c $(BUILD_CPPFLAGS) $(BUILD_CXXFLAGS) $< -o $@
25
26 .PHONY: clean
27 clean:
28 @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)
29
30 -include $(DEPFILES)