aboutsummaryrefslogtreecommitdiffstats
path: root/init/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'init/Makefile')
-rw-r--r--init/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/init/Makefile b/init/Makefile
index 9cd871ce5784..633a268d270d 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -15,6 +15,14 @@ clean-files := ../include/linux/compile.h
15 15
16# dependencies on generated files need to be listed explicitly 16# dependencies on generated files need to be listed explicitly
17 17
18$(obj)/main.o: include/linux/compile.h
19$(obj)/version.o: include/linux/compile.h 18$(obj)/version.o: include/linux/compile.h
20 19
20# compile.h changes depending on hostname, generation number, etc,
21# so we regenerate it always.
22# mkcompile_h will make sure to only update the
23# actual file if its content has changed.
24
25include/linux/compile.h: FORCE
26 @echo ' CHK $@'
27 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
28 "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(CFLAGS)"