diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 84abb2fc61d1..82d2eb285b70 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -204,7 +204,7 @@ ifeq ($(gconf-target),1) | |||
204 | endif | 204 | endif |
205 | 205 | ||
206 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck | 206 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck |
207 | clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h | 207 | clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h |
208 | clean-files += mconf qconf gconf nconf | 208 | clean-files += mconf qconf gconf nconf |
209 | clean-files += config.pot linux.pot | 209 | clean-files += config.pot linux.pot |
210 | 210 | ||
@@ -220,9 +220,12 @@ always := dochecklxdialog | |||
220 | HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS)) | 220 | HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS)) |
221 | 221 | ||
222 | # generated files seem to need this to find local include files | 222 | # generated files seem to need this to find local include files |
223 | HOSTCFLAGS_lex.zconf.o := -I$(src) | 223 | HOSTCFLAGS_zconf.lex.o := -I$(src) |
224 | HOSTCFLAGS_zconf.tab.o := -I$(src) | 224 | HOSTCFLAGS_zconf.tab.o := -I$(src) |
225 | 225 | ||
226 | LEX_PREFIX_zconf := zconf | ||
227 | YACC_PREFIX_zconf := zconf | ||
228 | |||
226 | HOSTLOADLIBES_qconf = $(KC_QT_LIBS) | 229 | HOSTLOADLIBES_qconf = $(KC_QT_LIBS) |
227 | HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) | 230 | HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) |
228 | 231 | ||
@@ -316,7 +319,7 @@ $(obj)/.tmp_gtkcheck: | |||
316 | fi | 319 | fi |
317 | endif | 320 | endif |
318 | 321 | ||
319 | $(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c | 322 | $(obj)/zconf.tab.o: $(obj)/zconf.lex.c $(obj)/zconf.hash.c |
320 | 323 | ||
321 | $(obj)/qconf.o: $(obj)/qconf.moc | 324 | $(obj)/qconf.o: $(obj)/qconf.moc |
322 | 325 | ||
@@ -328,28 +331,3 @@ $(obj)/gconf.glade.h: $(obj)/gconf.glade | |||
328 | $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \ | 331 | $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \ |
329 | $(obj)/gconf.glade | 332 | $(obj)/gconf.glade |
330 | 333 | ||
331 | ### | ||
332 | # The following requires flex/bison/gperf | ||
333 | # By default we use the _shipped versions, uncomment the following line if | ||
334 | # you are modifying the flex/bison src. | ||
335 | # LKC_GENPARSER := 1 | ||
336 | |||
337 | ifdef LKC_GENPARSER | ||
338 | |||
339 | $(obj)/zconf.tab.c: $(src)/zconf.y | ||
340 | $(obj)/lex.zconf.c: $(src)/zconf.l | ||
341 | $(obj)/zconf.hash.c: $(src)/zconf.gperf | ||
342 | |||
343 | %.tab.c: %.y | ||
344 | bison -l -b $* -p $(notdir $*) $< | ||
345 | cp $@ $@_shipped | ||
346 | |||
347 | lex.%.c: %.l | ||
348 | flex -L -P$(notdir $*) -o$@ $< | ||
349 | cp $@ $@_shipped | ||
350 | |||
351 | %.hash.c: %.gperf | ||
352 | gperf < $< > $@ | ||
353 | cp $@ $@_shipped | ||
354 | |||
355 | endif | ||