Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Makefile for alpha-specific library files..
  3. #
  4. asflags-y := $(KBUILD_CFLAGS)
  5. ccflags-y := -Werror
  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. udelay.o \
  13. $(ev6-y)memset.o \
  14. $(ev6-y)memcpy.o \
  15. memmove.o \
  16. checksum.o \
  17. csum_partial_copy.o \
  18. $(ev67-y)strlen.o \
  19. $(ev67-y)strcat.o \
  20. strcpy.o \
  21. $(ev67-y)strncat.o \
  22. strncpy.o \
  23. $(ev6-y)stxcpy.o \
  24. $(ev6-y)stxncpy.o \
  25. $(ev67-y)strchr.o \
  26. $(ev67-y)strrchr.o \
  27. $(ev6-y)memchr.o \
  28. $(ev6-y)copy_user.o \
  29. $(ev6-y)clear_user.o \
  30. $(ev6-y)csum_ipv6_magic.o \
  31. $(ev6-y)clear_page.o \
  32. $(ev6-y)copy_page.o \
  33. fpreg.o \
  34. callback_srm.o srm_puts.o srm_printk.o \
  35. fls.o
  36. lib-$(CONFIG_SMP) += dec_and_lock.o
  37. # The division routines are built from single source, with different defines.
  38. AFLAGS___divqu.o = -DDIV
  39. AFLAGS___remqu.o = -DREM
  40. AFLAGS___divlu.o = -DDIV -DINTSIZE
  41. AFLAGS___remlu.o = -DREM -DINTSIZE
  42. $(obj)/__divqu.o: $(obj)/$(ev6-y)divide.S
  43. $(cmd_as_o_S)
  44. $(obj)/__remqu.o: $(obj)/$(ev6-y)divide.S
  45. $(cmd_as_o_S)
  46. $(obj)/__divlu.o: $(obj)/$(ev6-y)divide.S
  47. $(cmd_as_o_S)
  48. $(obj)/__remlu.o: $(obj)/$(ev6-y)divide.S
  49. $(cmd_as_o_S)