Makefile.arch 1023 B

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