028299d98e6888faf867635ccf3acdaca29b45ec
[people/mcb30/basetools.git] / 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) $< -Fo$@
15
16 %.o : %.S
17         $(AS) -c $(ASFLAGS) $< -out:$@
18
19 .PHONY: clean
20 clean:
21         @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)
22
23 -include $(DEPFILES)