Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Makefile for the linux memory manager.
  3. #
  4. mmu-y := nommu.o
  5. mmu-$(CONFIG_MMU) := fremap.o highmem.o madvise.o memory.o mincore.o \
  6. mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
  7. vmalloc.o pagewalk.o pgtable-generic.o \
  8. process_vm_access.o
  9. obj-y := filemap.o mempool.o oom_kill.o fadvise.o \
  10. maccess.o page_alloc.o page-writeback.o \
  11. readahead.o swap.o truncate.o vmscan.o shmem.o \
  12. prio_tree.o util.o mmzone.o vmstat.o backing-dev.o \
  13. page_isolation.o mm_init.o mmu_context.o percpu.o \
  14. compaction.o list_lru.o $(mmu-y) \
  15. showmem.o vmpressure.o
  16. obj-y += init-mm.o
  17. ifdef CONFIG_NO_BOOTMEM
  18. obj-y += nobootmem.o
  19. else
  20. obj-y += bootmem.o
  21. endif
  22. obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o
  23. obj-$(CONFIG_BOUNCE) += bounce.o
  24. obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o
  25. obj-$(CONFIG_FRONTSWAP) += frontswap.o
  26. obj-$(CONFIG_ZSWAP) += zswap.o
  27. obj-$(CONFIG_HAS_DMA) += dmapool.o
  28. obj-$(CONFIG_HUGETLBFS) += hugetlb.o
  29. obj-$(CONFIG_NUMA) += mempolicy.o
  30. obj-$(CONFIG_SPARSEMEM) += sparse.o
  31. obj-$(CONFIG_SPARSEMEM_VMEMMAP) += sparse-vmemmap.o
  32. obj-$(CONFIG_SLOB) += slob.o
  33. obj-$(CONFIG_MMU_NOTIFIER) += mmu_notifier.o
  34. obj-$(CONFIG_KSM) += ksm.o
  35. obj-$(CONFIG_PAGE_POISONING) += debug-pagealloc.o
  36. obj-$(CONFIG_SLAB) += slab.o
  37. obj-$(CONFIG_SLUB) += slub.o
  38. obj-$(CONFIG_KMEMCHECK) += kmemcheck.o
  39. obj-$(CONFIG_FAILSLAB) += failslab.o
  40. obj-$(CONFIG_MEMORY_HOTPLUG) += memory_hotplug.o
  41. obj-$(CONFIG_FS_XIP) += filemap_xip.o
  42. obj-$(CONFIG_MIGRATION) += migrate.o
  43. obj-$(CONFIG_QUICKLIST) += quicklist.o
  44. obj-$(CONFIG_TRANSPARENT_HUGEPAGE) += huge_memory.o
  45. obj-$(CONFIG_MEMCG) += memcontrol.o page_cgroup.o
  46. obj-$(CONFIG_MEMORY_FAILURE) += memory-failure.o
  47. obj-$(CONFIG_HWPOISON_INJECT) += hwpoison-inject.o
  48. obj-$(CONFIG_DEBUG_KMEMLEAK) += kmemleak.o
  49. obj-$(CONFIG_DEBUG_KMEMLEAK_TEST) += kmemleak-test.o
  50. obj-$(CONFIG_CLEANCACHE) += cleancache.o
  51. obj-$(CONFIG_ZSMALLOC_NEW) += zsmalloc.o
  52. obj-$(CONFIG_ZCACHE) += zcache.o
  53. obj-$(CONFIG_ZBUD) += zbud.o
  54. obj-$(CONFIG_ZPOOL) += zpool.o
  55. obj-$(CONFIG_ZSMALLOC) += zsmalloc.o