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