upgrade to fedora-2.6.12-1.1398.FC4 + vserver 2.0.rc7
[linux-2.6.git] / init / Makefile
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
9 mounts-$(CONFIG_DEVFS_FS)       += do_mounts_devfs.o
10 mounts-$(CONFIG_BLK_DEV_RAM)    += do_mounts_rd.o
11 mounts-$(CONFIG_BLK_DEV_INITRD) += do_mounts_initrd.o
12 mounts-$(CONFIG_BLK_DEV_MD)     += do_mounts_md.o
13
14 extra-$(subst m,y,$(CONFIG_CRASH_DUMP)) += kerntypes.o
15 CFLAGS_kerntypes.o              := -gstabs
16
17 # files to be removed upon make clean
18 clean-files := ../include/linux/compile.h
19
20 # dependencies on generated files need to be listed explicitly
21
22 $(obj)/version.o: include/linux/compile.h
23
24 # compile.h changes depending on hostname, generation number, etc,
25 # so we regenerate it always.
26 # mkcompile_h will make sure to only update the
27 # actual file if its content has changed.
28
29 include/linux/compile.h: FORCE
30         @echo '  CHK     $@'
31         @$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"