Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the linux kernel. |
| 3 | # |
| 4 | |
| 5 | obj-y := main.o version.o mounts.o initramfs.o |
| 6 | obj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.o |
| 7 | |
| 8 | mounts-y := do_mounts.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | mounts-$(CONFIG_BLK_DEV_RAM) += do_mounts_rd.o |
| 10 | mounts-$(CONFIG_BLK_DEV_INITRD) += do_mounts_initrd.o |
| 11 | mounts-$(CONFIG_BLK_DEV_MD) += do_mounts_md.o |
| 12 | |
| 13 | # files to be removed upon make clean |
| 14 | clean-files := ../include/linux/compile.h |
| 15 | |
| 16 | # dependencies on generated files need to be listed explicitly |
| 17 | |
Herbert Poetzl | a2ee864 | 2006-12-08 02:36:00 -0800 | [diff] [blame] | 18 | $(obj)/main.o: include/linux/compile.h |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | $(obj)/version.o: include/linux/compile.h |
| 20 | |
| 21 | # compile.h changes depending on hostname, generation number, etc, |
| 22 | # so we regenerate it always. |
| 23 | # mkcompile_h will make sure to only update the |
| 24 | # actual file if its content has changed. |
| 25 | |
| 26 | include/linux/compile.h: FORCE |
| 27 | @echo ' CHK $@' |
Sam Ravnborg | bd5bdd8 | 2005-07-14 20:18:07 +0000 | [diff] [blame] | 28 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ |
| 29 | "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(CFLAGS)" |