Makefile 921 B

1234567891011121314151617181920212223242526272829
  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_DEVFS_FS) += do_mounts_devfs.o
  8. mounts-$(CONFIG_BLK_DEV_RAM) += do_mounts_rd.o
  9. mounts-$(CONFIG_BLK_DEV_INITRD) += do_mounts_initrd.o
  10. mounts-$(CONFIG_BLK_DEV_MD) += do_mounts_md.o
  11. # files to be removed upon make clean
  12. clean-files := ../include/linux/compile.h
  13. # dependencies on generated files need to be listed explicitly
  14. $(obj)/version.o: include/linux/compile.h
  15. # compile.h changes depending on hostname, generation number, etc,
  16. # so we regenerate it always.
  17. # mkcompile_h will make sure to only update the
  18. # actual file if its content has changed.
  19. include/linux/compile.h: FORCE
  20. @echo ' CHK $@'
  21. $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
  22. "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(CFLAGS)"