Makefile 1017 B

12345678910111213141516171819202122232425262728
  1. obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
  2. ifdef CONFIG_FUNCTION_TRACER
  3. CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE)
  4. CFLAGS_REMOVE_lockdep_proc.o = $(CC_FLAGS_FTRACE)
  5. CFLAGS_REMOVE_mutex-debug.o = $(CC_FLAGS_FTRACE)
  6. CFLAGS_REMOVE_rtmutex-debug.o = $(CC_FLAGS_FTRACE)
  7. endif
  8. obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
  9. obj-$(CONFIG_LOCKDEP) += lockdep.o
  10. ifeq ($(CONFIG_PROC_FS),y)
  11. obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
  12. endif
  13. obj-$(CONFIG_SMP) += spinlock.o
  14. obj-$(CONFIG_LOCK_SPIN_ON_OWNER) += osq_lock.o
  15. obj-$(CONFIG_SMP) += lglock.o
  16. obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
  17. obj-$(CONFIG_QUEUED_SPINLOCKS) += qspinlock.o
  18. obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
  19. obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
  20. obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
  21. obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
  22. obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
  23. obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem-xadd.o
  24. obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o
  25. obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o