blob: aaea580b65bba98ccf687296fe4a6a735fe72ccc [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for SuperH-specific library files..
3#
4
Adrian Bunke3b08602008-06-18 01:30:53 +03005lib-y = delay.o memset.o memmove.o memchr.o \
Paul Mundtcdf50b22007-03-28 17:14:45 +09006 checksum.o strlen.o div64.o div64-generic.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Paul Mundt1aad54a2008-11-18 17:33:48 +09008# Extracted from libgcc
9lib-y += movmem.o ashldi3.o ashrdi3.o lshrdi3.o \
10 ashlsi3.o ashrsi3.o ashiftrt.o lshrsi3.o \
11 udiv_qrnnd.o
12
Takashi YOSHII3b041222008-12-08 11:33:06 +090013udivsi3-y := udivsi3_i4i-Os.o
Paul Mundt1aad54a2008-11-18 17:33:48 +090014
15ifneq ($(CONFIG_CC_OPTIMIZE_FOR_SIZE),y)
Takashi YOSHII3b041222008-12-08 11:33:06 +090016udivsi3-$(CONFIG_CPU_SH3) := udivsi3_i4i.o
17udivsi3-$(CONFIG_CPU_SH4) := udivsi3_i4i.o
Paul Mundt1aad54a2008-11-18 17:33:48 +090018endif
Takashi YOSHII3b041222008-12-08 11:33:06 +090019udivsi3-y += udivsi3.o
Paul Mundt1aad54a2008-11-18 17:33:48 +090020
Adrian Bunke3b08602008-06-18 01:30:53 +030021obj-y += io.o
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023memcpy-y := memcpy.o
24memcpy-$(CONFIG_CPU_SH4) := memcpy-sh4.o
25
Paul Mundt9895f942007-11-21 22:46:14 +090026lib-$(CONFIG_MMU) += copy_page.o clear_page.o
Matt Flemingfad57fe2008-11-12 20:11:47 +090027lib-$(CONFIG_FUNCTION_TRACER) += mcount.o
Paul Mundt1aad54a2008-11-18 17:33:48 +090028lib-y += $(memcpy-y) $(udivsi3-y)
Paul Mundt98366c22007-11-06 17:35:12 +090029
30EXTRA_CFLAGS += -Werror