Makefile.arch 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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_MSRC)
  16. $(compile.m)
  17. $(STRING_ARCH_MOBJ:.o=.os): $(STRING_ARCH_MSRC)
  18. $(compile.m)
  19. libc-a-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_OBJS)
  20. libc-so-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_OBJS:.o=.os)
  21. CFLAGS-multi-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_DEF)
  22. libc-multi-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_MSRC)
  23. objclean-y+=string_arch_objclean
  24. string_arch_objclean:
  25. $(RM) $(STRING_ARCH_OUT)/*.{o,os}