Makefile 699 B

12345678910111213141516171819202122232425262728293031
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the GNU Library General Public License version 2 or later.
  6. # See the COPYING.LIB file in the toplevel for more information.
  7. TOPDIR=../../../
  8. include $(TOPDIR)Rules.mak
  9. CSRCS = $(wildcard *.c)
  10. COBJS = $(patsubst %.c,%.o,$(CSRCS))
  11. SSRCS = $(wildcard *.S)
  12. SOBJS = $(patsubst %.S,%.o,$(SSRCS))
  13. OBJS = $(COBJS) $(SOBJS)
  14. OBJ_LIST = ../../obj.string.$(TARGET_ARCH)
  15. all: $(OBJ_LIST)
  16. $(OBJ_LIST): $(OBJS)
  17. echo $(patsubst %, string/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST)
  18. $(COBJS): %.o : %.c
  19. $(CC) $(CFLAGS) -c $< -o $@
  20. $(STRIPTOOL) -x -R .note -R .comment $*.o
  21. clean:
  22. $(RM) *.[oa] *~ core