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