aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r--scripts/kconfig/Makefile34
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)
204endif 204endif
205 205
206clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck 206clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
207clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h 207clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h
208clean-files += mconf qconf gconf nconf 208clean-files += mconf qconf gconf nconf
209clean-files += config.pot linux.pot 209clean-files += config.pot linux.pot
210 210
@@ -220,9 +220,12 @@ always := dochecklxdialog
220HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS)) 220HOST_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
223HOSTCFLAGS_lex.zconf.o := -I$(src) 223HOSTCFLAGS_zconf.lex.o := -I$(src)
224HOSTCFLAGS_zconf.tab.o := -I$(src) 224HOSTCFLAGS_zconf.tab.o := -I$(src)
225 225
226LEX_PREFIX_zconf := zconf
227YACC_PREFIX_zconf := zconf
228
226HOSTLOADLIBES_qconf = $(KC_QT_LIBS) 229HOSTLOADLIBES_qconf = $(KC_QT_LIBS)
227HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) 230HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS)
228 231
@@ -316,7 +319,7 @@ $(obj)/.tmp_gtkcheck:
316 fi 319 fi
317endif 320endif
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
337ifdef 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
347lex.%.c: %.l
348 flex -L -P$(notdir $*) -o$@ $<
349 cp $@ $@_shipped
350
351%.hash.c: %.gperf
352 gperf < $< > $@
353 cp $@ $@_shipped
354
355endif