yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 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 | |
| 9 | libpthread_ARCH_DIR:=$(top_srcdir)libpthread/linuxthreads.old/sysdeps/sh64 |
| 10 | libpthread_ARCH_OUT:=$(top_builddir)libpthread/linuxthreads.old/sysdeps/sh64 |
| 11 | |
| 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 | |
| 15 | libpthread-a-y+=$(libpthread_ARCH_OBJ) |
| 16 | libpthread-so-y+=$(libpthread_ARCH_OBJ:.o=.os) |
| 17 | |
| 18 | libpthread-multi-y+=$(libpthread_ARCH_SRC) |
| 19 | |
| 20 | objclean-y += CLEAN_$($(top_builddir),,$(libpthread_ARCH_OUT)) |
| 21 | |
| 22 | # We need to build as SHcompact for tas.. |
| 23 | $(libpthread_ARCH_OBJ): %.o : %.c |
| 24 | $(compile.c:32media=compact) |
| 25 | |
| 26 | $(libpthread_ARCH_OBJ:.o=.os): %.os : %.c |
| 27 | $(compile.c:32media=compact) |
| 28 | |
| 29 | CLEAN_$($(top_builddir),,$(libpthread_ARCH_OUT)): |
| 30 | $(do_rm) $(addprefix $(libpthread_ARCH_OUT)/*., o os) |