xref: /openbmc/linux/arch/ia64/lib/Makefile (revision ecf5b72d)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for ia64-specific library routines..
4#
5
6lib-y := io.o __divsi3.o __udivsi3.o __modsi3.o __umodsi3.o		\
7	__divdi3.o __udivdi3.o __moddi3.o __umoddi3.o			\
8	checksum.o clear_page.o csum_partial_copy.o			\
9	clear_user.o strncpy_from_user.o strnlen_user.o			\
10	flush.o ip_fast_csum.o do_csum.o				\
11	memset.o strlen.o xor.o
12
13lib-$(CONFIG_ITANIUM)	+= copy_page.o copy_user.o memcpy.o
14lib-$(CONFIG_MCKINLEY)	+= copy_page_mck.o memcpy_mck.o
15
16AFLAGS___divdi3.o	=
17AFLAGS___udivdi3.o	= -DUNSIGNED
18AFLAGS___moddi3.o	= 	     -DMODULO
19AFLAGS___umoddi3.o	= -DUNSIGNED -DMODULO
20
21AFLAGS___divsi3.o	=
22AFLAGS___udivsi3.o	= -DUNSIGNED
23AFLAGS___modsi3.o	=	     -DMODULO
24AFLAGS___umodsi3.o	= -DUNSIGNED -DMODULO
25
26$(obj)/__divdi3.o: $(src)/idiv64.S FORCE
27	$(call if_changed_rule,as_o_S)
28
29$(obj)/__udivdi3.o: $(src)/idiv64.S FORCE
30	$(call if_changed_rule,as_o_S)
31
32$(obj)/__moddi3.o: $(src)/idiv64.S FORCE
33	$(call if_changed_rule,as_o_S)
34
35$(obj)/__umoddi3.o: $(src)/idiv64.S FORCE
36	$(call if_changed_rule,as_o_S)
37
38$(obj)/__divsi3.o: $(src)/idiv32.S FORCE
39	$(call if_changed_rule,as_o_S)
40
41$(obj)/__udivsi3.o: $(src)/idiv32.S FORCE
42	$(call if_changed_rule,as_o_S)
43
44$(obj)/__modsi3.o: $(src)/idiv32.S FORCE
45	$(call if_changed_rule,as_o_S)
46
47$(obj)/__umodsi3.o: $(src)/idiv32.S FORCE
48	$(call if_changed_rule,as_o_S)
49