blob: 7b95f29e31749ec180e67028424580fadda1c3af [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for SuperH-specific library files..
3#
4
Stuart Menefydfc34942009-10-27 15:14:06 +00005lib-y = delay.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
Stuart Menefydfc34942009-10-27 15:14:06 +000026memset-y := memset.o
27memset-$(CONFIG_CPU_SH4) := memset-sh4.o
28
Paul Mundt221c0072009-07-27 20:55:46 +090029lib-$(CONFIG_MMU) += copy_page.o __clear_user.o
Paul Mundt473d1cf2009-07-11 19:56:58 +090030lib-$(CONFIG_MCOUNT) += mcount.o
Stuart Menefydfc34942009-10-27 15:14:06 +000031lib-y += $(memcpy-y) $(memset-y) $(udivsi3-y)
Paul Mundt98366c22007-11-06 17:35:12 +090032
matt mooneya234ca02010-09-23 06:51:21 +000033ccflags-y := -Werror