7bdf49c1afff134151030d75619d046e841301df
[efi/edk2/.git] / edk2 / BaseTools / Source / C / Makefiles / footer.makefile
1 DEPFILES = $(OBJECTS:%.o=%.d)
2
3 $(MAKEROOT)/libs-$(ARCH):
4         mkdir -p $(MAKEROOT)/libs-$(ARCH)
5
6 .PHONY: install
7 install: $(MAKEROOT)/libs-$(ARCH) $(LIBRARY)
8         cp $(LIBRARY) $(MAKEROOT)/libs-$(ARCH)
9
10 $(LIBRARY): $(OBJECTS) 
11         $(AR) crs $@ $^
12
13 %.o : %.c 
14         $(CC)  -c $(CFLAGS) $(CPPFLAGS) $< -o $@
15
16 %.o : %.S
17         $(AS) -c $(ASFLAGS) $< -o $@
18
19 .PHONY: clean
20 clean:
21         @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)
22
23 -include $(DEPFILES)