Makefile.in 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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-a-pic-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_OBJS:.o=.os)
  19. libc-so-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_OBJS:.o=.os)
  20. CFLAGS-multi-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_DEF)
  21. libc-multi-$(UCLIBC_HAS_STRING_ARCH_OPT)+=$(STRING_ARCH_MSRC)
  22. objclean-y+=string_arch_objclean
  23. string_arch_objclean:
  24. $(RM) $(STRING_ARCH_OUT)/*.{o,os}