summaryrefslogtreecommitdiffstats
path: root/arch/ia64/lib/Makefile
blob: 90e6971791d8218d84a59ba6575823e393502532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Makefile for ia64-specific library routines..
#

.S.o:
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c $< -o $@

L_TARGET = lib.a

L_OBJS  = __divsi3.o __udivsi3.o __modsi3.o __umodsi3.o					\
	__divdi3.o __udivdi3.o __moddi3.o __umoddi3.o					\
	checksum.o clear_page.o csum_partial_copy.o copy_page.o				\
	copy_user.o clear_user.o strncpy_from_user.o strlen_user.o strnlen_user.o	\
	flush.o do_csum.o

ifneq ($(CONFIG_ITANIUM_ASTEP_SPECIFIC),y)
  L_OBJS += memcpy.o memset.o strlen.o
endif

LX_OBJS = io.o

IGNORE_FLAGS_OBJS =	__divsi3.o __udivsi3.o __modsi3.o __umodsi3.o \
			__divdi3.o __udivdi3.o __moddi3.o __umoddi3.o

$(L_TARGET):

__divdi3.o: idiv64.S
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -o $@ $<

__udivdi3.o: idiv64.S
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -DUNSIGNED -c -o $@ $<

__moddi3.o: idiv64.S
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -DMODULO -c -o $@ $<

__umoddi3.o: idiv64.S
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -DMODULO -DUNSIGNED -c -o $@ $<

__divsi3.o: idiv32.S
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -o $@ $<

__udivsi3.o: idiv32.S
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -DUNSIGNED -c -o $@ $<

__modsi3.o: idiv32.S
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -DMODULO -c -o $@ $<

__umodsi3.o: idiv32.S
	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -DMODULO -DUNSIGNED -c -o $@ $<

include $(TOPDIR)/Rules.make