Makefile.arch 1003 B

123456789101112131415161718192021222324252627282930313233
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. MSRC:=string.c
  8. MOBJ:=memcpy.o memmove.o memset.o bzero.o
  9. STRING_ARCH_DIR:=$(top_srcdir)libc/string/powerpc
  10. STRING_ARCH_OUT:=$(top_builddir)libc/string/powerpc
  11. STRING_ARCH_MSRC:=$(patsubst %.c,$(STRING_ARCH_DIR)/%.c,$(MSRC))
  12. STRING_ARCH_MOBJ:=$(patsubst %.o,$(STRING_ARCH_OUT)/%.o,$(MOBJ))
  13. STRING_ARCH_OBJS:=$(STRING_ARCH_MOBJ)
  14. STRING_ARCH_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(STRING_ARCH_MOBJ))))
  15. $(STRING_ARCH_MOBJ) $(STRING_ARCH_MOBJ:.o=.os): $(STRING_ARCH_MSRC)
  16. $(compile.m)
  17. libc-a-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_OBJS)
  18. libc-so-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_OBJS:.o=.os)
  19. CFLAGS-multi-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_DEF)
  20. libc-multi-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_MSRC)
  21. objclean-y+=string_arch_objclean
  22. string_arch_objclean:
  23. $(RM) $(STRING_ARCH_OUT)/*.{o,os}