summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/Makefile
blob: 0670ff2738e65ac72b7bbd4e0c1383c64f59e908 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# $Id: Makefile,v 1.26 1998/07/26 03:02:43 davem Exp $
# Makefile for Sparc library files..
#

OBJS  = mul.o rem.o sdiv.o udiv.o umul.o urem.o ashrdi3.o memcpy.o memset.o \
        strlen.o checksum.o blockops.o memscan.o memcmp.o strncmp.o \
	strncpy_from_user.o divdi3.o udivdi3.o strlen_user.o \
	copy_user.o locks.o atomic.o bitops.o debuglocks.o

ifdef CONFIG_SMP
OBJS += irqlock.o
endif

lib.a: $(OBJS)
	$(AR) rcs lib.a $(OBJS)
	sync

checksum.o: checksum.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o checksum.o checksum.S

memcpy.o: memcpy.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o memcpy.o memcpy.S

memcmp.o: memcmp.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o memcmp.o memcmp.S

memscan.o: memscan.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o memscan.o memscan.S

strncmp.o: strncmp.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o strncmp.o strncmp.S

strncpy_from_user.o: strncpy_from_user.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o strncpy_from_user.o strncpy_from_user.S

strlen_user.o: strlen_user.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o strlen_user.o strlen_user.S

copy_user.o: copy_user.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o copy_user.o copy_user.S

blockops.o: blockops.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o blockops.o blockops.S

memset.o: memset.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o memset.o memset.S

locks.o: locks.S
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -ansi -c -o locks.o locks.S

atomic.o: atomic.S
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -ansi -c -o atomic.o atomic.S

bitops.o: bitops.S
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -ansi -c -o bitops.o bitops.S

ifdef CONFIG_SMP
irqlock.o: irqlock.S
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -ansi -c -o irqlock.o irqlock.S
endif

strlen.o: strlen.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o strlen.o strlen.S

divdi3.o: divdi3.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o divdi3.o divdi3.S

udivdi3.o: udivdi3.S
	$(CC) -D__ASSEMBLY__ -ansi -c -o udivdi3.o udivdi3.S

mul.o: mul.S
	$(CC) -D__ASSEMBLY__ -c -o mul.o mul.S

rem.o: rem.S
	$(CC) -D__ASSEMBLY__ -DST_DIV0=0x2 -c -o rem.o rem.S

sdiv.o: sdiv.S
	$(CC) -D__ASSEMBLY__ -DST_DIV0=0x2 -c -o sdiv.o sdiv.S

udiv.o: udiv.S
	$(CC) -D__ASSEMBLY__ -DST_DIV0=0x2 -c -o udiv.o udiv.S

umul.o: umul.S
	$(CC) -D__ASSEMBLY__ -c -o umul.o umul.S

urem.o: urem.S
	$(CC) -D__ASSEMBLY__ -DST_DIV0=0x2 -c -o urem.o urem.S

ashrdi3.o: ashrdi3.S
	$(CC) -D__ASSEMBLY__ -c -o ashrdi3.o ashrdi3.S

dep:

include $(TOPDIR)/Rules.make