Makefile.arch 925 B

1234567891011121314151617181920212223242526
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org>
  4. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. # We need to build as SHcompact for tas..
  9. ARCH_CFLAGS:=$(subst 32media,compact,$(ARCH_CFLAGS))
  10. libpthread_ARCH_DIR:=$(top_srcdir)libpthread/linuxthreads/sysdeps/sh64
  11. libpthread_ARCH_OUT:=$(top_builddir)libpthread/linuxthreads/sysdeps/sh64
  12. libpthread_ARCH_SRC:=$(wildcard $(libpthread_ARCH_DIR)/*.c)
  13. libpthread_ARCH_OBJ:=$(patsubst $(libpthread_ARCH_DIR)/%.c,$(libpthread_ARCH_OUT)/%.o,$(libpthread_ARCH_SRC))
  14. libpthread-a-$(UCLIBC_HAS_THREADS)+=$(libpthread_ARCH_OBJ)
  15. libpthread-so-$(UCLIBC_HAS_THREADS)+=$(libpthread_ARCH_OBJ:.o=.os)
  16. libpthread-multi-$(UCLIBC_HAS_THREADS)+=$(libpthread_ARCH_SRC)
  17. objclean-y+=libpthread_arch_objclean
  18. libpthread_arch_objclean:
  19. $(RM) $(libpthread_ARCH_OUT)/*.{o,os}