[PATCH] Remove Rules.make from Makefiles (3/3)
[linux-flexiantxendom0-3.2.10.git] / init / Makefile
1 #
2 # Makefile for the linux kernel.
3 #
4
5 obj-y    := main.o version.o do_mounts.o initramfs.o
6
7 # files to be removed upon make clean
8 clean-files := ../include/linux/compile.h
9
10 # dependencies on generated files need to be listed explicitly
11
12 $(obj)/version.o: include/linux/compile.h
13
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
19 include/linux/compile.h: FORCE
20         @echo -n '  Generating $@'
21         @sh $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"