ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / scripts / Makefile
1 ###
2 # scripts contains sources for various helper programs used throughout
3 # the kernel for the build process.
4 # ---------------------------------------------------------------------------
5 # docproc:       Preprocess .tmpl file in order to generate .sgml docs
6 # conmakehash:   Create arrays for initializing the kernel console tables
7
8 host-progs      := conmakehash kallsyms modpost mk_elfconfig pnmtologo bin2c
9 always          := $(host-progs) empty.o
10
11 modpost-objs    := modpost.o file2alias.o sumversion.o
12
13 subdir-$(CONFIG_MODVERSIONS)    += genksyms
14
15 # Let clean descend into subdirs
16 subdir- += basic lxdialog kconfig
17
18 # dependencies on generated files need to be listed explicitly
19
20 $(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
21
22 quiet_cmd_elfconfig = MKELF   $@
23       cmd_elfconfig = $(obj)/mk_elfconfig $(ARCH) < $< > $@
24
25 $(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
26         $(call if_changed,elfconfig)
27
28 targets += elfconfig.h