2 # Makefile for alpha-specific library files..
6 $(CPP) -D__ASSEMBLY__ $(CFLAGS) -o $*.s $<
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.
13 ifeq ($(CONFIG_ALPHA_EV6),y)
17 # Several make use of the cttz instruction introduced in ev67.
19 ifeq ($(CONFIG_ALPHA_EV67),y)
23 OBJS = __divqu.o __remqu.o __divlu.o __remlu.o \
43 $(ev6)strncpy_from_user.o \
44 $(ev67)strlen_user.o \
45 $(ev6)csum_ipv6_magic.o \
50 callback_srm.o srm_puts.o srm_printk.o
52 ifeq ($(CONFIG_SMP),y)
53 OBJS += dec_and_lock.o
57 $(AR) rcs lib.a $(OBJS)
59 __divqu.o: $(ev6)divide.S
60 $(CC) $(AFLAGS) -DDIV -c -o __divqu.o $(ev6)divide.S
62 __remqu.o: $(ev6)divide.S
63 $(CC) $(AFLAGS) -DREM -c -o __remqu.o $(ev6)divide.S
65 __divlu.o: $(ev6)divide.S
66 $(CC) $(AFLAGS) -DDIV -DINTSIZE -c -o __divlu.o $(ev6)divide.S
68 __remlu.o: $(ev6)divide.S
69 $(CC) $(AFLAGS) -DREM -DINTSIZE -c -o __remlu.o $(ev6)divide.S
73 include $(TOPDIR)/Rules.make