- Andries Brouwer: final isofs pieces.
[davej-history.git] / arch / alpha / lib / Makefile
blob5de58a6ad2addcccb4bf1746d756231b1af2f162
2 # Makefile for alpha-specific library files..
5 .S.s:
6 $(CPP) -D__ASSEMBLY__ $(CFLAGS) -o $*.s $<
7 .S.o:
8 $(CC) -D__ASSEMBLY__ $(CFLAGS) -c -o $*.o $<
10 # Many of these routines have implementations tuned for ev6.
11 # Choose them iff we're targeting ev6 specifically.
12 ev6 :=
13 ifeq ($(CONFIG_ALPHA_EV6),y)
14 ev6 := ev6-
15 endif
17 # Several make use of the cttz instruction introduced in ev67.
18 ev67 :=
19 ifeq ($(CONFIG_ALPHA_EV67),y)
20 ev67 := ev67-
21 endif
23 OBJS = __divqu.o __remqu.o __divlu.o __remlu.o memset.o memcpy.o io.o \
24 checksum.o csum_partial_copy.o $(ev67)strlen.o \
25 $(ev67)strcat.o $(ev6)strcpy.o $(ev67)strncat.o $(ev6)strncpy.o \
26 stxcpy.o stxncpy.o $(ev67)strchr.o strrchr.o memchr.o \
27 $(ev6)copy_user.o $(ev6)clear_user.o $(ev6)strncpy_from_user.o \
28 $(ev67)strlen_user.o $(ev6)csum_ipv6_magic.o strcasecmp.o fpreg.o \
29 callback_srm.o srm_puts.o srm_printk.o
31 lib.a: $(OBJS)
32 $(AR) rcs lib.a $(OBJS)
34 __divqu.o: $(ev6)divide.S
35 $(CC) $(AFLAGS) -DDIV -c -o __divqu.o $(ev6)divide.S
37 __remqu.o: $(ev6)divide.S
38 $(CC) $(AFLAGS) -DREM -c -o __remqu.o $(ev6)divide.S
40 __divlu.o: $(ev6)divide.S
41 $(CC) $(AFLAGS) -DDIV -DINTSIZE -c -o __divlu.o $(ev6)divide.S
43 __remlu.o: $(ev6)divide.S
44 $(CC) $(AFLAGS) -DREM -DINTSIZE -c -o __remlu.o $(ev6)divide.S
46 dep:
48 include $(TOPDIR)/Rules.make