Makefile 874 B

12345678910111213141516171819202122232425262728
  1. #
  2. # Makefile for the linux kernel.
  3. #
  4. obj-y := main.o version.o mounts.o initramfs.o
  5. obj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.o
  6. mounts-y := do_mounts.o
  7. mounts-$(CONFIG_BLK_DEV_RAM) += do_mounts_rd.o
  8. mounts-$(CONFIG_BLK_DEV_INITRD) += do_mounts_initrd.o
  9. mounts-$(CONFIG_BLK_DEV_MD) += do_mounts_md.o
  10. # files to be removed upon make clean
  11. clean-files := ../include/linux/compile.h
  12. # dependencies on generated files need to be listed explicitly
  13. $(obj)/version.o: include/linux/compile.h
  14. # compile.h changes depending on hostname, generation number, etc,
  15. # so we regenerate it always.
  16. # mkcompile_h will make sure to only update the
  17. # actual file if its content has changed.
  18. include/linux/compile.h: FORCE
  19. @echo ' CHK $@'
  20. $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
  21. "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(CFLAGS)"