]>
Commit | Line | Data |
---|---|---|
52302d4d | 1 | ## @file\r |
97fa0ee9 | 2 | # Makefile\r |
52302d4d | 3 | #\r |
97fa0ee9 | 4 | # Copyright (c) 2007 - 2014, 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 | |
16 | $(MAKEROOT)/libs-$(ARCH):\r | |
17 | mkdir -p $(MAKEROOT)/libs-$(ARCH)\r | |
18 | \r | |
19 | .PHONY: install\r | |
20 | install: $(MAKEROOT)/libs-$(ARCH) $(LIBRARY)\r | |
21 | cp $(LIBRARY) $(MAKEROOT)/libs-$(ARCH)\r | |
22 | \r | |
23 | $(LIBRARY): $(OBJECTS) \r | |
24 | $(AR) crs $@ $^\r | |
25 | \r | |
26 | %.o : %.c \r | |
27 | $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@\r | |
28 | \r | |
29 | %.o : %.S\r | |
30 | $(AS) -c $(ASFLAGS) $< -o $@\r | |
31 | \r | |
32 | .PHONY: clean\r | |
33 | clean:\r | |
34 | @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)\r | |
35 | \r | |
36 | -include $(DEPFILES)\r |