aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r--scripts/kconfig/Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index c65c435c4923..9d67782b812f 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -114,7 +114,7 @@ gconf-objs := gconf.o kconfig_load.o zconf.tab.o
114endif 114endif
115 115
116clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ 116clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
117 .tmp_gtkcheck zconf.tab.c zconf.tab.h lex.zconf.c 117 .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c
118 118
119# Needed for systems without gettext 119# Needed for systems without gettext
120KBUILD_HAVE_NLS := $(shell \ 120KBUILD_HAVE_NLS := $(shell \
@@ -136,12 +136,6 @@ HOSTLOADLIBES_gconf = `pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --libs`
136HOSTCFLAGS_gconf.o = `pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --cflags` \ 136HOSTCFLAGS_gconf.o = `pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --cflags` \
137 -D LKC_DIRECT_LINK 137 -D LKC_DIRECT_LINK
138 138
139$(obj)/conf.o $(obj)/mconf.o $(obj)/qconf.o $(obj)/gconf.o $(obj)/kxgettext: $(obj)/zconf.tab.h
140
141$(obj)/zconf.tab.h: $(src)/zconf.tab.h_shipped
142$(obj)/zconf.tab.c: $(src)/zconf.tab.c_shipped
143$(obj)/lex.zconf.c: $(src)/lex.zconf.c_shipped
144
145$(obj)/qconf.o: $(obj)/.tmp_qtcheck 139$(obj)/qconf.o: $(obj)/.tmp_qtcheck
146 140
147ifeq ($(qconf-target),1) 141ifeq ($(qconf-target),1)
@@ -207,7 +201,7 @@ $(obj)/.tmp_gtkcheck:
207 fi 201 fi
208endif 202endif
209 203
210$(obj)/zconf.tab.o: $(obj)/lex.zconf.c 204$(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
211 205
212$(obj)/kconfig_load.o: $(obj)/lkc_defs.h 206$(obj)/kconfig_load.o: $(obj)/lkc_defs.h
213 207
@@ -223,20 +217,27 @@ $(obj)/lkc_defs.h: $(src)/lkc_proto.h
223 217
224 218
225### 219###
226# The following requires flex/bison 220# The following requires flex/bison/gperf
227# By default we use the _shipped versions, uncomment the following line if 221# By default we use the _shipped versions, uncomment the following line if
228# you are modifying the flex/bison src. 222# you are modifying the flex/bison src.
229# LKC_GENPARSER := 1 223# LKC_GENPARSER := 1
230 224
231ifdef LKC_GENPARSER 225ifdef LKC_GENPARSER
232 226
233$(obj)/zconf.tab.c: $(obj)/zconf.y 227$(obj)/zconf.tab.c: $(src)/zconf.y
234$(obj)/zconf.tab.h: $(obj)/zconf.tab.c 228$(obj)/lex.zconf.c: $(src)/zconf.l
229$(obj)/zconf.hash.c: $(src)/zconf.gperf
235 230
236%.tab.c: %.y 231%.tab.c: %.y
237 bison -t -d -v -b $* -p $(notdir $*) $< 232 bison -l -b $* -p $(notdir $*) $<
233 cp $@ $@_shipped
238 234
239lex.%.c: %.l 235lex.%.c: %.l
240 flex -P$(notdir $*) -o$@ $< 236 flex -L -P$(notdir $*) -o$@ $<
237 cp $@ $@_shipped
238
239%.hash.c: %.gperf
240 gperf < $< > $@
241 cp $@ $@_shipped
241 242
242endif 243endif