blob: ddb56645cac918c207875bc70fb2dbd86a92ff98 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001# 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
9libpthread_ARCH_DIR:=$(top_srcdir)libpthread/linuxthreads.old/sysdeps/sh64
10libpthread_ARCH_OUT:=$(top_builddir)libpthread/linuxthreads.old/sysdeps/sh64
11
12libpthread_ARCH_SRC:=$(wildcard $(libpthread_ARCH_DIR)/*.c)
13libpthread_ARCH_OBJ:=$(patsubst $(libpthread_ARCH_DIR)/%.c,$(libpthread_ARCH_OUT)/%.o,$(libpthread_ARCH_SRC))
14
15libpthread-a-y+=$(libpthread_ARCH_OBJ)
16libpthread-so-y+=$(libpthread_ARCH_OBJ:.o=.os)
17
18libpthread-multi-y+=$(libpthread_ARCH_SRC)
19
20objclean-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
29CLEAN_$($(top_builddir),,$(libpthread_ARCH_OUT)):
30 $(do_rm) $(addprefix $(libpthread_ARCH_OUT)/*., o os)