Makefile.arch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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:= strcpy.o strncpy.o strcat.o strncat.o strcmp.o \
  9. strncmp.o strchr.o strrchr.o strlen.o strnlen.o \
  10. memcpy.o memmove.o memchr.o memset.o
  11. STRING_ARCH_DIR:=$(top_srcdir)libc/string/i386
  12. STRING_ARCH_OUT:=$(top_builddir)libc/string/i386
  13. STRING_ARCH_MSRC:=$(patsubst %.c,$(STRING_ARCH_DIR)/%.c,$(MSRC))
  14. STRING_ARCH_MOBJ:=$(patsubst %.o,$(STRING_ARCH_OUT)/%.o,$(MOBJ))
  15. STRING_ARCH_OBJS:=$(STRING_ARCH_MOBJ)
  16. STRING_ARCH_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(STRING_ARCH_OBJS))))
  17. $(STRING_ARCH_MOBJ) $(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}