1 # ===========================================================================
2 # OpenWrt configuration targets
3 # These targets are used from top-level makefile
5 # ===========================================================================
6 # Shared Makefile for the various kconfig executables:
7 # conf: Used for defconfig, oldconfig and related targets
8 # mconf: Used for the mconfig target.
9 # Utilizes the lxdialog package
10 # object files used by all kconfig flavours
12 conf-objs
:= conf.o zconf.tab.o
13 mconf-objs
:= mconf.o zconf.tab.o
15 clean-files
:= lkc_defs.h qconf.moc .tmp_qtcheck \
16 .tmp_gtkcheck zconf.tab.c
lex.zconf.c zconf.hash.c
18 all: conf mconf lxdialog
28 rm -f
*.o
$(clean-files
) conf mconf
29 $(MAKE
) -C lxdialog
clean
31 zconf.tab.o
: lex.zconf.c zconf.hash.c
33 kconfig_load.o
: lkc_defs.h
35 lkc_defs.h
: $(src
)/lkc_proto.h
36 sed
< $< > $@
's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
40 zconf.hash.c
: zconf.gperf
43 cp
$@_shipped
$@ || bison
-l
-b
$* -p
$(notdir $*) $<
46 cp
$@_shipped
$@ || flex
-L
-P
$(notdir $*) -o
$@
$<
49 cp
$@_shipped
$@ || gperf
< $< > $@