]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/Makefiles/footer.makefile
Hot fixing for the bug that GenFw can not convert ELF to PE format correctly, the...
[mirror_edk2.git] / BaseTools / Source / C / Makefiles / footer.makefile
CommitLineData
30fdf114
LG
1DEPFILES = $(OBJECTS:%.o=%.d)
2
3$(MAKEROOT)/libs-$(ARCH):
4 mkdir -p $(MAKEROOT)/libs-$(ARCH)
5
6.PHONY: install
7install: $(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
20clean:
21 @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)
22
23-include $(DEPFILES)