diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-10 15:45:16 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-10 15:45:16 +0200 |
commit | 9ddce4b351ff2757505fe433e3cfbdf410d2c86c (patch) | |
tree | 2463bdaf4a133bc201eb2c7a91950d81575c12cc /scripts/kconfig_parser/Makefile | |
parent | 5a47ee52b95734ea4224adfd341ee0f9eb5c8d62 (diff) | |
download | linux-conf-perf-9ddce4b351ff2757505fe433e3cfbdf410d2c86c.tar.gz linux-conf-perf-9ddce4b351ff2757505fe433e3cfbdf410d2c86c.tar.bz2 linux-conf-perf-9ddce4b351ff2757505fe433e3cfbdf410d2c86c.zip |
Part of Kconfig used in kconfig_parser exported to shared directory and updated to linux v4.0-rc5
Diffstat (limited to 'scripts/kconfig_parser/Makefile')
-rw-r--r-- | scripts/kconfig_parser/Makefile | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/scripts/kconfig_parser/Makefile b/scripts/kconfig_parser/Makefile index 68fbb93..f582673 100644 --- a/scripts/kconfig_parser/Makefile +++ b/scripts/kconfig_parser/Makefile @@ -1,24 +1,19 @@ +.PHONY: all clean .SUFFIXES: +all: parser + +KCONFIG_PREFIX = ../shared/kconfig +include $(KCONFIG_PREFIX)/files.mk + SRC = parser.c \ cnfexpr.c \ symlist.c \ output.c -SRC += kconfig/zconf.tab.c CFLAGS = -O0 -w -ggdb -parser: $(SRC) kconfig/zconf.lex.c kconfig/zconf.hash.c - gcc $(CFLAGS) -o $@ $(SRC) - -%.hash.c: %.gperf - gperf -t --output-file $@ -a -C -E -g -k '1,3,$$' -p -t $< - -%.lex.c: %.l - flex -o $@ -L -P zconf $< - -%.tab.c: %.y kconfig/zconf.lex.c kconfig/zconf.hash.c - bison -o $@ $< -p zconf -t -l +parser: $(SRC) $(KCONFIG_SRC) + gcc $(CFLAGS) -o $@ $^ -I$(KCONFIG_PREFIX) -clean: - $(RM) kconfig/zconf.tab.c kconfig/zconf.lex.c kconfig/zconf.hash.c +clean:: $(RM) parser |