]>
Commit | Line | Data |
---|---|---|
52302d4d | 1 | ## @file\r |
97fa0ee9 | 2 | # Makefile\r |
52302d4d | 3 | #\r |
00588512 | 4 | # Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r |
40d841f6 | 5 | # This program and the accompanying materials\r |
52302d4d LG |
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 | |
f51461c8 | 11 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
97fa0ee9 | 12 | #\r |
f51461c8 LG |
13 | \r |
14 | DEPFILES = $(OBJECTS:%.o=%.d)\r | |
15 | \r | |
a9f6e0a4 LG |
16 | $(MAKEROOT)/libs-$(HOST_ARCH):\r |
17 | mkdir -p $(MAKEROOT)/libs-$(HOST_ARCH)\r | |
f51461c8 LG |
18 | \r |
19 | .PHONY: install\r | |
a9f6e0a4 LG |
20 | install: $(MAKEROOT)/libs-$(HOST_ARCH) $(LIBRARY)\r |
21 | cp $(LIBRARY) $(MAKEROOT)/libs-$(HOST_ARCH)\r | |
f51461c8 LG |
22 | \r |
23 | $(LIBRARY): $(OBJECTS) \r | |
a61331e8 | 24 | $(BUILD_AR) crs $@ $^\r |
f51461c8 LG |
25 | \r |
26 | %.o : %.c \r | |
67983484 | 27 | $(BUILD_CC) -c $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) $< -o $@\r |
f51461c8 | 28 | \r |
00588512 | 29 | %.o : %.cpp\r |
a9355bb8 | 30 | $(BUILD_CXX) -c $(BUILD_CPPFLAGS) $(BUILD_CXXFLAGS) $< -o $@\r |
00588512 | 31 | \r |
f51461c8 LG |
32 | .PHONY: clean\r |
33 | clean:\r | |
34 | @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)\r | |
35 | \r | |
36 | -include $(DEPFILES)\r |