blob: a969b47c54637518f651a2cdba8575b84f58ec45 [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 Mundt221c0072009-07-27 20:55:46 +090026lib-$(CONFIG_MMU) += copy_page.o __clear_user.o
Paul Mundt473d1cf2009-07-11 19:56:58 +090027lib-$(CONFIG_MCOUNT) += 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