xref: /openbmc/linux/arch/sh/lib/Makefile (revision 8bc6666f)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for SuperH-specific library files..
4#
5
6lib-y  = delay.o memmove.o memchr.o \
7	 checksum.o strlen.o div64.o div64-generic.o
8
9# Extracted from libgcc
10obj-y += movmem.o ashlsi3.o ashrsi3.o ashiftrt.o lshrsi3.o udiv_qrnnd.o
11
12udivsi3-y			:= udivsi3_i4i-Os.o
13
14ifneq ($(CONFIG_CC_OPTIMIZE_FOR_SIZE),y)
15udivsi3-$(CONFIG_CPU_SH3)	:= udivsi3_i4i.o
16udivsi3-$(CONFIG_CPU_SH4)	:= udivsi3_i4i.o
17endif
18udivsi3-y			+= udivsi3.o
19
20obj-y				+= io.o
21
22memcpy-y			:= memcpy.o
23memcpy-$(CONFIG_CPU_SH4)	:= memcpy-sh4.o
24
25memset-y			:= memset.o
26memset-$(CONFIG_CPU_SH4)	:= memset-sh4.o
27
28lib-$(CONFIG_MMU)		+= copy_page.o __clear_user.o
29lib-$(CONFIG_MCOUNT)		+= mcount.o
30lib-y				+= $(memcpy-y) $(memset-y) $(udivsi3-y)
31