Makefile 1.17 KB
Newer Older
1 2 3
###
# scripts contains sources for various helper programs used throughout
# the kernel for the build process.
4
# ---------------------------------------------------------------------------
5 6 7
# fix-dep: 	 Used to generate dependency information during build process
# split-include: Divide all config symbols up in a number of files in
#                include/config/...
8
# docproc: 	 Preprocess .tmpl file in order to generate .sgml docs
9
# conmakehash:	 Create arrays for initializing the kernel console tables
10

11
host-progs    := fixdep split-include conmakehash docproc kallsyms modpost \
12
		 mk_elfconfig
13
build-targets := $(host-progs) empty.o
14

15 16
modpost-objs  := modpost.o file2alias.o

17
# Let clean descend into subdirs
18
subdir-	:= lxdialog kconfig
19

20
# fixdep is needed to compile other host programs
21
$(addprefix $(obj)/,$(filter-out fixdep,$(build-targets))): $(obj)/fixdep
22 23 24

# dependencies on generated files need to be listed explicitly

25
$(obj)/modpost.o $(obj)/file2alias.o: $(obj)/elfconfig.h
26

27
quiet_cmd_elfconfig = MKELF   $@
28 29 30 31 32
      cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@

$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
	$(call if_changed,elfconfig)

33
targets += $(obj)/elfconfig.h