Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Makefile for SuperH-specific library files.. |
| 3 | # |
| 4 | |
Adrian Bunk | e3b0860 | 2008-06-18 01:30:53 +0300 | [diff] [blame] | 5 | lib-y = delay.o memset.o memmove.o memchr.o \ |
Paul Mundt | cdf50b2 | 2007-03-28 17:14:45 +0900 | [diff] [blame] | 6 | checksum.o strlen.o div64.o div64-generic.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
Paul Mundt | 1aad54a | 2008-11-18 17:33:48 +0900 | [diff] [blame] | 8 | # Extracted from libgcc |
| 9 | lib-y += movmem.o ashldi3.o ashrdi3.o lshrdi3.o \ |
| 10 | ashlsi3.o ashrsi3.o ashiftrt.o lshrsi3.o \ |
| 11 | udiv_qrnnd.o |
| 12 | |
Takashi YOSHII | 3b04122 | 2008-12-08 11:33:06 +0900 | [diff] [blame] | 13 | udivsi3-y := udivsi3_i4i-Os.o |
Paul Mundt | 1aad54a | 2008-11-18 17:33:48 +0900 | [diff] [blame] | 14 | |
| 15 | ifneq ($(CONFIG_CC_OPTIMIZE_FOR_SIZE),y) |
Takashi YOSHII | 3b04122 | 2008-12-08 11:33:06 +0900 | [diff] [blame] | 16 | udivsi3-$(CONFIG_CPU_SH3) := udivsi3_i4i.o |
| 17 | udivsi3-$(CONFIG_CPU_SH4) := udivsi3_i4i.o |
Paul Mundt | 1aad54a | 2008-11-18 17:33:48 +0900 | [diff] [blame] | 18 | endif |
Takashi YOSHII | 3b04122 | 2008-12-08 11:33:06 +0900 | [diff] [blame] | 19 | udivsi3-y += udivsi3.o |
Paul Mundt | 1aad54a | 2008-11-18 17:33:48 +0900 | [diff] [blame] | 20 | |
Adrian Bunk | e3b0860 | 2008-06-18 01:30:53 +0300 | [diff] [blame] | 21 | obj-y += io.o |
| 22 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | memcpy-y := memcpy.o |
| 24 | memcpy-$(CONFIG_CPU_SH4) := memcpy-sh4.o |
| 25 | |
Paul Mundt | 221c007 | 2009-07-27 20:55:46 +0900 | [diff] [blame^] | 26 | lib-$(CONFIG_MMU) += copy_page.o __clear_user.o |
Paul Mundt | 473d1cf | 2009-07-11 19:56:58 +0900 | [diff] [blame] | 27 | lib-$(CONFIG_MCOUNT) += mcount.o |
Paul Mundt | 1aad54a | 2008-11-18 17:33:48 +0900 | [diff] [blame] | 28 | lib-y += $(memcpy-y) $(udivsi3-y) |
Paul Mundt | 98366c2 | 2007-11-06 17:35:12 +0900 | [diff] [blame] | 29 | |
| 30 | EXTRA_CFLAGS += -Werror |