| # Makefile for alpha-specific library files.. |
| EXTRA_AFLAGS := $(KBUILD_CFLAGS) |
| # Many of these routines have implementations tuned for ev6. |
| # Choose them iff we're targeting ev6 specifically. |
| ev6-$(CONFIG_ALPHA_EV6) := ev6- |
| # Several make use of the cttz instruction introduced in ev67. |
| ev67-$(CONFIG_ALPHA_EV67) := ev67- |
| lib-y = __divqu.o __remqu.o __divlu.o __remlu.o \ |
| $(ev6-y)strncpy_from_user.o \ |
| $(ev6-y)csum_ipv6_magic.o \ |
| callback_srm.o srm_puts.o srm_printk.o \ |
| lib-$(CONFIG_SMP) += dec_and_lock.o |
| # The division routines are built from single source, with different defines. |
| AFLAGS___divlu.o = -DDIV -DINTSIZE |
| AFLAGS___remlu.o = -DREM -DINTSIZE |
| $(obj)/__divqu.o: $(obj)/$(ev6-y)divide.S |
| $(obj)/__remqu.o: $(obj)/$(ev6-y)divide.S |
| $(obj)/__divlu.o: $(obj)/$(ev6-y)divide.S |
| $(obj)/__remlu.o: $(obj)/$(ev6-y)divide.S |