Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for alpha-specific library files..
  4. #
  5. asflags-y := $(KBUILD_CFLAGS)
  6. # Many of these routines have implementations tuned for ev6.
  7. # Choose them iff we're targeting ev6 specifically.
  8. ev6-$(CONFIG_ALPHA_EV6) := ev6-
  9. # Several make use of the cttz instruction introduced in ev67.
  10. ev67-$(CONFIG_ALPHA_EV67) := ev67-
  11. lib-y = __divqu.o __remqu.o __divlu.o __remlu.o \
  12. udiv-qrnnd.o \
  13. udelay.o \
  14. $(ev6-y)memset.o \
  15. $(ev6-y)memcpy.o \
  16. memmove.o \
  17. checksum.o \
  18. csum_partial_copy.o \
  19. $(ev67-y)strlen.o \
  20. stycpy.o \
  21. styncpy.o \
  22. $(ev67-y)strchr.o \
  23. $(ev67-y)strrchr.o \
  24. $(ev6-y)memchr.o \
  25. $(ev6-y)copy_user.o \
  26. $(ev6-y)clear_user.o \
  27. $(ev6-y)csum_ipv6_magic.o \
  28. $(ev6-y)clear_page.o \
  29. $(ev6-y)copy_page.o \
  30. fpreg.o \
  31. callback_srm.o srm_puts.o srm_printk.o \
  32. fls.o
  33. # The division routines are built from single source, with different defines.
  34. AFLAGS___divqu.o = -DDIV
  35. AFLAGS___remqu.o = -DREM
  36. AFLAGS___divlu.o = -DDIV -DINTSIZE
  37. AFLAGS___remlu.o = -DREM -DINTSIZE
  38. $(addprefix $(obj)/,__divqu.o __remqu.o __divlu.o __remlu.o): \
  39. $(src)/$(ev6-y)divide.S FORCE
  40. $(call if_changed_rule,as_o_S)