Check In tool source code based on Build tool project revision r1655.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8964 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
23
BaseTools/Source/C/Makefiles/footer.makefile
Normal file
23
BaseTools/Source/C/Makefiles/footer.makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
DEPFILES = $(OBJECTS:%.o=%.d)
|
||||
|
||||
$(MAKEROOT)/libs-$(ARCH):
|
||||
mkdir -p $(MAKEROOT)/libs-$(ARCH)
|
||||
|
||||
.PHONY: install
|
||||
install: $(MAKEROOT)/libs-$(ARCH) $(LIBRARY)
|
||||
cp $(LIBRARY) $(MAKEROOT)/libs-$(ARCH)
|
||||
|
||||
$(LIBRARY): $(OBJECTS)
|
||||
$(AR) crs $@ $^
|
||||
|
||||
%.o : %.c
|
||||
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
|
||||
|
||||
%.o : %.S
|
||||
$(AS) -c $(ASFLAGS) $< -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)
|
||||
|
||||
-include $(DEPFILES)
|
Reference in New Issue
Block a user