blob: a30acb8342d98120be997a2aee308a8e8a295599 [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
13udivsi3-y := udivsi3-Os.o
14
15ifneq ($(CONFIG_CC_OPTIMIZE_FOR_SIZE),y)
16udivsi3-$(CONFIG_CPU_SH3) := udivsi3.o
17udivsi3-$(CONFIG_CPU_SH4) := udivsi3.o
18endif
19
Adrian Bunke3b08602008-06-18 01:30:53 +030020obj-y += io.o
21
Linus Torvalds1da177e2005-04-16 15:20:36 -070022memcpy-y := memcpy.o
23memcpy-$(CONFIG_CPU_SH4) := memcpy-sh4.o
24
Paul Mundt9895f942007-11-21 22:46:14 +090025lib-$(CONFIG_MMU) += copy_page.o clear_page.o
Matt Flemingfad57fe2008-11-12 20:11:47 +090026lib-$(CONFIG_FUNCTION_TRACER) += mcount.o
Paul Mundt1aad54a2008-11-18 17:33:48 +090027lib-y += $(memcpy-y) $(udivsi3-y)
Paul Mundt98366c22007-11-06 17:35:12 +090028
29EXTRA_CFLAGS += -Werror