2 # Makefile for the linux kernel.
5 obj-y := main.o version.o mounts.o initramfs.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
12 extra-$(subst m,y,$(CONFIG_CRASH_DUMP)) += kerntypes.o
13 CFLAGS_kerntypes.o := -gstabs
15 # files to be removed upon make clean
16 clean-files := ../include/linux/compile.h
18 # dependencies on generated files need to be listed explicitly
20 $(obj)/version.o: include/linux/compile.h
22 # compile.h changes depending on hostname, generation number, etc,
23 # so we regenerate it always.
24 # mkcompile_h will make sure to only update the
25 # actual file if its content has changed.
27 include/linux/compile.h: FORCE
29 @$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"